|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface groups all functions necessary to support a proxy. If both a remote and a local MBean server implement this interface, it will allow a proxy based application to be ran at remote or local MBean server side without modifying its code.
Method Summary | |
java.lang.Object |
getAttribute(ObjectName name,
java.lang.String attribute)
Gets the value of a specific attribute of an MBean |
AttributeList |
getAttributes(ObjectName name,
java.lang.String[] attributes)
Gets a set of attributes in an MBean. |
MBeanInfo |
getMBeanInfo(ObjectName name)
Discovers the attributes and operations that an MBean exposes for management. |
java.lang.Object |
invoke(ObjectName name,
java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
Invokes an operation on an MBean. |
void |
setAttribute(ObjectName name,
Attribute attribute)
Sets a specific attribute in an MBean. |
AttributeList |
setAttributes(ObjectName name,
AttributeList attributes)
Sets a set of attributes in an MBean. |
void |
unregisterMBean(ObjectName name)
Unregisters an MBean from the MBean server. |
Methods inherited from interface com.sun.jdmk.NotificationRegistration |
addNotificationListener,
removeNotificationListener |
Method Detail |
public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException
name
- The object name of the MBean to be unregistered.MBeanRegistration
interface) method of the MBean
has thrown an exception.java.lang.IllegalArgumentException
: The object name in parameter is null or
the MBean you are when trying to de-register is the MBeanServerDelegate
MBean.public java.lang.Object getAttribute(ObjectName name, java.lang.String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException
name
- The object name of the MBean from which the attribute is to be retrieved.attribute
- A String specifying the name of the attribute to be
retrieved.java.lang.Exception
thrown when trying to invoke the setter.java.lang.IllegalArgumentException
: The object name in parameter is null or
the attribute in parameter is null.public AttributeList getAttributes(ObjectName name, java.lang.String[] attributes) throws InstanceNotFoundException, ReflectionException
name
- The object name of the MBean from which the attributes are
retrieved.attributes
- A list of the attributes to be retrieved.java.lang.IllegalArgumentException
: The object name in parameter is null or
attributes in parameter is null.public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
name
- The name of 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.java.lang.Exception
thrown when trying to invoke the setter.java.lang.IllegalArgumentException
: The object name in parameter is null or
the attribute in parameter is null.public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException
name
- The object name of 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.java.lang.IllegalArgumentException
: The object name in parameter is null or
attributes in parameter is null.public java.lang.Object invoke(ObjectName name, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException
name
- The object name of 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.java.lang.Exception
thrown while trying to invoke the method.public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException
name
- The object name of the MBeanMBeanInfo
instance which contains all attributes and operations
exposed by the MBean.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |