|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrockit.mc.rjmx.notification.NotificationEvent
public class NotificationEvent
Event sent to registered NotificationActions when a certain condition is met (after a constraint and value check).
Constructor Summary | |
---|---|
NotificationEvent(IConnectionHandle source,
NotificationRule rule,
java.lang.Object triggerValue,
boolean wasTriggered)
Constructor. |
|
NotificationEvent(IConnectionHandle source,
NotificationRule rule,
java.lang.Object triggerValue,
boolean wasTriggered,
int sustainTime)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getConnectorSourceDescription()
Gets the connectorSourceDescription. |
java.util.Date |
getCreationTime()
Returns the time (date) the event was created. |
NotificationRule |
getRule()
Gets the rule. |
IConnectionHandle |
getSource()
Returns the IConnectionHandle that was the source of the event. |
int |
getSustainTime()
Returns the time this value was sustained. |
java.lang.Object |
getTriggerValue()
Returns the value that triggered the rule. |
java.lang.String |
toString()
|
boolean |
wasRecovered()
Returns true if the event was Triggered. |
boolean |
wasTriggered()
Returns true if the event was Triggered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NotificationEvent(IConnectionHandle source, NotificationRule rule, java.lang.Object triggerValue, boolean wasTriggered)
source
- The connector model that sent the event. want to pass
references to such large objects in an event that might be
passed over a network in the future.rule
- The rule that resulted in this event.triggerValue
- The value on which we triggered.wasTriggered
- True if we were triggered, false if we recovered.public NotificationEvent(IConnectionHandle source, NotificationRule rule, java.lang.Object triggerValue, boolean wasTriggered, int sustainTime)
source
- The ConnectorModel that sent the event.rule
- The rule that resulted in this event.triggerValue
- The value on which we triggered.wasTriggered
- True if we were triggered, false if we recovered.sustainTime
- >
0 if this was a result of triggering from a certain level
being sustained over a certain time.Method Detail |
---|
public java.lang.Object getTriggerValue()
public java.util.Date getCreationTime()
public NotificationRule getRule()
public boolean wasTriggered()
public boolean wasRecovered()
public java.lang.String getConnectorSourceDescription()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int getSustainTime()
public IConnectionHandle getSource()
IConnectionHandle
that was the source of the event.
IConnectionHandle
that was the source of the event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |