|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.jdmk.DynamicMetaDataImpl
The DynamicMetaDataImpl class provides local access to the metadata service in an agent. The DynamicMetaDataImpl only handles DynamicMBeans.
| Field Summary | |
protected MBeanInstantiator |
instantiator
The MBeanInstantiator associated to the MetaData |
| Method Summary | |
Object |
getAttribute(Object instance,
String attribute)
Gets the value of a specific attribute of an MBean. |
AttributeList |
getAttributes(Object instance,
String[] attributes)
Enables the values of several attributes of an MBean. |
String |
getMBeanClassName(Object moi)
This method returns the class name of an MBean. |
MBeanInfo |
getMBeanInfo(Object moi)
This method discovers the attributes and operations that an MBean exposes for management. |
Object |
invoke(Object instance,
String operationName,
Object[] params,
String[] signature)
Invokes an operation on an MBean. |
boolean |
isInstanceOf(Object instance,
String className)
Determine whether the given MBean is an instance of a given class/interface. |
void |
postDeregisterInvoker(Object moi)
Invokes the postDeregister method of an MBean that implements MBeanRegistration |
void |
postRegisterInvoker(Object moi,
boolean registrationDone)
Invokes the postRegister method of an MBean that implements MBeanRegistration |
void |
preDeregisterInvoker(Object moi)
Invokes the preDeregister method of an MBean that implements MBeanRegistration |
ObjectName |
preRegisterInvoker(Object moi,
ObjectName name,
MBeanServer mbs)
Invokes the preRegister method of an MBean that implements MBeanRegistration |
Object |
setAttribute(Object instance,
Attribute attribute)
Sets the value of a specific attribute of an MBean. |
AttributeList |
setAttributes(Object instance,
AttributeList attributes)
Sets the values of several attributes of an MBean. |
void |
testCompliance(Class c)
This methods tests if the MBean is JMX compliant |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final MBeanInstantiator instantiator
| Method Detail |
public void testCompliance(Class c)
throws NotCompliantMBeanException
testCompliance in interface MetaDataNotCompliantMBeanException
public ObjectName preRegisterInvoker(Object moi,
ObjectName name,
MBeanServer mbs)
throws InstanceAlreadyExistsException,
MBeanRegistrationException
MetaData
preRegisterInvoker in interface MetaDataInstanceAlreadyExistsException
MBeanRegistrationException
public void postRegisterInvoker(Object moi,
boolean registrationDone)
MetaData
postRegisterInvoker in interface MetaData
public void preDeregisterInvoker(Object moi)
throws MBeanRegistrationException
MetaData
preDeregisterInvoker in interface MetaDataMBeanRegistrationExceptionpublic void postDeregisterInvoker(Object moi)
MetaData
postDeregisterInvoker in interface MetaData
public String getMBeanClassName(Object moi)
throws IntrospectionException,
NotCompliantMBeanException
MetaData
getMBeanClassName in interface MetaDatamoi - The MBean whose class is to be analyzed.
IntrospectionException - if an exception occurs during
introspection.
NotCompliantMBeanException
public MBeanInfo getMBeanInfo(Object moi)
throws IntrospectionException
MetaData
getMBeanInfo in interface MetaDatamoi - The MBean whose class is to be analyzed.
IntrospectionException - if an exception occurs during
introspection.
public Object getAttribute(Object instance,
String attribute)
throws MBeanException,
AttributeNotFoundException,
ReflectionException
MetaData
getAttribute in interface MetaDatainstance - The MBean from which the attribute is to be retrieved.attribute - An String specifying the name of the attribute to be
retrieved.
MBeanException - Wraps an exception thrown by the MBean's
getter.
AttributeNotFoundException - The specified attribute is
not accessible in the MBean.
ReflectionException - Wraps a java.lang.Exception thrown
while trying to invoke the getter.
public AttributeList getAttributes(Object instance,
String[] attributes)
throws ReflectionException
MetaData
getAttributes in interface MetaDatainstance - The MBean from which the attributes are to be retrieved.attributes - A list of the attributes to be retrieved.
ReflectionException - An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
public AttributeList setAttributes(Object instance,
AttributeList attributes)
throws ReflectionException
MetaData
setAttributes in interface MetaDatainstance - The MBean within which the attributes are to be set.attributes - A list of attributes: The identification of the
attributes to be set and the values they are to be set to.
ReflectionException - An exception occurred when trying to
invoke the getAttributes method of a Dynamic MBean.
public Object setAttribute(Object instance,
Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
MetaData
setAttribute in interface MetaDatainstance - The MBean within which the attribute is to be set.attribute - The identification of the attribute to be set and
the value it is to be set to.
MBeanException - Wraps an exception thrown by the MBean's
setter.
AttributeNotFoundException - The specified attribute is
not accessible in the MBean.
InvalidAttributeValueException - The specified value for
the attribute is not valid.
ReflectionException - Wraps a java.lang.Exception thrown
while trying to invoke the setter.
public Object invoke(Object instance,
String operationName,
Object[] params,
String[] signature)
throws MBeanException,
ReflectionException
MetaData
invoke in interface MetaDatainstance - The MBean on which the method is to be invoked.operationName - The name of the operation to be invoked.params - An array containing the parameters to be set when the operation is
invokedsignature - An array containing the signature of the operation. The class objects will
be loaded using the same class loader as the one used for loading the
MBean on which the operation was invoked.
ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the method.
MBeanException - Wraps an exception thrown by the MBean's invoked method.
public boolean isInstanceOf(Object instance,
String className)
throws ReflectionException
MetaData
isInstanceOf in interface MetaDatainstance - The MBean concerned.className - The name of the class or interface.
true if the MBean is an instance of the
given class, false otherwise.
ReflectionException - if
|
FCS Release jdmk-5_1-b34.2 2005.11.29_16:24:00_MET |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||