public class MBeanContext
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
MBeanContext.MBeanClose |
Modifier and Type | Method and Description |
---|---|
java.util.LinkedHashMap<java.lang.String,java.lang.String> |
copyProperties()
Sets the properties.
|
void |
destroy()
Closes the context server.
|
java.lang.ClassLoader |
getClassLoader()
Returns the class loader.
|
javax.management.loading.ClassLoaderRepository |
getClassLoaderRepository()
Returns the ClassLoaderRepository.
|
int |
getMBeanCount()
Returns the number of MBeans registered.
|
javax.management.ObjectInstance |
getObjectInstance(javax.management.ObjectName name)
Returns the MBean registered with the given name.
|
javax.management.ObjectName |
getObjectName(java.lang.String name)
Returns the object name.
|
protected MBeanView |
getParentView()
Returns the parent view.
|
boolean |
isRegistered(javax.management.ObjectName name)
Returns true if the given object is registered with the server.
|
void |
removeNotificationListener(javax.management.ObjectName mbean,
javax.management.NotificationListener listener)
Removes a listener to a registered MBean
|
void |
removeNotificationListener(javax.management.ObjectName mbean,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Removes a listener to a registered MBean
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> props)
Sets the properties.
|
java.lang.String |
toString()
Display name.
|
void |
unregisterMBean(javax.management.ObjectName name)
Unregisters an MBean from the server.
|
protected MBeanView getParentView()
public javax.management.loading.ClassLoaderRepository getClassLoaderRepository()
public java.lang.ClassLoader getClassLoader()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> props)
public java.util.LinkedHashMap<java.lang.String,java.lang.String> copyProperties()
public javax.management.ObjectName getObjectName(java.lang.String name) throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameException
public void unregisterMBean(javax.management.ObjectName name) throws javax.management.InstanceNotFoundException, javax.management.MBeanRegistrationException
name
- the name of the mbean.javax.management.InstanceNotFoundException
javax.management.MBeanRegistrationException
public javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName name) throws javax.management.InstanceNotFoundException
name
- the name of the mbean.javax.management.InstanceNotFoundException
public boolean isRegistered(javax.management.ObjectName name)
name
- the name of the mbean to test.public int getMBeanCount()
public void removeNotificationListener(javax.management.ObjectName mbean, javax.management.NotificationListener listener)
mbean
- the name of the mbeanlistener
- the listener objectpublic void removeNotificationListener(javax.management.ObjectName mbean, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
mbean
- the name of the mbeanlistener
- the listener objectfilter
- filters events the listener is interested inhandback
- context to be returned to the listenerpublic void destroy()
public java.lang.String toString()
toString
in class java.lang.Object