public interface IIOPMBeanServer extends Remote
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(ObjectName name,
String attribute)
Gets the value of a specific attribute of a named managed object.
|
AttributeList |
getAttributes(ObjectName name,
String[] attributes)
Enables the values of several attributes of a named managed object.
|
String |
getDefaultDomain()
Returns the domain name of this MEJB.
|
Integer |
getMBeanCount()
Returns the number of managed objects registered in the MEJB.
|
MBeanInfo |
getMBeanInfo(ObjectName name)
This method discovers the attributes and operations that an managed object exposes
for management.
|
Object |
invoke(ObjectName name,
String operationName,
Object[] params,
String[] signature)
Invokes an operation on an managed object.
|
boolean |
isRegistered(ObjectName name)
Checks whether an managed object, identified by its object name, is already registered
with the MEJB.
|
Set |
queryNames(ObjectName name,
QueryExp query) |
void |
setAttribute(ObjectName name,
Attribute attribute)
Sets the value of a specific attribute of a named managed object.
|
AttributeList |
setAttributes(ObjectName name,
AttributeList attributes)
Sets the values of several attributes of a named managed object.
|
void |
unregisterMBean(ObjectName name)
De-registers an MBean from the MBean server.
|
Set queryNames(ObjectName name, QueryExp query) throws RemoteException
RemoteExceptionboolean isRegistered(ObjectName name) throws RemoteException
name - The object name of the managed object to be checked.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null.RemoteExceptionInteger getMBeanCount() throws RemoteException
RemoteExceptionMBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException, RemoteException
name - The name of the managed object to analyzeMBeanInfo allowing the retrieval of all attributes and operations
of this managed object.IntrospectionException - An exception occurs during introspection.InstanceNotFoundException - The managed object specified is not found.ReflectionExceptionRemoteExceptionObject getAttribute(ObjectName name, String attribute) throws AttributeNotFoundException, MBeanException, InstanceNotFoundException, ReflectionException, RemoteException
name - The object name of the managed object from which the attribute is to be retrieved.attribute - A String specifying the name of the attribute to be
retrieved.AttributeNotFoundException - The attribute specified is not accessible in the managed object.MBeanException - Wraps an exception thrown by the managed object's getter.InstanceNotFoundException - The managed object specified is not registered in the MEJB.ReflectionException - Wraps a java.lang.Exception thrown when trying to invoke the setter.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or
the attribute in parameter is null.RemoteExceptionAttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException, RemoteException
name - The object name of the managed object from which the attributes are
retrieved.attributes - A list of the attributes to be retrieved.InstanceNotFoundException - The managed object specified is not registered in the MEJB.ReflectionException - An exception occurred when trying to invoke the getAttributes method of a Dynamic managed object.RuntimeOperationsException - Wrap a java.lang.IllegalArgumentException: The object name in parameter is null or
attributes in parameter is null.RemoteExceptionvoid setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, RemoteException
name - The name of the managed object 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.InstanceNotFoundException - The managed object specified is not registered in the MEJB.AttributeNotFoundException - The attribute specified is not accessible in the managed object.InvalidAttributeValueException - The value specified for the attribute is not valid.MBeanException - Wraps an exception thrown by the managed object's setter.ReflectionException - Wraps a java.lang.Exception thrown when trying to invoke the setter.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or
the attribute in parameter is null.RemoteExceptionAttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException, RemoteException
name - The object name of the managed object 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.InstanceNotFoundException - The managed object specified is not registered in the MEJB.ReflectionException - An exception occurred when trying to invoke the getAttributes method of a Dynamic managed object.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or
attributes in parameter is null.RemoteExceptionObject invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, RemoteException
name - The object name of the managed object 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 managed object on which the operation was invoked.InstanceNotFoundException - The managed object specified is not registered in the MEJB.MBeanException - Wraps an exception thrown by the managed object's invoked method.ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the method.RemoteExceptionString getDefaultDomain() throws RemoteException
RemoteExceptionvoid unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException, RemoteException
name - The object name of the MBean to be de-registered.InstanceNotFoundException - The MBean specified is not registered in the MBean server.MBeanRegistrationException - The preDeregister ((MBeanRegistration interface) method of the MBean
has thrown an exception.RuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in
parameter is null or the MBean you are when trying to de-register is the MBeanServerDelegate MBean.RemoteExceptionCopyright © 2013. All Rights Reserved.