Class JmxEventEmitter

All Implemented Interfaces:
JmxEventEmitterMBean, NotificationBroadcaster, NotificationEmitter

public class JmxEventEmitter extends NotificationBroadcasterSupport implements JmxEventEmitterMBean
The JmxEventEmitter is a JMX Broadcaster class that is used to send generic events on the MBeanServer's event bus. It is used by the Emitter node () to send event to registered listeners.

 def jmx = JmxBuilder()
 jmx.emitter(name:"Object name"|ObjectName(), event:"event type")
See Also:
  • JmxEmitterFactory
  • Constructor Details

    • JmxEventEmitter

      public JmxEventEmitter()
  • Method Details

    • getEvent

      public String getEvent()
      Event type getter
      Specified by:
      getEvent in interface JmxEventEmitterMBean
      - returns event type string thrown by this emitter
    • setEvent

      public void setEvent(String event)
      Event type setter
      Specified by:
      setEvent in interface JmxEventEmitterMBean
      event - - event type set for this emitter.
    • getMessage

      public String getMessage()
      Event message getter
      - message that is associated with event.
    • setMessage

      public void setMessage(String message)
      Event message setter.
      message - - message that is associated with event emitted.
    • send

      public long send(Object data)
      Called to broadcast message on MBeanServer event bus. Internally, it calls NotificationBroadCasterSupport.sendNotification() method to dispatch the event.
      Specified by:
      send in interface JmxEventEmitterMBean
      data - - a data object sent as part of the event parameter.
      a sequence number associated with the emitted event.