Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.diagnostics.descriptor
Interface WLDFWatchBean

All Superinterfaces:
WLDFBean

public interface WLDFWatchBean
extends WLDFBean

Defines policies and actions.

Note: As of WebLogic Server 12.2.1, the terms watch and notification are replaced by policy and action, respectively. However, the definition of these terms has not changed.

Since:
9.0.0.0

Field Summary
static String AUTO_RESET_ALARM_TYPE
          Static constant for the automatic alarm type.
static String DOMAIN_LOG_RULE_TYPE
          Static constant for the log rule type.
static String EL_LANGUAGE_TYPE
          Static constant for using Java EL expressions for policy expressions.
static String EVENT_DATA_RULE_TYPE
          Static constant for the event data rule type.
static String HARVESTER_RULE_TYPE
          Static constant for the harvester rule type.
static String LOG_RULE_TYPE
          Static constant for the log rule type.
static String MANUAL_RESET_ALARM_TYPE
          Static constant for the manual alarm type.
static String NONE_ALARM_TYPE
          Static constant for the alarm type none.
static String WLDF_LANGUAGE_TYPE
          Static constant for the built-in WLDF expression language type (deprecated).

 

Method Summary
abstract  boolean addNotification(WLDFNotificationBean notification)
          Adds an action to this policy.
abstract  int getAlarmResetPeriod()
          For automatic alarms, the time period, in milliseconds, to wait after the policy evaluates to true before the alarm is automatically reset.
abstract  String getAlarmType()
          The alarm type for the policy: manual or automatic.
abstract  String getExpressionLanguage()
          Returns the expression language type used by the policy, either "EL" or "WLDF" (deprecated).
abstract  WLDFNotificationBean[] getNotifications()
          The actions enabled for this policy.
abstract  String getRuleExpression()
          The expression used to evaluate the policy.
abstract  String getRuleType()
          The expression type for the policy: HARVESTER_RULE_TYPE refers to harvested data, LOG_RULE_TYPE refers to server log entry data, DOMAIN_LOG_RULE_TYPE refers to domain log entry data, and EVENT_DATA_RULE_TYPE refers to instrumentation event data.
abstract  WLDFScheduleBean getSchedule()
          Defines the evaluation frequency for Harvester type rules, in seconds.
abstract  String getSeverity()
          The severity level of the actions sent when this policy evaluates to true.
abstract  boolean isEnabled()
          Specifies whether this policy is enabled.
abstract  boolean removeNotification(WLDFNotificationBean notification)
          Removes an action from this policy.
abstract  void setAlarmResetPeriod(int alarmResetPeriod)
          Sets the value of the AlarmResetPeriod attribute.
abstract  void setAlarmType(String alarmType)
          Sets the value of the AlarmType attribute.
abstract  void setEnabled(boolean enabled)
          Sets the value of the Enabled attribute.
abstract  void setExpressionLanguage(String languageType)
          Sets the expression language type to use for the policy, either one of "EL" or "WLDF" (deprecated)
abstract  void setNotifications(WLDFNotificationBean[] notifications)
          Sets the value of the Notifications attribute.
abstract  void setRuleExpression(String ruleExpression)
          Sets the value of the RuleExpression attribute.
abstract  void setRuleType(String ruleType)
          Sets the value of the RuleType attribute.
abstract  void setSeverity(String severity)
          Sets the value of the Severity attribute.

 

Methods inherited from interface weblogic.diagnostics.descriptor.WLDFBean
getId, getName

 

Field Detail

WLDF_LANGUAGE_TYPE

static final String WLDF_LANGUAGE_TYPE

Static constant for the built-in WLDF expression language type (deprecated).

See Also:
Constant Field Values

EL_LANGUAGE_TYPE

static final String EL_LANGUAGE_TYPE

Static constant for using Java EL expressions for policy expressions.

See Also:
Constant Field Values

HARVESTER_RULE_TYPE

static final String HARVESTER_RULE_TYPE

Static constant for the harvester rule type.

See Also:
Constant Field Values

DOMAIN_LOG_RULE_TYPE

static final String DOMAIN_LOG_RULE_TYPE

Static constant for the log rule type.

See Also:
Constant Field Values

LOG_RULE_TYPE

static final String LOG_RULE_TYPE

Static constant for the log rule type.

See Also:
Constant Field Values

EVENT_DATA_RULE_TYPE

static final String EVENT_DATA_RULE_TYPE

Static constant for the event data rule type.

See Also:
Constant Field Values

MANUAL_RESET_ALARM_TYPE

static final String MANUAL_RESET_ALARM_TYPE

Static constant for the manual alarm type.

See Also:
Constant Field Values

AUTO_RESET_ALARM_TYPE

static final String AUTO_RESET_ALARM_TYPE

Static constant for the automatic alarm type.

See Also:
Constant Field Values

NONE_ALARM_TYPE

static final String NONE_ALARM_TYPE

Static constant for the alarm type none.

See Also:
Constant Field Values

Method Detail

isEnabled

boolean isEnabled()

Specifies whether this policy is enabled.

Returns:
true if the policy is enabled, false otherwise

setEnabled

void setEnabled(boolean enabled)

Sets the value of the Enabled attribute.

Parameters:
enabled - true to enable the policy, false to disable it
See Also:
WLDFWatchBean.isEnabled()

getRuleType

String getRuleType()

The expression type for the policy: HARVESTER_RULE_TYPE refers to harvested data, LOG_RULE_TYPE refers to server log entry data, DOMAIN_LOG_RULE_TYPE refers to domain log entry data, and EVENT_DATA_RULE_TYPE refers to instrumentation event data. The default type is HARVESTER_RULE_TYPE.

For information on policy expressions, see "Using the Diagnostics Framework for Oracle WebLogic Server" at http://docs.oracle.com/middleware/home/index.html.

Returns:
the type of expression for the policy: Harvester, Log, or EventData

setRuleType

void setRuleType(String ruleType)

Sets the value of the RuleType attribute.

Parameters:
ruleType - the type of expression for the policy: Harvester, Log or EventData
See Also:
WLDFWatchBean.getRuleType()

getRuleExpression

String getRuleExpression()

The expression used to evaluate the policy.

Returns:
the expression used to evaluate the policy

setRuleExpression

void setRuleExpression(String ruleExpression)

Sets the value of the RuleExpression attribute.

Parameters:
ruleExpression - the expression used to evaluate the policy
See Also:
WLDFWatchBean.getRuleExpression()

getExpressionLanguage

String getExpressionLanguage()
Returns the expression language type used by the policy, either "EL" or "WLDF" (deprecated).
Returns:
The expression language used by the policy
Since:
12.2.1.0

setExpressionLanguage

void setExpressionLanguage(String languageType)
Sets the expression language type to use for the policy, either one of "EL" or "WLDF" (deprecated)
Parameters:
lang - The expression language to use for the policy
Since:
12.2.1.0
See Also:
WLDFWatchBean.getExpressionLanguage()

getSeverity

String getSeverity()

The severity level of the actions sent when this policy evaluates to true. When set, this level overrides the default value provided in the parent MBean. However, if no severity level is set (null), the value provided in the parent MBean is returned.

The severity levels are the same levels used by the logging framework and the Severities class.

Returns:
the severity of the actions fired when this policy evaluates to true

setSeverity

void setSeverity(String severity)

Sets the value of the Severity attribute.

Parameters:
severity - the severity of the actions sent when this policy evaluates to true
See Also:
WLDFWatchBean.getSeverity()

getAlarmType

String getAlarmType()

The alarm type for the policy: manual or automatic. The default alarm type is manual.

Once a manually set alarm has triggered, it must be reset through the WebLogic Server Administration Console or programmatically before it can trigger again. An automatic reset alarm will reset after the specified time period has elapsed.

Returns:
the type of alarm for the policy, either manual or automatic

setAlarmType

void setAlarmType(String alarmType)

Sets the value of the AlarmType attribute.

Parameters:
alarmType - the reset type of this policy, either manual or automatic
See Also:
WLDFWatchBean.getAlarmType()

getSchedule

WLDFScheduleBean getSchedule()

Defines the evaluation frequency for Harvester type rules, in seconds.

The default frequency is 5 minutes (300 seconds), minimum is 5 seconds.

Returns:
The frequency for Harvester type rule evaluation.
See Also:
WLDFScheduleBean

getAlarmResetPeriod

int getAlarmResetPeriod()

For automatic alarms, the time period, in milliseconds, to wait after the policy evaluates to true before the alarm is automatically reset.

The default reset period is 60000 milliseconds, which is equivalent to 60 seconds.

Returns:
the number of milliseconds to wait before the alarm is automatically reset

setAlarmResetPeriod

void setAlarmResetPeriod(int alarmResetPeriod)

Sets the value of the AlarmResetPeriod attribute.

Parameters:
alarmResetPeriod - the number of milliseconds to wait before the alarm is automatically reset
See Also:
WLDFWatchBean.getAlarmResetPeriod()

getNotifications

WLDFNotificationBean[] getNotifications()

The actions enabled for this policy.

Returns:
the actions enabled for this policy

setNotifications

void setNotifications(WLDFNotificationBean[] notifications)

Sets the value of the Notifications attribute.

See Also:
WLDFWatchBean.getNotifications()

addNotification

boolean addNotification(WLDFNotificationBean notification)

Adds an action to this policy.

Parameters:
action -

removeNotification

boolean removeNotification(WLDFNotificationBean notification)

Removes an action from this policy.

Parameters:
action -

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09