public class JmxEventEmitter extends NotificationBroadcasterSupport implements JmxEventEmitterMBean
def jmx = JmxBuilder() jmx.emitter(name:"Object name"|ObjectName(), event:"event type") ... jmx.emitter.send(object)
JmxEmitterFactory
Constructor and Description |
---|
JmxEventEmitter() |
Modifier and Type | Method 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.
|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
public String getEvent()
getEvent
in interface JmxEventEmitterMBean
public void setEvent(String event)
setEvent
in interface JmxEventEmitterMBean
event
- - event type set for this emitter.public String getMessage()
public void setMessage(String message)
message
- - message that is associated with event emitted.public long send(Object data)
send
in interface JmxEventEmitterMBean
data
- - a data object sent as part of the event parameter.