public class JmxEventEmitter extends NotificationBroadcasterSupport
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") ... jmx.emitter.send(object)
Type Params | Return Type | Name and description |
---|---|---|
|
String |
getEvent() Event type getter |
|
String |
getMessage() Event message getter |
|
long |
send(Object data) Called to broadcast message on MBeanServer event bus. |
|
void |
setEvent(String event) Event type setter |
|
void |
setMessage(String message) Event message setter. |
Methods inherited from class | Name |
---|---|
class NotificationBroadcasterSupport |
getNotificationInfo, addNotificationListener, removeNotificationListener, removeNotificationListener, sendNotification, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Event type getter
Event message getter
Called to broadcast message on MBeanServer event bus. Internally, it calls NotificationBroadCasterSupport.sendNotification() method to dispatch the event.
data
- - a data object sent as part of the event parameter.Event type setter
event
- - event type set for this emitter.Event message setter.
message
- - message that is associated with event emitted.