Class Notification

java.lang.Object
org.jboss.as.controller.notification.Notification

public class Notification extends Object
A notification emitted by a resource and handled by NotificationHandler.
Author:
Jeff Mesnil (c) 2013 Red Hat inc.
  • Field Details

  • Constructor Details

    • Notification

      public Notification(String type, PathAddress source, String message)
    • Notification

      public Notification(String type, PathAddress source, String message, org.jboss.dmr.ModelNode data)
      Parameters:
      data - can be null
  • Method Details

    • getType

      public String getType()
      Returns:
      the type of notification
    • getSource

      public PathAddress getSource()
      Returns:
      the address of the resource that emitted the notification (its source)
    • getMessage

      public String 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

      public static Notification fromModelNode(org.jboss.dmr.ModelNode node)
      Returns:
      a Notification created from the detyped representation in node
    • toString

      public String toString()
      Overrides:
      toString in class Object