WLDFWatchBean


Overview  |   Related MBeans  |   Attributes  |   Operations

Overview

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.

           
Since9.0.0.0
Security rolesThe following roles have read, write, and invoke permission for all non-encrypted attributes and operations in this MBean:
  • Deployer
Fully Qualified Interface NameIf you use the getMBeanInfo operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name:
weblogic.diagnostics.descriptor.WLDFWatchBean
Factory Methods
Additional Access Points In addition to accessing this MBean by invoking a factory method, you can also access this MBean from the following MBean attributes:


    Related MBeans

    This section describes attributes that provide access to other MBeans.


      Notifications

      The actions enabled for this policy.

             
      Privileges Read/Write
      TypeWLDFNotificationBean[]
      Relationship type: Reference.

      Schedule

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

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

      For more information, see:

             
      Factory Methods No explicit creator method. The child shares the lifecycle of its parent.
      Privileges Read only
      TypeWLDFScheduleBean
      Relationship type: Containment.


      Attributes

      This section describes the following attributes:


      AlarmResetPeriod

      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.

             
      Privileges Read/Write
      Typeint
      Default Value60000
      Minimum value1000

      AlarmType

      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.

             
      Privileges Read/Write
      Typejava.lang.String
      Default ValueNone
      Legal Values
      • None
      • ManualReset
      • AutomaticReset

      Enabled

      Specifies whether this policy is enabled.

             
      Privileges Read/Write
      Typeboolean
      Default Valuetrue

      ExpressionLanguage

      Returns the expression language type used by the policy, either "EL" or "WLDF" (deprecated).

             
      Available Since Release 12.2.1.0.0
      Privileges Read/Write
      Typejava.lang.String

      Id

      Return the unique id of this bean instance.

             
      Privileges Read only
      Typelong
      Redeploy or Restart required Changes take effect after you redeploy the module or restart the server.

      Name

      The name of the WebLogic Diagnostic Framework (WLDF) bean.

             
      Privileges Read only
      Typejava.lang.String

      RuleExpression

      The expression used to evaluate the policy.

             
      Privileges Read/Write
      Typejava.lang.String

      RuleType

      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.

             
      Privileges Read/Write
      Typejava.lang.String
      Default ValueHarvester
      Legal Values
      • Harvester
      • Log
      • DomainLog
      • EventData

      Severity

      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.

             
      Privileges Read/Write
      Typejava.lang.String
      Default ValueNotice
      Legal Values
      • Info
      • Warning
      • Error
      • Notice
      • Critical
      • Alert
      • Emergency


      Operations

      This section describes the following operations:


        addNotification

        Adds an action to this policy.

           
        Operation Name"addNotification"
        ParametersObject [] {  action }

        where:

        • action is an object of type weblogic.diagnostics.descriptor.WLDFNotificationBean that specifies:

          action

        SignatureString [] { "weblogic.diagnostics.descriptor.WLDFNotificationBean" }
        Returns boolean

        removeNotification

        Removes an action from this policy.

           
        Operation Name"removeNotification"
        ParametersObject [] {  action }

        where:

        • action is an object of type weblogic.diagnostics.descriptor.WLDFNotificationBean that specifies:

          action

        SignatureString [] { "weblogic.diagnostics.descriptor.WLDFNotificationBean" }
        Returns boolean