|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.utils.jmx.PogamutMBeanServer
public class PogamutMBeanServer
Wrapper of the MBeanServer
interface, that is using to store references of
registered mbeans and listeners allowing to unregister/register them again using
unregisterAll()
and registerAll()
.
Constructor Summary | |
---|---|
PogamutMBeanServer()
|
|
PogamutMBeanServer(javax.management.MBeanServer mBeanServer)
|
Method Summary | |
---|---|
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)
|
void |
clearSaved()
|
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)
Deprecated. |
java.io.ObjectInputStream |
deserialize(java.lang.String className,
byte[] data)
Deprecated. |
java.io.ObjectInputStream |
deserialize(java.lang.String className,
javax.management.ObjectName loaderName,
byte[] data)
Deprecated. |
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)
|
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)
|
void |
registerAll()
|
javax.management.ObjectInstance |
registerMBean(java.lang.Object object,
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)
|
void |
setAttribute(javax.management.ObjectName name,
javax.management.Attribute attribute)
|
javax.management.AttributeList |
setAttributes(javax.management.ObjectName name,
javax.management.AttributeList attributes)
|
void |
unregisterAll()
Unreagister all listeners and mbeans from the server. |
void |
unregisterMBean(javax.management.ObjectName name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PogamutMBeanServer()
public PogamutMBeanServer(javax.management.MBeanServer mBeanServer)
Method Detail |
---|
public void clearSaved()
public void unregisterAll()
public void registerAll() throws javax.management.InstanceNotFoundException, javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.NotCompliantMBeanException
javax.management.InstanceNotFoundException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.NotCompliantMBeanException
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 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
@Deprecated 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
@Deprecated 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
@Deprecated 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.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 java.lang.ClassLoader getClassLoader(javax.management.ObjectName loaderName) throws javax.management.InstanceNotFoundException
getClassLoader
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
public java.lang.ClassLoader getClassLoaderFor(javax.management.ObjectName mbeanName) throws javax.management.InstanceNotFoundException
getClassLoaderFor
in interface javax.management.MBeanServer
javax.management.InstanceNotFoundException
public javax.management.loading.ClassLoaderRepository getClassLoaderRepository()
getClassLoaderRepository
in interface javax.management.MBeanServer
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 java.lang.Integer getMBeanCount()
getMBeanCount
in interface javax.management.MBeanServer
getMBeanCount
in interface javax.management.MBeanServerConnection
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 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.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.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 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 boolean isRegistered(javax.management.ObjectName name)
isRegistered
in interface javax.management.MBeanServer
isRegistered
in interface javax.management.MBeanServerConnection
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 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 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.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.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, 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 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 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |