Class Notification
java.lang.Object
org.jboss.as.controller.notification.Notification
A notification emitted by a resource and handled by
NotificationHandler.- Author:
- Jeff Mesnil (c) 2013 Red Hat inc.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNotification(String type, PathAddress source, String message) Notification(String type, PathAddress source, String message, org.jboss.dmr.ModelNode data) -
Method Summary
Modifier and TypeMethodDescriptionstatic NotificationfromModelNode(org.jboss.dmr.ModelNode node) org.jboss.dmr.ModelNodegetData()longThe timestamp is set when the notification is instantiaged.getType()org.jboss.dmr.ModelNodetoString()
-
Field Details
-
SOURCE
- See Also:
-
TYPE
- See Also:
-
MESSAGE
- See Also:
-
TIMESTAMP
- See Also:
-
DATA
- See Also:
-
-
Constructor Details
-
Notification
-
Notification
- Parameters:
data- can benull
-
-
Method Details
-
getType
- Returns:
- the type of notification
-
getSource
- Returns:
- the address of the resource that emitted the notification (its source)
-
getMessage
- Returns:
- a human-readable i18end description of the notification
-
getTimestamp
public long getTimestamp()The timestamp is set when the notification is instantiaged.- Returns:
- the timestamp (in ms since the Unix Epoch) of the notification.
-
getData
public org.jboss.dmr.ModelNode getData()- Returns:
- data contextual to the notification or
null
-
toModelNode
public org.jboss.dmr.ModelNode toModelNode()- Returns:
- a detyped representation of the notification
-
fromModelNode
- Returns:
- a Notification created from the detyped representation in
node
-
toString
-