|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport groovy.jmx.builder.JmxEventEmitter
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)
Method Summary | |
---|---|
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 NotificationBroadcasterSupport | |
---|---|
getNotificationInfo, sendNotification, addNotificationListener, removeNotificationListener, removeNotificationListener, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
public String getEvent()
public String getMessage()
public long send(Object data)
data
- - a data object sent as part of the event parameter.
public void setEvent(String event)
event
- - event type set for this emitter.
public void setMessage(String message)
message
- - message that is associated with event emitted.
Copyright © 2003-2013 The Codehaus. All rights reserved.