mx4j.server
Class ChainedMBeanServer
public
class
ChainedMBeanServer
extends Object
implements MBeanServer
Base class for chained MBeanServers.
By default this class delegates all method calls to the nested MBeanServer.
Subclass it to add behavior to one or more (or all) methods.
Version: $Revision: 1.6 $
Method Summary |
void | addNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, Object handback) |
void | addNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback) |
ObjectInstance | createMBean(String className, ObjectName objectName) |
ObjectInstance | createMBean(String className, ObjectName objectName, Object[] args, String[] parameters) |
ObjectInstance | createMBean(String className, ObjectName objectName, ObjectName loaderName) |
ObjectInstance | createMBean(String className, ObjectName objectName, ObjectName loaderName, Object[] args, String[] parameters) |
ObjectInputStream | deserialize(String className, byte[] bytes) |
ObjectInputStream | deserialize(String className, ObjectName loaderName, byte[] bytes) |
ObjectInputStream | deserialize(ObjectName objectName, byte[] bytes) |
Object | getAttribute(ObjectName objectName, String attribute) |
AttributeList | getAttributes(ObjectName objectName, String[] attributes) |
ClassLoader | getClassLoader(ObjectName loaderName) |
ClassLoader | getClassLoaderFor(ObjectName mbeanName) |
ClassLoaderRepository | getClassLoaderRepository() |
String | getDefaultDomain() |
String[] | getDomains() |
Integer | getMBeanCount() |
MBeanInfo | getMBeanInfo(ObjectName objectName) |
protected MBeanServer | getMBeanServer()
Returns the nested MBeanServer |
ObjectInstance | getObjectInstance(ObjectName objectName) |
Object | instantiate(String className) |
Object | instantiate(String className, Object[] args, String[] parameters) |
Object | instantiate(String className, ObjectName loaderName) |
Object | instantiate(String className, ObjectName loaderName, Object[] args, String[] parameters) |
Object | invoke(ObjectName objectName, String methodName, Object[] args, String[] parameters) |
boolean | isInstanceOf(ObjectName objectName, String className) |
boolean | isRegistered(ObjectName objectname) |
Set | queryMBeans(ObjectName patternName, QueryExp filter) |
Set | queryNames(ObjectName patternName, QueryExp filter) |
ObjectInstance | registerMBean(Object mbean, ObjectName objectName) |
void | removeNotificationListener(ObjectName observed, NotificationListener listener) |
void | removeNotificationListener(ObjectName observed, ObjectName listener) |
void | removeNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback) |
void | removeNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, Object handback) |
void | setAttribute(ObjectName objectName, Attribute attribute) |
AttributeList | setAttributes(ObjectName objectName, AttributeList attributes) |
protected void | setMBeanServer(MBeanServer server) |
void | unregisterMBean(ObjectName objectName) |
public ChainedMBeanServer()
Creates a new ChainedMBeanServer that will delegate to an MBeanServer specified
using
ChainedMBeanServer
public ChainedMBeanServer(MBeanServer server)
Creates a new ChainedMBeanServer that delegates to the specified MBeanServer
.
public void addNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, Object handback)
public void addNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback)
public ObjectInstance createMBean(String className, ObjectName objectName)
public ObjectInstance createMBean(String className, ObjectName objectName, Object[] args, String[] parameters)
public ObjectInstance createMBean(String className, ObjectName objectName, ObjectName loaderName)
public ObjectInstance createMBean(String className, ObjectName objectName, ObjectName loaderName, Object[] args, String[] parameters)
public ObjectInputStream deserialize(String className, byte[] bytes)
public ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] bytes)
public ObjectInputStream deserialize(ObjectName objectName, byte[] bytes)
public Object getAttribute(ObjectName objectName, String attribute)
public AttributeList getAttributes(ObjectName objectName, String[] attributes)
public ClassLoader getClassLoader(ObjectName loaderName)
public ClassLoader getClassLoaderFor(ObjectName mbeanName)
public ClassLoaderRepository getClassLoaderRepository()
public String getDefaultDomain()
public String[] getDomains()
public Integer getMBeanCount()
public MBeanInfo getMBeanInfo(ObjectName objectName)
protected MBeanServer getMBeanServer()
Returns the nested MBeanServer
public ObjectInstance getObjectInstance(ObjectName objectName)
public Object instantiate(String className)
public Object instantiate(String className, Object[] args, String[] parameters)
public Object instantiate(String className, ObjectName loaderName)
public Object instantiate(String className, ObjectName loaderName, Object[] args, String[] parameters)
public Object invoke(ObjectName objectName, String methodName, Object[] args, String[] parameters)
public boolean isInstanceOf(ObjectName objectName, String className)
public boolean isRegistered(ObjectName objectname)
public Set queryMBeans(ObjectName patternName, QueryExp filter)
public Set queryNames(ObjectName patternName, QueryExp filter)
public ObjectInstance registerMBean(Object mbean, ObjectName objectName)
public void removeNotificationListener(ObjectName observed, NotificationListener listener)
public void removeNotificationListener(ObjectName observed, ObjectName listener)
public void removeNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback)
public void removeNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, Object handback)
public void setAttribute(ObjectName objectName, Attribute attribute)
public AttributeList setAttributes(ObjectName objectName, AttributeList attributes)
protected void setMBeanServer(MBeanServer server)
public void unregisterMBean(ObjectName objectName)
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.