| java.lang.Object org.huihoo.jfox.jmx.MBeanServerSupport
Method Summary | |
public void | addNotificationListener(ObjectName objectName, NotificationListener listener, NotificationFilter filter, Object handback) | public void | addNotificationListener(ObjectName objectName, ObjectName listenerName, NotificationFilter filter, Object handback) | public ObjectInstance | createMBean(String className, ObjectName objectName) | public ObjectInstance | createMBean(String className, ObjectName objectName, ObjectName loaderName) | public ObjectInstance | createMBean(String className, ObjectName objectName, Object[] params, String[] signatures) | public ObjectInstance | createMBean(String className, ObjectName objectName, ObjectName loaderName, Object[] params, String[] signatures) | public Object | getAttribute(ObjectName objectName, String attribute) | public AttributeList | getAttributes(ObjectName objectName, String attributes) | public ClassLoader | getClassLoader(ObjectName loaderName) Return the named
java.lang.ClassLoader .
Parameters: loaderName - The ObjectName of the ClassLoader. | public ClassLoader | getClassLoaderFor(ObjectName objectName) Return the
java.lang.ClassLoader that was used for
loading the class of the named MBean.
Parameters: objectName - The ObjectName of the MBean. | public ClassLoaderRepository | getClassLoaderRepository() | public String | getDefaultDomain() | public String[] | getDomains() | public Integer | getMBeanCount() | public MBeanInfo | getMBeanInfo(ObjectName objectName) | public ObjectInstance | getObjectInstance(ObjectName objectName) | public Object | instantiate(String className) | public Object | instantiate(String className, ObjectName loaderName) | public Object | instantiate(String className, Object params, String signatures) | public Object | instantiate(String className, ObjectName loaderName, Object params, String signatures) | public Object | invoke(ObjectName objectName, String operationName, Object params, String signatures) | public boolean | isInstanceOf(ObjectName objectName, String className) | public boolean | isRegistered(ObjectName objectName) | public Set | queryMBeans(ObjectName objectName, QueryExp query) | public Set | queryNames(ObjectName objectName, QueryExp query) | public void | registerInterceptor(MBeanServerInterceptorListener interceptor, MBeanServerNotificationFilter filter, Object handback) | public ObjectInstance | registerMBean(Object obj, ObjectName objectName) | public void | removeNotificationListener(ObjectName objectName, NotificationListener listener) | public void | removeNotificationListener(ObjectName objectName, ObjectName listenerName) | public void | removeNotificationListener(ObjectName objectName, ObjectName listenerName, NotificationFilter filter, Object handback) Removes a listener from a registered MBean.
The MBean must have a listener that exactly matches the
given listener , filter , and
handback parameters. | public void | removeNotificationListener(ObjectName objectName, NotificationListener listener, NotificationFilter filter, Object handback) Removes a listener from a registered MBean.
The MBean must have a listener that exactly matches the
given listener , filter , and
handback parameters. | public void | setAttribute(ObjectName objectName, Attribute attribute) | public AttributeList | setAttributes(ObjectName objectName, AttributeList attributes) | public void | unregisterInterceptor(MBeanServerInterceptorListener interceptor) | public void | unregisterMBean(ObjectName objectName) |
MBeanServerSupport | public MBeanServerSupport(String domain)(Code) | | |
getClassLoader | public ClassLoader getClassLoader(ObjectName loaderName) throws InstanceNotFoundException(Code) | | Return the named
java.lang.ClassLoader .
Parameters: loaderName - The ObjectName of the ClassLoader. May benull, in which case the MBean server's own ClassLoader isreturned. The named ClassLoader. If l is the actualClassLoader with that name, and r is the returnedvalue, then either:What this means is that the ClassLoader may be wrapped inanother ClassLoader for security or other reasons. exception: InstanceNotFoundException - if the named ClassLoader isnot found. since: JMX 1.2 |
getClassLoaderFor | public ClassLoader getClassLoaderFor(ObjectName objectName) throws InstanceNotFoundException(Code) | | Return the
java.lang.ClassLoader that was used for
loading the class of the named MBean.
Parameters: objectName - The ObjectName of the MBean. The ClassLoader used for that MBean. If lis the MBean's actual ClassLoader, and r is thereturned value, then either:What this means is that the ClassLoader may be wrapped inanother ClassLoader for security or other reasons. exception: InstanceNotFoundException - if the named MBean is not found. since: JMX 1.2 |
instantiate | public Object instantiate(String className, Object params, String signatures) throws ReflectionException, MBeanException(Code) | | Parameters: className - The class name of the object to be instantiated. Parameters: params - An array containing the parameters of the constructor to be invoked. Parameters: signatures - An array containing the signature of the constructor to be invoked The newly instantiated object. throws: ReflectionException - Wraps a java.lang.ClassNotFoundException or the java.lang.Exception that occurred when trying to reflectInvoke the object's constructor. throws: MBeanException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null. |
removeNotificationListener | public void removeNotificationListener(ObjectName objectName, ObjectName listenerName, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException(Code) | | Removes a listener from a registered MBean.
The MBean must have a listener that exactly matches the
given listener , filter , and
handback parameters. If there is more than one
such listener, only one is removed.
The filter and handback parameters
may be null if and only if they are null in a listener to be
removed.
Parameters: objectName - The name of the MBean on which the listener shouldbe removed. Parameters: listenerName - A listener that was previously added to thisMBean. Parameters: filter - The filter that was specified when the listenerwas added. Parameters: handback - The handback that was specified when thelistener was added. exception: InstanceNotFoundException - The MBean name provideddoes not match any of the registered MBeans. exception: ListenerNotFoundException - The listener is notregistered in the MBean, or it is not registered with the givenfilter and handback. See Also: MBeanServerSupport.addNotificationListener(ObjectName,ObjectName,NotificationFilter,Object) since: JMX 1.2 |
removeNotificationListener | public void removeNotificationListener(ObjectName objectName, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException(Code) | | Removes a listener from a registered MBean.
The MBean must have a listener that exactly matches the
given listener , filter , and
handback parameters. If there is more than one
such listener, only one is removed.
The filter and handback parameters
may be null if and only if they are null in a listener to be
removed.
Parameters: objectName - The name of the MBean on which the listener shouldbe removed. Parameters: listener - A listener that was previously added to thisMBean. Parameters: filter - The filter that was specified when the listenerwas added. Parameters: handback - The handback that was specified when thelistener was added. exception: InstanceNotFoundException - The MBean name provideddoes not match any of the registered MBeans. exception: ListenerNotFoundException - The listener is notregistered in the MBean, or it is not registered with the givenfilter and handback. See Also: MBeanServerSupport.addNotificationListener(ObjectName,NotificationListener,NotificationFilter,Object) since: JMX 1.2 |
|
|