org.jboss.cache.jmx
Class ResourceDMBean
java.lang.Object
org.jboss.cache.jmx.ResourceDMBean
- All Implemented Interfaces:
- javax.management.DynamicMBean
public class ResourceDMBean
- extends java.lang.Object
- implements javax.management.DynamicMBean
This class was entirely copied from jgroups 2.7 (same name there).
Couldn't simply reuse it because jgroups does not ship with MBean, ManagedAttribute and ManagedOperation.
Once jgroups will ship these classes, the code can be dinalmically reused from there.
- Since:
- 3.0
- Author:
- Mircea.Markus@jboss.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceDMBean
public ResourceDMBean(java.lang.Object instance)
getMBeanInfo
public javax.management.MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interface javax.management.DynamicMBean
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttribute
in interface javax.management.DynamicMBean
setAttribute
public void setAttribute(javax.management.Attribute attribute)
- Specified by:
setAttribute
in interface javax.management.DynamicMBean
getAttributes
public javax.management.AttributeList getAttributes(java.lang.String[] names)
- Specified by:
getAttributes
in interface javax.management.DynamicMBean
setAttributes
public javax.management.AttributeList setAttributes(javax.management.AttributeList list)
- Specified by:
setAttributes
in interface javax.management.DynamicMBean
invoke
public java.lang.Object invoke(java.lang.String name,
java.lang.Object[] args,
java.lang.String[] sig)
throws javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
invoke
in interface javax.management.DynamicMBean
- Throws:
javax.management.MBeanException
javax.management.ReflectionException
getClassForName
public static java.lang.Class<?> getClassForName(java.lang.String name)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
isManagedResource
public boolean isManagedResource()
getObjectName
public java.lang.String getObjectName()
isOperationRegistred
public boolean isOperationRegistred(java.lang.String operationName)
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.