public final class LocalMBeanServer
extends java.lang.Object
implements javax.management.MBeanServer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPENEJB_JMX_ACTIVE |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
void |
addNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName name) |
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName name,
java.lang.Object[] params,
java.lang.String[] signature) |
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName name,
javax.management.ObjectName loaderName) |
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName name,
javax.management.ObjectName loaderName,
java.lang.Object[] params,
java.lang.String[] signature) |
java.io.ObjectInputStream |
deserialize(javax.management.ObjectName name,
byte[] data) |
java.io.ObjectInputStream |
deserialize(java.lang.String className,
byte[] data) |
java.io.ObjectInputStream |
deserialize(java.lang.String className,
javax.management.ObjectName loaderName,
byte[] data) |
static javax.management.MBeanServer |
get() |
java.lang.Object |
getAttribute(javax.management.ObjectName name,
java.lang.String attribute) |
javax.management.AttributeList |
getAttributes(javax.management.ObjectName name,
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 name) |
javax.management.ObjectInstance |
getObjectInstance(javax.management.ObjectName name) |
java.lang.Object |
instantiate(java.lang.String className) |
java.lang.Object |
instantiate(java.lang.String className,
java.lang.Object[] params,
java.lang.String[] signature) |
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[] params,
java.lang.String[] signature) |
java.lang.Object |
invoke(javax.management.ObjectName name,
java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature) |
boolean |
isInstanceOf(javax.management.ObjectName name,
java.lang.String className) |
static boolean |
isJMXActive() |
boolean |
isRegistered(javax.management.ObjectName name) |
java.util.Set<javax.management.ObjectInstance> |
queryMBeans(javax.management.ObjectName name,
javax.management.QueryExp query) |
java.util.Set<javax.management.ObjectName> |
queryNames(javax.management.ObjectName name,
javax.management.QueryExp query) |
static javax.management.ObjectInstance |
registerDynamicWrapperSilently(java.lang.Object object,
javax.management.ObjectName name) |
javax.management.ObjectInstance |
registerMBean(java.lang.Object object,
javax.management.ObjectName name) |
static javax.management.ObjectInstance |
registerSilently(java.lang.Object mbean,
javax.management.ObjectName name) |
void |
removeNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener) |
void |
removeNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
void |
removeNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener) |
void |
removeNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
static void |
reset() |
void |
setAttribute(javax.management.ObjectName name,
javax.management.Attribute attribute) |
javax.management.AttributeList |
setAttributes(javax.management.ObjectName name,
javax.management.AttributeList attributes) |
static javax.management.openmbean.TabularData |
tabularData(java.lang.String typeName,
java.lang.String typeDescription,
java.lang.String[] names,
java.lang.Object[] values) |
static javax.management.openmbean.TabularData |
tabularData(java.lang.String typeName,
java.lang.String typeDescription,
java.lang.String description,
java.util.Properties properties) |
void |
unregisterMBean(javax.management.ObjectName name) |
static void |
unregisterSilently(javax.management.ObjectName name) |
public static final java.lang.String OPENEJB_JMX_ACTIVE
public static void reset()
public static javax.management.MBeanServer get()
public static boolean isJMXActive()
public static javax.management.ObjectInstance registerSilently(java.lang.Object mbean, javax.management.ObjectName name)
public static javax.management.ObjectInstance registerDynamicWrapperSilently(java.lang.Object object, javax.management.ObjectName name)
public static void unregisterSilently(javax.management.ObjectName name)
public static javax.management.openmbean.TabularData tabularData(java.lang.String typeName, java.lang.String typeDescription, java.lang.String[] names, java.lang.Object[] values)
public static javax.management.openmbean.TabularData tabularData(java.lang.String typeName, java.lang.String typeDescription, java.lang.String description, java.util.Properties properties)
public javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName name) throws javax.management.ReflectionException, javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MBeanException, javax.management.NotCompliantMBeanException
createMBean
in interface javax.management.MBeanServer
createMBean
in interface javax.management.MBeanServerConnection
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 name, 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
createMBean
in interface javax.management.MBeanServerConnection
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 name, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.ReflectionException, javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MBeanException, javax.management.NotCompliantMBeanException
createMBean
in interface javax.management.MBeanServer
createMBean
in interface javax.management.MBeanServerConnection
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 name, javax.management.ObjectName loaderName, java.lang.Object[] params, java.lang.String[] signature) 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
createMBean
in interface javax.management.MBeanServerConnection
javax.management.ReflectionException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MBeanException
javax.management.NotCompliantMBeanException
javax.management.InstanceNotFoundException
public javax.management.ObjectInstance registerMBean(java.lang.Object object, javax.management.ObjectName name) 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 unregisterMBean(javax.management.ObjectName name) throws javax.management.InstanceNotFoundException, javax.management.MBeanRegistrationException
unregisterMBean
in interface javax.management.MBeanServer
unregisterMBean
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
javax.management.MBeanRegistrationException
public javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName name) throws javax.management.InstanceNotFoundException
getObjectInstance
in interface javax.management.MBeanServer
getObjectInstance
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
public java.util.Set<javax.management.ObjectInstance> queryMBeans(javax.management.ObjectName name, javax.management.QueryExp query)
queryMBeans
in interface javax.management.MBeanServer
queryMBeans
in interface javax.management.MBeanServerConnection
public java.util.Set<javax.management.ObjectName> queryNames(javax.management.ObjectName name, javax.management.QueryExp query)
queryNames
in interface javax.management.MBeanServer
queryNames
in interface javax.management.MBeanServerConnection
public boolean isRegistered(javax.management.ObjectName name)
isRegistered
in interface javax.management.MBeanServer
isRegistered
in interface javax.management.MBeanServerConnection
public java.lang.Integer getMBeanCount()
getMBeanCount
in interface javax.management.MBeanServer
getMBeanCount
in interface javax.management.MBeanServerConnection
public java.lang.Object getAttribute(javax.management.ObjectName name, java.lang.String attribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.ReflectionException
getAttribute
in interface javax.management.MBeanServer
getAttribute
in interface javax.management.MBeanServerConnection
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
public javax.management.AttributeList getAttributes(javax.management.ObjectName name, java.lang.String[] attributes) throws javax.management.InstanceNotFoundException, javax.management.ReflectionException
getAttributes
in interface javax.management.MBeanServer
getAttributes
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
javax.management.ReflectionException
public void setAttribute(javax.management.ObjectName name, 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
setAttribute
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.AttributeList setAttributes(javax.management.ObjectName name, javax.management.AttributeList attributes) throws javax.management.InstanceNotFoundException, javax.management.ReflectionException
setAttributes
in interface javax.management.MBeanServer
setAttributes
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
javax.management.ReflectionException
public java.lang.Object invoke(javax.management.ObjectName name, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
invoke
in interface javax.management.MBeanServer
invoke
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public java.lang.String getDefaultDomain()
getDefaultDomain
in interface javax.management.MBeanServer
getDefaultDomain
in interface javax.management.MBeanServerConnection
public java.lang.String[] getDomains()
getDomains
in interface javax.management.MBeanServer
getDomains
in interface javax.management.MBeanServerConnection
public void addNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.InstanceNotFoundException
addNotificationListener
in interface javax.management.MBeanServer
addNotificationListener
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
public void addNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.InstanceNotFoundException
addNotificationListener
in interface javax.management.MBeanServer
addNotificationListener
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
public void removeNotificationListener(javax.management.ObjectName name, javax.management.ObjectName listener) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.MBeanServer
removeNotificationListener
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.ObjectName name, 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
removeNotificationListener
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.MBeanServer
removeNotificationListener
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.ObjectName name, 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
removeNotificationListener
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName name) throws javax.management.InstanceNotFoundException, javax.management.IntrospectionException, javax.management.ReflectionException
getMBeanInfo
in interface javax.management.MBeanServer
getMBeanInfo
in interface javax.management.MBeanServerConnection
javax.management.InstanceNotFoundException
javax.management.IntrospectionException
javax.management.ReflectionException
public boolean isInstanceOf(javax.management.ObjectName name, java.lang.String className) throws javax.management.InstanceNotFoundException
isInstanceOf
in interface javax.management.MBeanServer
isInstanceOf
in interface javax.management.MBeanServerConnection
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, 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, java.lang.Object[] params, java.lang.String[] signature) 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, java.lang.Object[] params, java.lang.String[] signature) 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.io.ObjectInputStream deserialize(javax.management.ObjectName name, byte[] data) throws javax.management.InstanceNotFoundException, javax.management.OperationsException
deserialize
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
javax.management.OperationsException
public java.io.ObjectInputStream deserialize(java.lang.String className, byte[] data) 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[] data) 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.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