| java.lang.Object com.caucho.jmx.AbstractMBeanServer
All known Subclasses: com.caucho.jmx.LocalMBeanServer, com.caucho.jmx.GlobalMBeanServer, com.caucho.jmx.EnvironmentMBeanServer, com.caucho.jmx.MBeanServerImpl,
AbstractMBeanServer | abstract public class AbstractMBeanServer implements MBeanServer(Code) | | The main interface for retrieving and managing JMX objects.
|
Method Summary | |
public void | addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) | public void | addNotificationListener(ObjectName name, ObjectName listenerName, NotificationFilter filter, Object handback) | protected MBeanContext | createContext() Returns the context implementation. | abstract protected MBeanContext | createContext(ClassLoader loader) Returns the context implementation, creating if necessary. | public ObjectInstance | createMBean(String className, ObjectName name) Instantiate and register an MBean.
Parameters: className - the className to be instantiated. Parameters: name - the name of the mbean. | public ObjectInstance | createMBean(String className, ObjectName name, ObjectName loaderName) Instantiate and register an MBean. | public ObjectInstance | createMBean(String className, ObjectName name, Object[] params, String[] signature) Instantiate and register an MBean. | public ObjectInstance | createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) Instantiate and register an MBean. | public ObjectInputStream | deserialize(ObjectName name, byte[] data) Deserializes a byte array in the class loader of the mbean. | public ObjectInputStream | deserialize(String className, byte[] data) Deserializes a byte array in the class loader of the mbean. | public ObjectInputStream | deserialize(String className, ObjectName loaderName, byte[] data) Deserializes a byte array in the class loader of the mbean. | public void | destroy() Handles the case where a class loader is dropped. | public Object | getAttribute(ObjectName name, String attribute) Returns a specific attribute of a named MBean. | public AttributeList | getAttributes(ObjectName name, String[] attributes) Returns a list of several MBean attributes. | public ClassLoader | getClassLoader(ObjectName loaderName) Returns the named ClassLoader. | public ClassLoader | getClassLoaderFor(ObjectName name) Returns the ClassLoader that was used for loading the MBean. | public ClassLoaderRepository | getClassLoaderRepository() | abstract protected MBeanContext | getContext(ClassLoader loader) Returns the context implementation. | public String | getDefaultDomain() | public String[] | getDomains() | protected MBeanContext | getExistingContext() Returns the context implementation. | abstract protected MBeanContext | getExistingContext(ClassLoader loader) Returns the context implementation. | protected MBeanContext | getGlobalContext() Returns the context implementation. | protected MBeanView | getGlobalView() Returns the view implementation. | MBeanWrapper | getMBean(ObjectName name) Finds the MBean implementation. | public Integer | getMBeanCount() Returns the number of MBeans registered. | public MBeanInfo | getMBeanInfo(ObjectName name) | public ObjectInstance | getObjectInstance(ObjectName name) Returns the MBean registered with the given name.
Parameters: name - the name of the mbean. | protected MBeanView | getParentView() Returns the view implementation. | protected MBeanView | getView() Returns the view implementation. | public Object | instantiate(String className) Instantiate an MBean object to be registered with the server.
Parameters: className - the className to be instantiated. | public Object | instantiate(String className, ObjectName loaderName) Instantiate an MBean object to be registered with the server. | public Object | instantiate(String className, Object[] params, String[] signature) Instantiate an MBean object with the given arguments to be
passed to the constructor. | public Object | instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) Instantiate an MBean object with the given arguments to be
passed to the constructor. | public Object | invoke(ObjectName name, String operationName, Object[] params, String[] signature) Invokers an operation on an MBean. | public boolean | isInstanceOf(ObjectName name, String className) Returns true if the MBean is an instance of the specified class.
Parameters: name - the name of the mbean Parameters: className - the className to test. | 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. | public Set<ObjectInstance> | queryMBeans(ObjectName name, QueryExp query) Returns a set of MBeans matching the query.
Parameters: name - the name of the mbean to match. Parameters: query - the queryd to match. | public Set<ObjectName> | queryNames(ObjectName name, QueryExp query) Returns a set of names for MBeans matching the query.
Parameters: name - the name of the mbean to match. Parameters: query - the query to match. | public ObjectInstance | registerMBean(Object object, ObjectName name) Registers an MBean with the server.
Parameters: object - the object to be registered as an MBean Parameters: name - the name of the mbean. | protected void | removeContext(MBeanContext context, ClassLoader loader) Removes the context implementation. | public void | removeNotificationListener(ObjectName name, NotificationListener listener) | public void | removeNotificationListener(ObjectName name, ObjectName listenerName) | public void | removeNotificationListener(ObjectName name, ObjectName listenerName, NotificationFilter filter, Object handback) | public void | removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) | public void | setAttribute(ObjectName name, Attribute attribute) Sets an attribute in the MBean. | public AttributeList | setAttributes(ObjectName name, AttributeList attributes) Set an attributes in the MBean. | public String | toString() Returns the string form. | public void | unregisterMBean(ObjectName name) Unregisters an MBean from the server. |
AbstractMBeanServer | public AbstractMBeanServer(String defaultDomain)(Code) | | Creats a new MBeanServer implementation.
|
addNotificationListener | public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException(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 |
addNotificationListener | public void addNotificationListener(ObjectName name, ObjectName listenerName, NotificationFilter filter, Object handback) throws InstanceNotFoundException(Code) | | Adds a listener to a registered MBean
Parameters: name - the name of the mbean Parameters: listenerName - the name of the listener Parameters: filter - filters events the listener is interested in Parameters: handback - context to be returned to the listener |
createContext | protected MBeanContext createContext()(Code) | | Returns the context implementation.
|
destroy | public void destroy()(Code) | | Handles the case where a class loader is dropped.
|
getClassLoaderRepository | public ClassLoaderRepository getClassLoaderRepository()(Code) | | Returns the ClassLoaderRepository for this MBeanServer
since: JMX 1.2 |
getDefaultDomain | public String getDefaultDomain()(Code) | | Returns the default domain for naming the MBean
|
getDomains | public String[] getDomains()(Code) | | Returns the domains for all registered MBeans
since: JMX 1.2 |
getExistingContext | protected MBeanContext getExistingContext()(Code) | | Returns the context implementation.
|
getGlobalContext | protected MBeanContext getGlobalContext()(Code) | | Returns the context implementation.
|
getGlobalView | protected MBeanView getGlobalView()(Code) | | Returns the view implementation.
|
getMBeanCount | public Integer getMBeanCount()(Code) | | Returns the number of MBeans registered.
the number of registered mbeans. |
getParentView | protected MBeanView getParentView()(Code) | | Returns the view implementation.
|
getView | protected MBeanView getView()(Code) | | Returns the view implementation.
|
instantiate | public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException(Code) | | Instantiate an MBean object with the given arguments to be
passed to the constructor.
Parameters: className - the className to be instantiated. Parameters: params - the parameters for the constructor. Parameters: signature - the signature of the constructor the instantiated object. |
instantiate | public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException(Code) | | Instantiate an MBean object with the given arguments to be
passed to the constructor.
Parameters: className - the className to be instantiated. Parameters: loaderName - names the classloader to be used Parameters: params - the parameters for the constructor. Parameters: signature - the signature of the constructor the instantiated object. |
isInstanceOf | public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException(Code) | | Returns true if the MBean is an instance of the specified class.
Parameters: name - the name of the mbean Parameters: className - the className to test. true if the bean is an instance |
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. |
queryMBeans | public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query)(Code) | | Returns a set of MBeans matching the query.
Parameters: name - the name of the mbean to match. Parameters: query - the queryd to match. the set of matching mbean object. |
queryNames | public Set<ObjectName> queryNames(ObjectName name, QueryExp query)(Code) | | Returns a set of names for MBeans matching the query.
Parameters: name - the name of the mbean to match. Parameters: query - the query to match. the set of matching mbean names. |
toString | public String toString()(Code) | | Returns the string form.
|
|
|