public class TestingMBeanServer extends Object implements MBeanServer
| Constructor and Description |
|---|
TestingMBeanServer() |
public ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException
registerMBean in interface MBeanServerInstanceAlreadyExistsExceptionpublic void unregisterMBean(ObjectName name) throws InstanceNotFoundException
unregisterMBean in interface MBeanServerunregisterMBean in interface MBeanServerConnectionInstanceNotFoundExceptionpublic ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException
getObjectInstance in interface MBeanServergetObjectInstance in interface MBeanServerConnectionInstanceNotFoundExceptionpublic Set<ObjectName> queryNames(ObjectName name, QueryExp query)
queryNames in interface MBeanServerqueryNames in interface MBeanServerConnectionpublic Object getAttribute(ObjectName name, String attribute) throws InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException
getAttribute in interface MBeanServergetAttribute in interface MBeanServerConnectionInstanceNotFoundExceptionAttributeNotFoundExceptionReflectionExceptionMBeanExceptionpublic AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException
getAttributes in interface MBeanServergetAttributes in interface MBeanServerConnectionInstanceNotFoundExceptionpublic boolean isRegistered(ObjectName name)
isRegistered in interface MBeanServerisRegistered in interface MBeanServerConnectionpublic Integer getMBeanCount()
getMBeanCount in interface MBeanServergetMBeanCount in interface MBeanServerConnectionpublic void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, InvalidAttributeValueException, AttributeNotFoundException, ReflectionException, MBeanException
setAttribute in interface MBeanServersetAttribute in interface MBeanServerConnectionInstanceNotFoundExceptionInvalidAttributeValueExceptionAttributeNotFoundExceptionReflectionExceptionMBeanExceptionpublic AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException
setAttributes in interface MBeanServersetAttributes in interface MBeanServerConnectionInstanceNotFoundExceptionpublic Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, ReflectionException, MBeanException
invoke in interface MBeanServerinvoke in interface MBeanServerConnectionInstanceNotFoundExceptionReflectionExceptionMBeanExceptionpublic MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException
getMBeanInfo in interface MBeanServergetMBeanInfo in interface MBeanServerConnectionInstanceNotFoundExceptionpublic ObjectInstance createMBean(String className, ObjectName name)
createMBean in interface MBeanServercreateMBean in interface MBeanServerConnectionpublic ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName)
createMBean in interface MBeanServercreateMBean in interface MBeanServerConnectionpublic ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature)
createMBean in interface MBeanServercreateMBean in interface MBeanServerConnectionpublic ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature)
createMBean in interface MBeanServercreateMBean in interface MBeanServerConnectionpublic Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query)
queryMBeans in interface MBeanServerqueryMBeans in interface MBeanServerConnectionpublic String getDefaultDomain()
getDefaultDomain in interface MBeanServergetDefaultDomain in interface MBeanServerConnectionpublic String[] getDomains()
getDomains in interface MBeanServergetDomains in interface MBeanServerConnectionpublic void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
addNotificationListener in interface MBeanServeraddNotificationListener in interface MBeanServerConnectionpublic void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
addNotificationListener in interface MBeanServeraddNotificationListener in interface MBeanServerConnectionpublic void removeNotificationListener(ObjectName name, ObjectName listener)
removeNotificationListener in interface MBeanServerremoveNotificationListener in interface MBeanServerConnectionpublic void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
removeNotificationListener in interface MBeanServerremoveNotificationListener in interface MBeanServerConnectionpublic void removeNotificationListener(ObjectName name, NotificationListener listener)
removeNotificationListener in interface MBeanServerremoveNotificationListener in interface MBeanServerConnectionpublic void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
removeNotificationListener in interface MBeanServerremoveNotificationListener in interface MBeanServerConnectionpublic boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException
isInstanceOf in interface MBeanServerisInstanceOf in interface MBeanServerConnectionInstanceNotFoundExceptionpublic Object instantiate(String className) throws ReflectionException, MBeanException
instantiate in interface MBeanServerReflectionExceptionMBeanExceptionpublic Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException
instantiate in interface MBeanServerReflectionExceptionMBeanExceptionInstanceNotFoundExceptionpublic Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException
instantiate in interface MBeanServerReflectionExceptionMBeanExceptionpublic Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException
instantiate in interface MBeanServerReflectionExceptionMBeanExceptionInstanceNotFoundExceptionpublic ObjectInputStream deserialize(ObjectName name, byte[] data)
deserialize in interface MBeanServerpublic ObjectInputStream deserialize(String className, byte[] data)
deserialize in interface MBeanServerpublic ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] data)
deserialize in interface MBeanServerpublic ClassLoader getClassLoaderFor(ObjectName mbeanName)
getClassLoaderFor in interface MBeanServerpublic ClassLoader getClassLoader(ObjectName loaderName)
getClassLoader in interface MBeanServerpublic ClassLoaderRepository getClassLoaderRepository()
getClassLoaderRepository in interface MBeanServerCopyright © 2021. All rights reserved.