| java.lang.Object com.caucho.jmx.MBeanContext
MBeanContext | public class MBeanContext (Code) | | The context containing mbeans registered at a particular level.
|
Inner Class :static class Listener | |
Method Summary | |
void | addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) | public LinkedHashMap<String, String> | copyProperties() Sets the properties. | public void | destroy() Closes the context server. | public ClassLoader | getClassLoader() Returns the class loader. | public ClassLoaderRepository | getClassLoaderRepository() Returns the ClassLoaderRepository. | MBeanView | getGlobalView() Returns the view for this context. | MBeanWrapper | getMBean(ObjectName name) Finds an admin object. | public int | getMBeanCount() Returns the number of MBeans registered. | public ObjectInstance | getObjectInstance(ObjectName name) Returns the MBean registered with the given name.
Parameters: name - the name of the mbean. | public ObjectName | getObjectName(String name) Returns the object name. | protected MBeanView | getParentView() Returns the parent view. | MBeanView | getView() Returns the view for this context. | public boolean | isRegistered(ObjectName name) Returns true if the given object is registered with the server.
Parameters: name - the name of the mbean to test. | ObjectInstance | registerMBean(MBeanWrapper mbean, ObjectName name) Registers an MBean with the server.
Parameters: mbean - the object to be registered as an MBean Parameters: name - the name of the mbean. | public void | removeNotificationListener(ObjectName mbean, NotificationListener listener) | public void | removeNotificationListener(ObjectName mbean, NotificationListener listener, NotificationFilter filter, Object handback) | void | sendRegisterNotification(ObjectName name) Sends the register notification. | void | sendUnregisterNotification(ObjectName name) Sends the register notification. | public void | setProperties(Map<String, String> props) Sets the properties. | public String | toString() Display name. | public void | unregisterMBean(ObjectName name) Unregisters an MBean from the server. |
addNotificationListener | void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)(Code) | | Adds a listener to a registered MBean
Parameters: name - the name of the mbean Parameters: listener - the listener object Parameters: filter - filters events the listener is interested in Parameters: handback - context to be returned to the listener |
destroy | public void destroy()(Code) | | Closes the context server.
|
getGlobalView | MBeanView getGlobalView()(Code) | | Returns the view for this context.
|
getMBeanCount | public int getMBeanCount()(Code) | | Returns the number of MBeans registered.
the number of registered mbeans. |
getParentView | protected MBeanView getParentView()(Code) | | Returns the parent view.
|
isRegistered | public boolean isRegistered(ObjectName name)(Code) | | Returns true if the given object is registered with the server.
Parameters: name - the name of the mbean to test. true if the object is registered. |
removeNotificationListener | public void removeNotificationListener(ObjectName mbean, NotificationListener listener)(Code) | | Removes a listener to a registered MBean
Parameters: mbean - the name of the mbean Parameters: listener - the listener object |
removeNotificationListener | public void removeNotificationListener(ObjectName mbean, NotificationListener listener, NotificationFilter filter, Object handback)(Code) | | Removes a listener to a registered MBean
Parameters: mbean - the name of the mbean Parameters: listener - the listener object Parameters: filter - filters events the listener is interested in Parameters: handback - context to be returned to the listener |
sendRegisterNotification | void sendRegisterNotification(ObjectName name)(Code) | | Sends the register notification.
|
sendUnregisterNotification | void sendUnregisterNotification(ObjectName name)(Code) | | Sends the register notification.
|
|
|