com.liferay.portal.kernel.jmx
Class RegistryAwareMBeanServer
java.lang.Object
com.liferay.portal.kernel.jmx.RegistryAwareMBeanServer
- All Implemented Interfaces:
- MBeanServer, MBeanServerConnection
public class RegistryAwareMBeanServer
- extends Object
- implements MBeanServer
Method Summary |
void |
addNotificationListener(ObjectName objectName,
NotificationListener notificationListener,
NotificationFilter notificationFilter,
Object handback)
|
void |
addNotificationListener(ObjectName objectName,
ObjectName listenerObjectName,
NotificationFilter notificationFilter,
Object handback)
|
ObjectInstance |
createMBean(String className,
ObjectName objectName)
|
ObjectInstance |
createMBean(String className,
ObjectName objectName,
Object[] params,
String[] signature)
|
ObjectInstance |
createMBean(String className,
ObjectName objectName,
ObjectName loaderName)
|
ObjectInstance |
createMBean(String className,
ObjectName objectName,
ObjectName loaderObjectName,
Object[] params,
String[] signature)
|
ObjectInputStream |
deserialize(ObjectName objectName,
byte[] data)
Deprecated. |
ObjectInputStream |
deserialize(String className,
byte[] data)
Deprecated. |
ObjectInputStream |
deserialize(String className,
ObjectName loaderObjectName,
byte[] data)
Deprecated. |
Object |
getAttribute(ObjectName objectName,
String attribute)
|
AttributeList |
getAttributes(ObjectName objectName,
String[] attributes)
|
ClassLoader |
getClassLoader(ObjectName loaderObjectName)
|
ClassLoader |
getClassLoaderFor(ObjectName objectName)
|
ClassLoaderRepository |
getClassLoaderRepository()
|
String |
getDefaultDomain()
|
String[] |
getDomains()
|
Integer |
getMBeanCount()
|
MBeanInfo |
getMBeanInfo(ObjectName objectName)
|
ObjectInstance |
getObjectInstance(ObjectName objectName)
|
protected ObjectName |
getPlatformObjectName(ObjectName objectName)
|
Object |
instantiate(String className)
|
Object |
instantiate(String className,
Object[] params,
String[] signature)
|
Object |
instantiate(String className,
ObjectName loaderObjectName)
|
Object |
instantiate(String className,
ObjectName loaderName,
Object[] params,
String[] signature)
|
Object |
invoke(ObjectName objectName,
String operationName,
Object[] params,
String[] signature)
|
boolean |
isInstanceOf(ObjectName objectName,
String className)
|
boolean |
isRegistered(ObjectName objectName)
|
Set<ObjectInstance> |
queryMBeans(ObjectName objectName,
QueryExp queryExp)
|
Set<ObjectName> |
queryNames(ObjectName objectName,
QueryExp queryExp)
|
ObjectInstance |
registerMBean(Object object,
ObjectName objectName)
|
void |
removeNotificationListener(ObjectName name,
NotificationListener notificationListener)
|
void |
removeNotificationListener(ObjectName objectName,
NotificationListener notificationListener,
NotificationFilter notificationFilter,
Object handback)
|
void |
removeNotificationListener(ObjectName objectName,
ObjectName listenerObjectName)
|
void |
removeNotificationListener(ObjectName objectName,
ObjectName listenerObjectName,
NotificationFilter notificationFilter,
Object handback)
|
void |
setAttribute(ObjectName objectName,
Attribute attribute)
|
AttributeList |
setAttributes(ObjectName objectName,
AttributeList attributeList)
|
void |
setMBeanRegistry(MBeanRegistry mBeanRegistry)
|
void |
setMBeanServer(MBeanServer mBeanServer)
|
void |
unregisterMBean(ObjectName objectName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistryAwareMBeanServer
public RegistryAwareMBeanServer()
addNotificationListener
public void addNotificationListener(ObjectName objectName,
NotificationListener notificationListener,
NotificationFilter notificationFilter,
Object handback)
throws InstanceNotFoundException
- Specified by:
addNotificationListener
in interface MBeanServer
- Specified by:
addNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
addNotificationListener
public void addNotificationListener(ObjectName objectName,
ObjectName listenerObjectName,
NotificationFilter notificationFilter,
Object handback)
throws InstanceNotFoundException
- Specified by:
addNotificationListener
in interface MBeanServer
- Specified by:
addNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
createMBean
public ObjectInstance createMBean(String className,
ObjectName objectName)
throws InstanceAlreadyExistsException,
MBeanException,
MBeanRegistrationException,
NotCompliantMBeanException,
ReflectionException
- Specified by:
createMBean
in interface MBeanServer
- Specified by:
createMBean
in interface MBeanServerConnection
- Throws:
InstanceAlreadyExistsException
MBeanException
MBeanRegistrationException
NotCompliantMBeanException
ReflectionException
createMBean
public ObjectInstance createMBean(String className,
ObjectName objectName,
Object[] params,
String[] signature)
throws InstanceAlreadyExistsException,
MBeanException,
MBeanRegistrationException,
NotCompliantMBeanException,
ReflectionException
- Specified by:
createMBean
in interface MBeanServer
- Specified by:
createMBean
in interface MBeanServerConnection
- Throws:
InstanceAlreadyExistsException
MBeanException
MBeanRegistrationException
NotCompliantMBeanException
ReflectionException
createMBean
public ObjectInstance createMBean(String className,
ObjectName objectName,
ObjectName loaderName)
throws InstanceAlreadyExistsException,
InstanceNotFoundException,
MBeanException,
MBeanRegistrationException,
NotCompliantMBeanException,
ReflectionException
- Specified by:
createMBean
in interface MBeanServer
- Specified by:
createMBean
in interface MBeanServerConnection
- Throws:
InstanceAlreadyExistsException
InstanceNotFoundException
MBeanException
MBeanRegistrationException
NotCompliantMBeanException
ReflectionException
createMBean
public ObjectInstance createMBean(String className,
ObjectName objectName,
ObjectName loaderObjectName,
Object[] params,
String[] signature)
throws InstanceAlreadyExistsException,
InstanceNotFoundException,
MBeanException,
MBeanRegistrationException,
NotCompliantMBeanException,
ReflectionException
- Specified by:
createMBean
in interface MBeanServer
- Specified by:
createMBean
in interface MBeanServerConnection
- Throws:
InstanceAlreadyExistsException
InstanceNotFoundException
MBeanException
MBeanRegistrationException
NotCompliantMBeanException
ReflectionException
deserialize
public ObjectInputStream deserialize(ObjectName objectName,
byte[] data)
throws InstanceNotFoundException,
OperationsException
- Deprecated.
- Specified by:
deserialize
in interface MBeanServer
- Throws:
InstanceNotFoundException
OperationsException
deserialize
public ObjectInputStream deserialize(String className,
byte[] data)
throws OperationsException,
ReflectionException
- Deprecated.
- Specified by:
deserialize
in interface MBeanServer
- Throws:
OperationsException
ReflectionException
deserialize
public ObjectInputStream deserialize(String className,
ObjectName loaderObjectName,
byte[] data)
throws InstanceNotFoundException,
OperationsException,
ReflectionException
- Deprecated.
- Specified by:
deserialize
in interface MBeanServer
- Throws:
InstanceNotFoundException
OperationsException
ReflectionException
getAttribute
public Object getAttribute(ObjectName objectName,
String attribute)
throws AttributeNotFoundException,
InstanceNotFoundException,
MBeanException,
ReflectionException
- Specified by:
getAttribute
in interface MBeanServer
- Specified by:
getAttribute
in interface MBeanServerConnection
- Throws:
AttributeNotFoundException
InstanceNotFoundException
MBeanException
ReflectionException
getAttributes
public AttributeList getAttributes(ObjectName objectName,
String[] attributes)
throws InstanceNotFoundException,
ReflectionException
- Specified by:
getAttributes
in interface MBeanServer
- Specified by:
getAttributes
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ReflectionException
getClassLoader
public ClassLoader getClassLoader(ObjectName loaderObjectName)
throws InstanceNotFoundException
- Specified by:
getClassLoader
in interface MBeanServer
- Throws:
InstanceNotFoundException
getClassLoaderFor
public ClassLoader getClassLoaderFor(ObjectName objectName)
throws InstanceNotFoundException
- Specified by:
getClassLoaderFor
in interface MBeanServer
- Throws:
InstanceNotFoundException
getClassLoaderRepository
public ClassLoaderRepository getClassLoaderRepository()
- Specified by:
getClassLoaderRepository
in interface MBeanServer
getDefaultDomain
public String getDefaultDomain()
- Specified by:
getDefaultDomain
in interface MBeanServer
- Specified by:
getDefaultDomain
in interface MBeanServerConnection
getDomains
public String[] getDomains()
- Specified by:
getDomains
in interface MBeanServer
- Specified by:
getDomains
in interface MBeanServerConnection
getMBeanCount
public Integer getMBeanCount()
- Specified by:
getMBeanCount
in interface MBeanServer
- Specified by:
getMBeanCount
in interface MBeanServerConnection
getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName objectName)
throws InstanceNotFoundException,
IntrospectionException,
ReflectionException
- Specified by:
getMBeanInfo
in interface MBeanServer
- Specified by:
getMBeanInfo
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
IntrospectionException
ReflectionException
getObjectInstance
public ObjectInstance getObjectInstance(ObjectName objectName)
throws InstanceNotFoundException
- Specified by:
getObjectInstance
in interface MBeanServer
- Specified by:
getObjectInstance
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
instantiate
public Object instantiate(String className)
throws MBeanException,
ReflectionException
- Specified by:
instantiate
in interface MBeanServer
- Throws:
MBeanException
ReflectionException
instantiate
public Object instantiate(String className,
Object[] params,
String[] signature)
throws MBeanException,
ReflectionException
- Specified by:
instantiate
in interface MBeanServer
- Throws:
MBeanException
ReflectionException
instantiate
public Object instantiate(String className,
ObjectName loaderObjectName)
throws InstanceNotFoundException,
MBeanException,
ReflectionException
- Specified by:
instantiate
in interface MBeanServer
- Throws:
InstanceNotFoundException
MBeanException
ReflectionException
instantiate
public Object instantiate(String className,
ObjectName loaderName,
Object[] params,
String[] signature)
throws InstanceNotFoundException,
MBeanException,
ReflectionException
- Specified by:
instantiate
in interface MBeanServer
- Throws:
InstanceNotFoundException
MBeanException
ReflectionException
invoke
public Object invoke(ObjectName objectName,
String operationName,
Object[] params,
String[] signature)
throws InstanceNotFoundException,
MBeanException,
ReflectionException
- Specified by:
invoke
in interface MBeanServer
- Specified by:
invoke
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
MBeanException
ReflectionException
isInstanceOf
public boolean isInstanceOf(ObjectName objectName,
String className)
throws InstanceNotFoundException
- Specified by:
isInstanceOf
in interface MBeanServer
- Specified by:
isInstanceOf
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
isRegistered
public boolean isRegistered(ObjectName objectName)
- Specified by:
isRegistered
in interface MBeanServer
- Specified by:
isRegistered
in interface MBeanServerConnection
queryMBeans
public Set<ObjectInstance> queryMBeans(ObjectName objectName,
QueryExp queryExp)
- Specified by:
queryMBeans
in interface MBeanServer
- Specified by:
queryMBeans
in interface MBeanServerConnection
queryNames
public Set<ObjectName> queryNames(ObjectName objectName,
QueryExp queryExp)
- Specified by:
queryNames
in interface MBeanServer
- Specified by:
queryNames
in interface MBeanServerConnection
registerMBean
public ObjectInstance registerMBean(Object object,
ObjectName objectName)
throws InstanceAlreadyExistsException,
MBeanRegistrationException,
NotCompliantMBeanException
- Specified by:
registerMBean
in interface MBeanServer
- Throws:
InstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException
removeNotificationListener
public void removeNotificationListener(ObjectName name,
NotificationListener notificationListener)
throws InstanceNotFoundException,
ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface MBeanServer
- Specified by:
removeNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ListenerNotFoundException
removeNotificationListener
public void removeNotificationListener(ObjectName objectName,
NotificationListener notificationListener,
NotificationFilter notificationFilter,
Object handback)
throws InstanceNotFoundException,
ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface MBeanServer
- Specified by:
removeNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ListenerNotFoundException
removeNotificationListener
public void removeNotificationListener(ObjectName objectName,
ObjectName listenerObjectName)
throws InstanceNotFoundException,
ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface MBeanServer
- Specified by:
removeNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ListenerNotFoundException
removeNotificationListener
public void removeNotificationListener(ObjectName objectName,
ObjectName listenerObjectName,
NotificationFilter notificationFilter,
Object handback)
throws InstanceNotFoundException,
ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface MBeanServer
- Specified by:
removeNotificationListener
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ListenerNotFoundException
setAttribute
public void setAttribute(ObjectName objectName,
Attribute attribute)
throws AttributeNotFoundException,
InstanceNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Specified by:
setAttribute
in interface MBeanServer
- Specified by:
setAttribute
in interface MBeanServerConnection
- Throws:
AttributeNotFoundException
InstanceNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
setAttributes
public AttributeList setAttributes(ObjectName objectName,
AttributeList attributeList)
throws InstanceNotFoundException,
ReflectionException
- Specified by:
setAttributes
in interface MBeanServer
- Specified by:
setAttributes
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
ReflectionException
setMBeanRegistry
public void setMBeanRegistry(MBeanRegistry mBeanRegistry)
setMBeanServer
public void setMBeanServer(MBeanServer mBeanServer)
unregisterMBean
public void unregisterMBean(ObjectName objectName)
throws InstanceNotFoundException,
MBeanRegistrationException
- Specified by:
unregisterMBean
in interface MBeanServer
- Specified by:
unregisterMBean
in interface MBeanServerConnection
- Throws:
InstanceNotFoundException
MBeanRegistrationException
getPlatformObjectName
protected ObjectName getPlatformObjectName(ObjectName objectName)