[Java] Class JmxEventListener
- groovy.jmx.builder.JmxEventListener
- All Implemented Interfaces and Traits:
- NotificationListener
public class JmxEventListener
The JmxEventListener class is used by the builder to listen to events on the event bus. It is used internally by JmxBuilder to handle attribute-change and operation-invoke events on the bean() node.
- Authors:
- Vladimir Vivien
- See Also:
- JmxBeanFactory
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
static JmxEventListener |
getListener() Factory method that returns an instance of the listener. | |
void |
handleNotification(Notification notification, Object handback) This is the implemented method for NotificationListener. |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail
public static JmxEventListener getListener()
Factory method that returns an instance of the listener.
- Returns:
- - JmxEventListener instance.
public void handleNotification(Notification notification, Object handback)
This is the implemented method for NotificationListener. It is called by an event emitter to dispatch JMX events to listeners. Here it handles internal JmxBuilder events.
- Parameters:
-
notification
- the notification object passed to closure used to handle JmxBuilder events. -
handback
- - In this case, the handback is the closure to execute when the event is handled.
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/groovy/jmx/builder/JmxEventListener.html