Class Notification

    • Constructor Detail

      • Notification

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

      • 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