| java.lang.Object org.jboss.mx.server.MBeanServerImpl
Method Summary | |
public void | addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) Adds a listener to a registered MBean.
A notification emitted by the MBean will be forwarded by the MBeanServer to the listener.
If the source of the notification is a reference to the MBean object, the MBean server will replace
it by the MBean's ObjectName. | public void | addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) Adds a listener to a registered MBean.
A notification emitted by the MBean will be forwarded by the MBeanServer to the listener.
If the source of the notification is a reference to the MBean object, the MBean server will replace
it by the MBean's ObjectName. | public ObjectInstance | createMBean(String className, ObjectName name) | public ObjectInstance | createMBean(String className, ObjectName name, Object[] params, String[] signature) | public ObjectInstance | createMBean(String className, ObjectName name, ObjectName loaderName) | public ObjectInstance | createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) | protected MBeanRegistry | createRegistry(String defaultDomain) | public ObjectInputStream | deserialize(ObjectName name, byte[] data) | public ObjectInputStream | deserialize(String className, byte[] data) | public ObjectInputStream | deserialize(String className, ObjectName loaderName, byte[] data) | public Object | getAttribute(ObjectName name, String attribute) | public AttributeList | getAttributes(ObjectName name, String[] attributes) | public ClassLoader | getClassLoader(ObjectName name) Parameters: name - The ObjectName of the ClassLoader. | public ClassLoader | getClassLoaderFor(ObjectName name) | public ClassLoaderRepository | getClassLoaderRepository() | public String | getDefaultDomain() | public String[] | getDomains() | public java.lang.Integer | getMBeanCount() | public MBeanInfo | getMBeanInfo(ObjectName name) | public ObjectInstance | getObjectInstance(ObjectName name) | protected void | handleInstantiateExceptions(Throwable t, String className) | public Object | instantiate(String className) | public Object | instantiate(String className, Object[] params, String[] signature) | public Object | instantiate(String className, ObjectName loaderName) | public Object | instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) | protected Object | instantiate(String className, ClassLoader cl, Object[] params, String[] signature) Instantiate an object, the passed classloader is set as the
thread's context classloader for the duration of this method. | public Object | invoke(ObjectName name, String operationName, Object[] params, String[] signature) | public boolean | isInstanceOf(ObjectName name, String className) | public boolean | isRegistered(ObjectName name) | protected boolean | queryMBean(ObjectName objectName, QueryExp queryExp) | public Set | queryMBeans(ObjectName name, QueryExp query) | public Set | queryNames(ObjectName name, QueryExp query) | public ObjectInstance | registerMBean(Object object, ObjectName name) Registers a pre-existing object as an MBean with the MBean server. | protected ObjectInstance | registerMBean(Object mbean, ObjectName name, ObjectName loaderName) | protected ObjectInstance | registerMBean(Object object, ObjectName name, ClassLoader cl) | public void | releaseServer() | public void | removeNotificationListener(ObjectName name, NotificationListener listener) Removes a listener from a registered MBean. | public void | removeNotificationListener(ObjectName name, ObjectName listener) Removes a listener from a registered MBean. | public void | removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) Removes a listener from a registered MBean. | public void | removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) Removes a listener from a registered MBean. | public void | setAttribute(ObjectName name, Attribute attribute) | public AttributeList | setAttributes(ObjectName name, AttributeList attributes) | public String | toString() | public void | unregisterMBean(ObjectName name) |
registry | protected MBeanRegistry registry(Code) | | Registry used by this server to map MBean object names to resource references.
|
MBeanServerImpl | public MBeanServerImpl(String defaultDomain, MBeanServer outer, MBeanServerDelegate delegate)(Code) | | Creates an MBean server implementation with a given default domain name and
registers the mandatory server delegate MBean to the server
(
ServerConstants.MBEAN_SERVER_DELEGATE MBEAN_SERVER_DELEGATE ).
Parameters: defaultDomain - default domain name Parameters: outer - the wrapping MBeanServer, passed to MBeansat registration. Parameters: delegate - the delegate to usefor Notifications. |
addNotificationListener | public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException(Code) | | Adds a listener to a registered MBean.
A notification emitted by the MBean will be forwarded by the MBeanServer to the listener.
If the source of the notification is a reference to the MBean object, the MBean server will replace
it by the MBean's ObjectName. Otherwise the source is unchanged.
|
addNotificationListener | public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException(Code) | | Adds a listener to a registered MBean.
A notification emitted by the MBean will be forwarded by the MBeanServer to the listener.
If the source of the notification is a reference to the MBean object, the MBean server will replace
it by the MBean's ObjectName. Otherwise the source is unchanged.
The listener object that receives notifications is the one that is registered with the given name at the time this
method is called. Even if it is subsequently unregistered, it will continue to receive notifications.
|
getClassLoaderRepository | public ClassLoaderRepository getClassLoaderRepository()(Code) | | Retrieve the classloader repository for this mbean server
the classloader repository |
instantiate | protected Object instantiate(String className, ClassLoader cl, Object[] params, String[] signature) throws ReflectionException, MBeanException(Code) | | Instantiate an object, the passed classloader is set as the
thread's context classloader for the duration of this method.
Parameters: className - the class name of the object to instantiate Parameters: cl - the thread classloader, pass null to use the ClassLoaderRepository Parameters: params - the parameters for the constructor Parameters: signature - the signature of the constructor exception: ReflectionException - wraps a ClassCastException orany Exception trying to invoke the constructor exception: MBeanException - wraps any exception thrown by the constructor exception: RuntimeOperationsException - Wraps an IllegalArgument for anull className |
queryMBean | protected boolean queryMBean(ObjectName objectName, QueryExp queryExp)(Code) | | Query an MBean against the query
Parameters: objectName - the object name of the mbean to check Parameters: queryExp - the query expression to test true when the query applies to the MBean or the query is null,false otherwise. |
releaseServer | public void releaseServer()(Code) | | |
removeNotificationListener | public void removeNotificationListener(ObjectName name, ObjectName 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.
|
toString | public String toString()(Code) | | Simple toString() revealing default domain
|
|
|