Class JmxEventEmitter

    • Constructor Detail

      • JmxEventEmitter

        public JmxEventEmitter()
    • Method Detail

      • getEvent

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

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

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

        public void setMessage​(String message)
        Event message setter.
        Parameters:
        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
        Parameters:
        data - - a data object sent as part of the event parameter.
        Returns:
        a sequence number associated with the emitted event.