public class TestingMBeanServer extends Object implements MBeanServer
Constructor and Description |
---|
TestingMBeanServer() |
public ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException
registerMBean
in interface MBeanServer
InstanceAlreadyExistsException
public void unregisterMBean(ObjectName name) throws InstanceNotFoundException
unregisterMBean
in interface MBeanServer
unregisterMBean
in interface MBeanServerConnection
InstanceNotFoundException
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException
getObjectInstance
in interface MBeanServer
getObjectInstance
in interface MBeanServerConnection
InstanceNotFoundException
public Set<ObjectName> queryNames(ObjectName name, QueryExp query)
queryNames
in interface MBeanServer
queryNames
in interface MBeanServerConnection
public Object getAttribute(ObjectName name, String attribute) throws InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException
getAttribute
in interface MBeanServer
getAttribute
in interface MBeanServerConnection
InstanceNotFoundException
AttributeNotFoundException
ReflectionException
MBeanException
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException
getAttributes
in interface MBeanServer
getAttributes
in interface MBeanServerConnection
InstanceNotFoundException
public boolean isRegistered(ObjectName name)
isRegistered
in interface MBeanServer
isRegistered
in interface MBeanServerConnection
public Integer getMBeanCount()
getMBeanCount
in interface MBeanServer
getMBeanCount
in interface MBeanServerConnection
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, InvalidAttributeValueException, AttributeNotFoundException, ReflectionException, MBeanException
setAttribute
in interface MBeanServer
setAttribute
in interface MBeanServerConnection
InstanceNotFoundException
InvalidAttributeValueException
AttributeNotFoundException
ReflectionException
MBeanException
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException
setAttributes
in interface MBeanServer
setAttributes
in interface MBeanServerConnection
InstanceNotFoundException
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, ReflectionException, MBeanException
invoke
in interface MBeanServer
invoke
in interface MBeanServerConnection
InstanceNotFoundException
ReflectionException
MBeanException
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException
getMBeanInfo
in interface MBeanServer
getMBeanInfo
in interface MBeanServerConnection
InstanceNotFoundException
public ObjectInstance createMBean(String className, ObjectName name)
createMBean
in interface MBeanServer
createMBean
in interface MBeanServerConnection
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName)
createMBean
in interface MBeanServer
createMBean
in interface MBeanServerConnection
public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature)
createMBean
in interface MBeanServer
createMBean
in interface MBeanServerConnection
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature)
createMBean
in interface MBeanServer
createMBean
in interface MBeanServerConnection
public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query)
queryMBeans
in interface MBeanServer
queryMBeans
in interface MBeanServerConnection
public String getDefaultDomain()
getDefaultDomain
in interface MBeanServer
getDefaultDomain
in interface MBeanServerConnection
public String[] getDomains()
getDomains
in interface MBeanServer
getDomains
in interface MBeanServerConnection
public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
addNotificationListener
in interface MBeanServer
addNotificationListener
in interface MBeanServerConnection
public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
addNotificationListener
in interface MBeanServer
addNotificationListener
in interface MBeanServerConnection
public void removeNotificationListener(ObjectName name, ObjectName listener)
removeNotificationListener
in interface MBeanServer
removeNotificationListener
in interface MBeanServerConnection
public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
removeNotificationListener
in interface MBeanServer
removeNotificationListener
in interface MBeanServerConnection
public void removeNotificationListener(ObjectName name, NotificationListener listener)
removeNotificationListener
in interface MBeanServer
removeNotificationListener
in interface MBeanServerConnection
public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
removeNotificationListener
in interface MBeanServer
removeNotificationListener
in interface MBeanServerConnection
public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException
isInstanceOf
in interface MBeanServer
isInstanceOf
in interface MBeanServerConnection
InstanceNotFoundException
public Object instantiate(String className) throws ReflectionException, MBeanException
instantiate
in interface MBeanServer
ReflectionException
MBeanException
public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException
instantiate
in interface MBeanServer
ReflectionException
MBeanException
InstanceNotFoundException
public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException
instantiate
in interface MBeanServer
ReflectionException
MBeanException
public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException
instantiate
in interface MBeanServer
ReflectionException
MBeanException
InstanceNotFoundException
public ObjectInputStream deserialize(ObjectName name, byte[] data)
deserialize
in interface MBeanServer
public ObjectInputStream deserialize(String className, byte[] data)
deserialize
in interface MBeanServer
public ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] data)
deserialize
in interface MBeanServer
public ClassLoader getClassLoaderFor(ObjectName mbeanName)
getClassLoaderFor
in interface MBeanServer
public ClassLoader getClassLoader(ObjectName loaderName)
getClassLoader
in interface MBeanServer
public ClassLoaderRepository getClassLoaderRepository()
getClassLoaderRepository
in interface MBeanServer
Copyright © 2018. All rights reserved.