|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Management
The Management interface provides the APIs to navigate and manipulate managed objects. The J2EE Management EJB component (MEJB) must implement this as its remote interface.
Method Summary | |
---|---|
java.lang.Object |
getAttribute(javax.management.ObjectName name,
java.lang.String attribute)
Gets the value of a specific attribute of a named managed object. |
javax.management.AttributeList |
getAttributes(javax.management.ObjectName name,
java.lang.String[] attributes)
Enables the values of several attributes of a named managed object. |
java.lang.String |
getDefaultDomain()
Returns the default domain name of this MEJB. |
ListenerRegistration |
getListenerRegistry()
Returns the listener registry implementation for this MEJB. |
java.lang.Integer |
getMBeanCount()
Returns the number of managed objects registered in the MEJB. |
javax.management.MBeanInfo |
getMBeanInfo(javax.management.ObjectName name)
This method discovers the attributes and operations that a managed object exposes for management. |
java.lang.Object |
invoke(javax.management.ObjectName name,
java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
Invokes an operation on a managed object. |
boolean |
isRegistered(javax.management.ObjectName name)
Checks whether a managed object, identified by its object name, is already registered with the MEJB. |
java.util.Set |
queryNames(javax.management.ObjectName name,
javax.management.QueryExp query)
Gets the names of managed objects controlled by the MEJB. |
void |
setAttribute(javax.management.ObjectName name,
javax.management.Attribute attribute)
Sets the value of a specific attribute of a named managed object. |
javax.management.AttributeList |
setAttributes(javax.management.ObjectName name,
javax.management.AttributeList attributes)
Sets the values of several attributes of a named managed object. |
Methods inherited from interface javax.ejb.EJBObject |
---|
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
---|
java.util.Set queryNames(javax.management.ObjectName name, javax.management.QueryExp query) throws java.rmi.RemoteException
ObjectName
, a specific managed object name (equivalent to
testing whether a managed object is registered). When the object name is
null or no domain and key properties are specified, all objects are selected.
It returns the set of J2EEObjectNames for the managed objects selected.
name
- The object name pattern identifying the managed objects to be retrieved. If
null or no domain and key properties are specified, all the managed objects registered will be retrieved.
RemoteException
- A communication exception occurred during the execution of a remote method callboolean isRegistered(javax.management.ObjectName name) throws java.rmi.RemoteException
name
- The object name of the managed object to be checked.
RemoteException
- A communication exception occurred during the execution of a remote method calljava.lang.Integer getMBeanCount() throws java.rmi.RemoteException
RemoteException
- A communication exception occurred during the execution of a remote method calljavax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName name) throws javax.management.IntrospectionException, javax.management.InstanceNotFoundException, javax.management.ReflectionException, java.rmi.RemoteException
name
- The name of the managed object to analyze
MBeanInfo
allowing the retrieval of all attributes and operations
of this managed object.
javax.management.IntrospectionException
- An exception occurs during introspection.
javax.management.InstanceNotFoundException
- The managed object specified is not found.
javax.management.ReflectionException
- An exception occurred when trying to perform reflection on a managed object
RemoteException
- A communication exception occurred during the execution of a remote method calljava.lang.Object getAttribute(javax.management.ObjectName name, java.lang.String attribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.ReflectionException, java.rmi.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.
javax.management.AttributeNotFoundException
- The attribute specified is not accessible in the managed object.
javax.management.MBeanException
- Wraps an exception thrown by the managed object's getter.
javax.management.InstanceNotFoundException
- The managed object specified is not registered in the MEJB.
javax.management.ReflectionException
- An exception occurred when trying to invoke the getAttribute method of a Dynamic MBean
RemoteException
- A communication exception occurred during the execution of a remote method calljavax.management.AttributeList getAttributes(javax.management.ObjectName name, java.lang.String[] attributes) throws javax.management.InstanceNotFoundException, javax.management.ReflectionException, java.rmi.RemoteException
name
- The object name of the managed object from which the attributes are
retrieved.attributes
- A list of the attributes to be retrieved.
javax.management.InstanceNotFoundException
- The managed object specified is not registered in the MEJB.
javax.management.ReflectionException
- An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
RemoteException
- A communication exception occurred during the execution of a remote method callvoid setAttribute(javax.management.ObjectName name, javax.management.Attribute attribute) throws javax.management.InstanceNotFoundException, javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException, java.rmi.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.
javax.management.InstanceNotFoundException
- The managed object specified is not registered in the MEJB.
javax.management.AttributeNotFoundException
- The attribute specified is not accessible in the managed object.
javax.management.InvalidAttributeValueException
- The value specified for the attribute is not valid.
javax.management.MBeanException
- Wraps an exception thrown by the managed object's setter.
javax.management.ReflectionException
- An exception occurred when trying to invoke the setAttribute method of a Dynamic MBean.
RemoteException
- A communication exception occurred during the execution of a remote method calljavax.management.AttributeList setAttributes(javax.management.ObjectName name, javax.management.AttributeList attributes) throws javax.management.InstanceNotFoundException, javax.management.ReflectionException, java.rmi.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.
javax.management.InstanceNotFoundException
- The managed object specified is not registered in the MEJB.
javax.management.ReflectionException
- An exception occurred when trying to invoke the setAttributes method of a Dynamic MBean.
RemoteException
- A communication exception occurred during the execution of a remote method calljava.lang.Object invoke(javax.management.ObjectName name, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException, java.rmi.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.
javax.management.InstanceNotFoundException
- The managed object specified is not registered in the MEJB.
javax.management.MBeanException
- Wraps an exception thrown by the managed object's invoked method.
javax.management.ReflectionException
- Wraps a java.lang.Exception
thrown while trying to invoke the method.
RemoteException
- A communication exception occurred during the execution of a remote method calljava.lang.String getDefaultDomain() throws java.rmi.RemoteException
RemoteException
- A communication exception occurred during the execution of a remote method callListenerRegistration getListenerRegistry() throws java.rmi.RemoteException
javax.management.j2ee.ListenerRegistration
RemoteException
- A communication exception occurred during the execution of a remote method call
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34