@Immutable public final class MultiplexingMBeanServer extends DelegatingMBeanServer
Constructor and Description |
---|
MultiplexingMBeanServer(MBeanServer mbs,
ObjectNameModifier modifier) |
deserialize, deserialize, getClassLoader, getClassLoaderRepository, getDefaultDomain, getDomains, instantiate, instantiate, instantiate, instantiate
public MultiplexingMBeanServer(MBeanServer mbs, ObjectNameModifier modifier)
public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException
addNotificationListener
in interface MBeanServer
addNotificationListener
in interface MBeanServerConnection
addNotificationListener
in class DelegatingMBeanServer
InstanceNotFoundException
public void addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException
addNotificationListener
in interface MBeanServer
addNotificationListener
in interface MBeanServerConnection
addNotificationListener
in class DelegatingMBeanServer
InstanceNotFoundException
public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException
createMBean
in interface MBeanServer
createMBean
in interface MBeanServerConnection
createMBean
in class DelegatingMBeanServer
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
public ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException
createMBean
in interface MBeanServer
createMBean
in interface MBeanServerConnection
createMBean
in class DelegatingMBeanServer
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException
createMBean
in interface MBeanServer
createMBean
in interface MBeanServerConnection
createMBean
in class DelegatingMBeanServer
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException
createMBean
in interface MBeanServer
createMBean
in interface MBeanServerConnection
createMBean
in class DelegatingMBeanServer
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
@Deprecated public ObjectInputStream deserialize(ObjectName name, byte[] data) throws InstanceNotFoundException, OperationsException
deserialize
in interface MBeanServer
deserialize
in class DelegatingMBeanServer
InstanceNotFoundException
OperationsException
public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException
getAttribute
in interface MBeanServer
getAttribute
in interface MBeanServerConnection
getAttribute
in class DelegatingMBeanServer
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException
getAttributes
in interface MBeanServer
getAttributes
in interface MBeanServerConnection
getAttributes
in class DelegatingMBeanServer
InstanceNotFoundException
ReflectionException
public ClassLoader getClassLoaderFor(ObjectName mbeanName) throws InstanceNotFoundException
getClassLoaderFor
in interface MBeanServer
getClassLoaderFor
in class DelegatingMBeanServer
InstanceNotFoundException
public Integer getMBeanCount()
getMBeanCount
in interface MBeanServer
getMBeanCount
in interface MBeanServerConnection
getMBeanCount
in class DelegatingMBeanServer
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException
getMBeanInfo
in interface MBeanServer
getMBeanInfo
in interface MBeanServerConnection
getMBeanInfo
in class DelegatingMBeanServer
InstanceNotFoundException
IntrospectionException
ReflectionException
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException
getObjectInstance
in interface MBeanServer
getObjectInstance
in interface MBeanServerConnection
getObjectInstance
in class DelegatingMBeanServer
InstanceNotFoundException
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException
invoke
in interface MBeanServer
invoke
in interface MBeanServerConnection
invoke
in class DelegatingMBeanServer
InstanceNotFoundException
MBeanException
ReflectionException
public boolean isInstanceOf(ObjectName name, String className) throws InstanceNotFoundException
isInstanceOf
in interface MBeanServer
isInstanceOf
in interface MBeanServerConnection
isInstanceOf
in class DelegatingMBeanServer
InstanceNotFoundException
public boolean isRegistered(ObjectName name)
isRegistered
in interface MBeanServer
isRegistered
in interface MBeanServerConnection
isRegistered
in class DelegatingMBeanServer
protected MBeanServer mbs()
DelegatingMBeanServer
mbs
in class DelegatingMBeanServer
public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query)
queryMBeans
in interface MBeanServer
queryMBeans
in interface MBeanServerConnection
queryMBeans
in class DelegatingMBeanServer
public Set<ObjectName> queryNames(ObjectName name, QueryExp query)
queryNames
in interface MBeanServer
queryNames
in interface MBeanServerConnection
queryNames
in class DelegatingMBeanServer
public ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
registerMBean
in interface MBeanServer
registerMBean
in class DelegatingMBeanServer
InstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException
public void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException
removeNotificationListener
in interface MBeanServer
removeNotificationListener
in interface MBeanServerConnection
removeNotificationListener
in class DelegatingMBeanServer
InstanceNotFoundException
ListenerNotFoundException
public void removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException
removeNotificationListener
in interface MBeanServer
removeNotificationListener
in interface MBeanServerConnection
removeNotificationListener
in class DelegatingMBeanServer
InstanceNotFoundException
ListenerNotFoundException
public void removeNotificationListener(ObjectName name, ObjectName listener) throws InstanceNotFoundException, ListenerNotFoundException
removeNotificationListener
in interface MBeanServer
removeNotificationListener
in interface MBeanServerConnection
removeNotificationListener
in class DelegatingMBeanServer
InstanceNotFoundException
ListenerNotFoundException
public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException
removeNotificationListener
in interface MBeanServer
removeNotificationListener
in interface MBeanServerConnection
removeNotificationListener
in class DelegatingMBeanServer
InstanceNotFoundException
ListenerNotFoundException
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute
in interface MBeanServer
setAttribute
in interface MBeanServerConnection
setAttribute
in class DelegatingMBeanServer
InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException
setAttributes
in interface MBeanServer
setAttributes
in interface MBeanServerConnection
setAttributes
in class DelegatingMBeanServer
InstanceNotFoundException
ReflectionException
public void unregisterMBean(ObjectName name) throws MBeanRegistrationException, InstanceNotFoundException
unregisterMBean
in interface MBeanServer
unregisterMBean
in interface MBeanServerConnection
unregisterMBean
in class DelegatingMBeanServer
MBeanRegistrationException
InstanceNotFoundException
Copyright © 2012–2017 Schlichtherle IT Services. All rights reserved.