Package io.hawt.jmx
Class JmxTreeWatcher
- java.lang.Object
-
- io.hawt.jmx.JmxTreeWatcher
-
- All Implemented Interfaces:
JmxTreeWatcherMBean
- Direct Known Subclasses:
PluginRegistry
public class JmxTreeWatcher extends java.lang.Object implements JmxTreeWatcherMBean
A simple MBean to watch the JMX tree, so it's easy for clients to know when they should refresh their JMX trees (which typically isn't a cheap operation).
-
-
Constructor Summary
Constructors Constructor Description JmxTreeWatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()longgetCounter()protected javax.management.NotificationFiltergetNotificationFilter()protected javax.management.NotificationListenergetNotificationListener()protected javax.management.ObjectNamegetObjectName()java.lang.StringgetVersion()voidinit()
-
-
-
Method Detail
-
init
public void init() throws java.lang.Exception- Throws:
java.lang.Exception
-
destroy
public void destroy() throws java.lang.Exception- Throws:
java.lang.Exception
-
getVersion
public java.lang.String getVersion()
-
getObjectName
protected javax.management.ObjectName getObjectName() throws java.lang.Exception- Throws:
java.lang.Exception
-
getNotificationListener
protected javax.management.NotificationListener getNotificationListener()
-
getNotificationFilter
protected javax.management.NotificationFilter getNotificationFilter()
-
getCounter
public long getCounter()
- Specified by:
getCounterin interfaceJmxTreeWatcherMBean
-
-