BEA Systems, Inc.

weblogic.diagnostics.watch
Class WatchNotification

java.lang.Object
  extended by NotificationAdapter
      extended by weblogic.diagnostics.watch.WatchNotification

public class WatchNotification
extends NotificationAdapter

This class defines a notification for a watch rule. When a watch rule evaluates to true, the notification is invoked. The WatchManager creates an instance of this class and invokes the notification listeners passing the WatchNotification.

The WatchNotification class contains information about the watch, including the watch name, the expression, the time the watch was evaluated, etc.


Method Summary
 String getMessage()
          Gets the descriptive message; only used for JMX notifications, for the message field on the JMX Notificiation object.
 String getWatchAlarmResetPeriod()
          Gets the alarm reset period.
 String getWatchAlarmType()
          Gets the alarm type (none, manual reset, automatic reset).
 Map getWatchData()
           
 String getWatchDataToString()
           
 String getWatchDomainName()
          Gets the domain of the watch.
 String getWatchName()
          Gets the name of the watch that evaluated to true.
 String getWatchRule()
          Gets the watch rule expression.
 String getWatchRuleType()
          Gets the watch type, either harvester or event.
 String getWatchServerName()
          Gets the server on which the watch evaluated to true.
 String getWatchSeverityLevel()
          Gets the severity of the watch (logging severity).
 String getWatchTime()
          Gets the time that the watch was evaluated (in milliseconds).
 List keyList()
           
 String toString()
          Returns a string representation of the watch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

keyList

public List keyList()
See Also:
com.bea.diagnostics.notifications.Notification#keyList()

getWatchName

public String getWatchName()
Gets the name of the watch that evaluated to true.

Returns:
the name of the watch that evaluated to true

getWatchRuleType

public String getWatchRuleType()
Gets the watch type, either harvester or event.

Returns:
the watch type, either harvester or event

getWatchRule

public String getWatchRule()
Gets the watch rule expression.

Returns:
the watch rule expression

getWatchTime

public String getWatchTime()
Gets the time that the watch was evaluated (in milliseconds).

Returns:
the time that the watch was evaluated (in milliseconds)

getWatchSeverityLevel

public String getWatchSeverityLevel()
Gets the severity of the watch (logging severity).

Returns:
the severity of the watch (logging severity)

getWatchAlarmType

public String getWatchAlarmType()
Gets the alarm type (none, manual reset, automatic reset).

Returns:
the alarm type (none, manual reset, automatic reset)

getWatchAlarmResetPeriod

public String getWatchAlarmResetPeriod()
Gets the alarm reset period. After this period elaspes, the alarm is reset, applicable when alarm is of AutomaticReset type.

Returns:
the alarm reset period

getWatchDomainName

public String getWatchDomainName()
Gets the domain of the watch.

Returns:
the domain of the watch

getMessage

public String getMessage()
Gets the descriptive message; only used for JMX notifications, for the message field on the JMX Notificiation object.

Returns:
the descriptive message

getWatchServerName

public String getWatchServerName()
Gets the server on which the watch evaluated to true.

Returns:
the server on which the watch evaluated to true

getWatchData

public Map getWatchData()

getWatchDataToString

public String getWatchDataToString()

toString

public String toString()
Returns a string representation of the watch.


Because this information documents a Tech Preview of a BEA product, it may be incomplete and is subject to change. Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/essex/TechPreview
Copyright 2007 BEA Systems Inc.