|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mx4j.server.ChainedMBeanServer
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.
Constructor Summary | |
ChainedMBeanServer()
Creates a new ChainedMBeanServer that will delegate to an MBeanServer specified using setMBeanServer(javax.management.MBeanServer) |
|
ChainedMBeanServer(javax.management.MBeanServer server)
Creates a new ChainedMBeanServer that delegates to the specified MBeanServer . |
Method Summary | |
void |
addNotificationListener(javax.management.ObjectName observed,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
|
void |
addNotificationListener(javax.management.ObjectName observed,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
|
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName objectName)
|
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName objectName,
java.lang.Object[] args,
java.lang.String[] parameters)
|
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName objectName,
javax.management.ObjectName loaderName)
|
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName objectName,
javax.management.ObjectName loaderName,
java.lang.Object[] args,
java.lang.String[] parameters)
|
java.io.ObjectInputStream |
deserialize(javax.management.ObjectName objectName,
byte[] bytes)
|
java.io.ObjectInputStream |
deserialize(java.lang.String className,
byte[] bytes)
|
java.io.ObjectInputStream |
deserialize(java.lang.String className,
javax.management.ObjectName loaderName,
byte[] bytes)
|
java.lang.Object |
getAttribute(javax.management.ObjectName objectName,
java.lang.String attribute)
|
javax.management.AttributeList |
getAttributes(javax.management.ObjectName objectName,
java.lang.String[] attributes)
|
java.lang.ClassLoader |
getClassLoader(javax.management.ObjectName loaderName)
|
java.lang.ClassLoader |
getClassLoaderFor(javax.management.ObjectName mbeanName)
|
javax.management.loading.ClassLoaderRepository |
getClassLoaderRepository()
|
java.lang.String |
getDefaultDomain()
|
java.lang.String[] |
getDomains()
|
java.lang.Integer |
getMBeanCount()
|
javax.management.MBeanInfo |
getMBeanInfo(javax.management.ObjectName objectName)
|
protected javax.management.MBeanServer |
getMBeanServer()
Returns the nested MBeanServer |
javax.management.ObjectInstance |
getObjectInstance(javax.management.ObjectName objectName)
|
java.lang.Object |
instantiate(java.lang.String className)
|
java.lang.Object |
instantiate(java.lang.String className,
java.lang.Object[] args,
java.lang.String[] parameters)
|
java.lang.Object |
instantiate(java.lang.String className,
javax.management.ObjectName loaderName)
|
java.lang.Object |
instantiate(java.lang.String className,
javax.management.ObjectName loaderName,
java.lang.Object[] args,
java.lang.String[] parameters)
|
java.lang.Object |
invoke(javax.management.ObjectName objectName,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.String[] parameters)
|
boolean |
isInstanceOf(javax.management.ObjectName objectName,
java.lang.String className)
|
boolean |
isRegistered(javax.management.ObjectName objectname)
|
java.util.Set |
queryMBeans(javax.management.ObjectName patternName,
javax.management.QueryExp filter)
|
java.util.Set |
queryNames(javax.management.ObjectName patternName,
javax.management.QueryExp filter)
|
javax.management.ObjectInstance |
registerMBean(java.lang.Object mbean,
javax.management.ObjectName objectName)
|
void |
removeNotificationListener(javax.management.ObjectName observed,
javax.management.NotificationListener listener)
|
void |
removeNotificationListener(javax.management.ObjectName observed,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
|
void |
removeNotificationListener(javax.management.ObjectName observed,
javax.management.ObjectName listener)
|
void |
removeNotificationListener(javax.management.ObjectName observed,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
|
void |
setAttribute(javax.management.ObjectName objectName,
javax.management.Attribute attribute)
|
javax.management.AttributeList |
setAttributes(javax.management.ObjectName objectName,
javax.management.AttributeList attributes)
|
protected void |
setMBeanServer(javax.management.MBeanServer server)
|
void |
unregisterMBean(javax.management.ObjectName objectName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChainedMBeanServer()
setMBeanServer(javax.management.MBeanServer)
public ChainedMBeanServer(javax.management.MBeanServer server)
MBeanServer
.
Method Detail |
protected javax.management.MBeanServer getMBeanServer()
protected void setMBeanServer(javax.management.MBeanServer server)
public void addNotificationListener(javax.management.ObjectName observed, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.InstanceNotFoundException
addNotificationListener
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
public void addNotificationListener(javax.management.ObjectName observed, javax.management.ObjectName listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.InstanceNotFoundException
addNotificationListener
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
public javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName objectName) throws javax.management.ReflectionException, javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MBeanException, javax.management.NotCompliantMBeanException
createMBean
in interface javax.management.MBeanServer
javax.management.ReflectionException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MBeanException
javax.management.NotCompliantMBeanException
public javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName objectName, java.lang.Object[] args, java.lang.String[] parameters) throws javax.management.ReflectionException, javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MBeanException, javax.management.NotCompliantMBeanException
createMBean
in interface javax.management.MBeanServer
javax.management.ReflectionException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MBeanException
javax.management.NotCompliantMBeanException
public javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName objectName, javax.management.ObjectName loaderName) throws javax.management.ReflectionException, javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MBeanException, javax.management.NotCompliantMBeanException, javax.management.InstanceNotFoundException
createMBean
in interface javax.management.MBeanServer
javax.management.ReflectionException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MBeanException
javax.management.NotCompliantMBeanException
javax.management.InstanceNotFoundException
public javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName objectName, javax.management.ObjectName loaderName, java.lang.Object[] args, java.lang.String[] parameters) throws javax.management.ReflectionException, javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MBeanException, javax.management.NotCompliantMBeanException, javax.management.InstanceNotFoundException
createMBean
in interface javax.management.MBeanServer
javax.management.ReflectionException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MBeanException
javax.management.NotCompliantMBeanException
javax.management.InstanceNotFoundException
public java.io.ObjectInputStream deserialize(java.lang.String className, byte[] bytes) throws javax.management.OperationsException, javax.management.ReflectionException
deserialize
in interface javax.management.MBeanServer
javax.management.OperationsException
javax.management.ReflectionException
public java.io.ObjectInputStream deserialize(java.lang.String className, javax.management.ObjectName loaderName, byte[] bytes) throws javax.management.InstanceNotFoundException, javax.management.OperationsException, javax.management.ReflectionException
deserialize
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.OperationsException
javax.management.ReflectionException
public java.io.ObjectInputStream deserialize(javax.management.ObjectName objectName, byte[] bytes) throws javax.management.InstanceNotFoundException, javax.management.OperationsException
deserialize
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.OperationsException
public java.lang.Object getAttribute(javax.management.ObjectName objectName, java.lang.String attribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.ReflectionException
getAttribute
in interface javax.management.MBeanServer
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
public javax.management.AttributeList getAttributes(javax.management.ObjectName objectName, java.lang.String[] attributes) throws javax.management.InstanceNotFoundException, javax.management.ReflectionException
getAttributes
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.ReflectionException
public java.lang.String getDefaultDomain()
getDefaultDomain
in interface javax.management.MBeanServer
public java.lang.String[] getDomains()
getDomains
in interface javax.management.MBeanServer
public java.lang.Integer getMBeanCount()
getMBeanCount
in interface javax.management.MBeanServer
public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName objectName) throws javax.management.InstanceNotFoundException, javax.management.IntrospectionException, javax.management.ReflectionException
getMBeanInfo
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.IntrospectionException
javax.management.ReflectionException
public javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName objectName) throws javax.management.InstanceNotFoundException
getObjectInstance
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
public java.lang.Object instantiate(java.lang.String className) throws javax.management.ReflectionException, javax.management.MBeanException
instantiate
in interface javax.management.MBeanServer
javax.management.ReflectionException
javax.management.MBeanException
public java.lang.Object instantiate(java.lang.String className, java.lang.Object[] args, java.lang.String[] parameters) throws javax.management.ReflectionException, javax.management.MBeanException
instantiate
in interface javax.management.MBeanServer
javax.management.ReflectionException
javax.management.MBeanException
public java.lang.Object instantiate(java.lang.String className, javax.management.ObjectName loaderName) throws javax.management.ReflectionException, javax.management.MBeanException, javax.management.InstanceNotFoundException
instantiate
in interface javax.management.MBeanServer
javax.management.ReflectionException
javax.management.MBeanException
javax.management.InstanceNotFoundException
public java.lang.Object instantiate(java.lang.String className, javax.management.ObjectName loaderName, java.lang.Object[] args, java.lang.String[] parameters) throws javax.management.ReflectionException, javax.management.MBeanException, javax.management.InstanceNotFoundException
instantiate
in interface javax.management.MBeanServer
javax.management.ReflectionException
javax.management.MBeanException
javax.management.InstanceNotFoundException
public java.lang.Object invoke(javax.management.ObjectName objectName, java.lang.String methodName, java.lang.Object[] args, java.lang.String[] parameters) throws javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
invoke
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public boolean isInstanceOf(javax.management.ObjectName objectName, java.lang.String className) throws javax.management.InstanceNotFoundException
isInstanceOf
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
public boolean isRegistered(javax.management.ObjectName objectname)
isRegistered
in interface javax.management.MBeanServer
public java.util.Set queryMBeans(javax.management.ObjectName patternName, javax.management.QueryExp filter)
queryMBeans
in interface javax.management.MBeanServer
public java.util.Set queryNames(javax.management.ObjectName patternName, javax.management.QueryExp filter)
queryNames
in interface javax.management.MBeanServer
public javax.management.ObjectInstance registerMBean(java.lang.Object mbean, javax.management.ObjectName objectName) throws javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.NotCompliantMBeanException
registerMBean
in interface javax.management.MBeanServer
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.NotCompliantMBeanException
public void removeNotificationListener(javax.management.ObjectName observed, javax.management.NotificationListener listener) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.ObjectName observed, javax.management.ObjectName listener) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.ObjectName observed, javax.management.ObjectName listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.ObjectName observed, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
public void setAttribute(javax.management.ObjectName objectName, javax.management.Attribute attribute) throws javax.management.InstanceNotFoundException, javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException
setAttribute
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.AttributeList setAttributes(javax.management.ObjectName objectName, javax.management.AttributeList attributes) throws javax.management.InstanceNotFoundException, javax.management.ReflectionException
setAttributes
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.ReflectionException
public void unregisterMBean(javax.management.ObjectName objectName) throws javax.management.InstanceNotFoundException, javax.management.MBeanRegistrationException
unregisterMBean
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.MBeanRegistrationException
public java.lang.ClassLoader getClassLoaderFor(javax.management.ObjectName mbeanName) throws javax.management.InstanceNotFoundException
getClassLoaderFor
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
public java.lang.ClassLoader getClassLoader(javax.management.ObjectName loaderName) throws javax.management.InstanceNotFoundException
getClassLoader
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
public javax.management.loading.ClassLoaderRepository getClassLoaderRepository()
getClassLoaderRepository
in interface javax.management.MBeanServer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |