public class JmxEventEmitter extends javax.management.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 |
---|---|
java.lang.String |
getEvent()
Event type getter
|
java.lang.String |
getMessage()
Event message getter
|
long |
send(java.lang.Object data)
Called to broadcast message on MBeanServer event bus.
|
void |
setEvent(java.lang.String event)
Event type setter
|
void |
setMessage(java.lang.String message)
Event message setter.
|
public java.lang.String getEvent()
getEvent
in interface JmxEventEmitterMBean
public void setEvent(java.lang.String event)
setEvent
in interface JmxEventEmitterMBean
event
- - event type set for this emitter.public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- - message that is associated with event emitted.public long send(java.lang.Object data)
send
in interface JmxEventEmitterMBean
data
- - a data object sent as part of the event parameter.