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 from javax.management.j2ee.Management Detail: |
public Object getAttribute(ObjectName name,
String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, RemoteException
Gets the value of a specific attribute of a named managed object. The managed object is identified by its object name. |
public AttributeList getAttributes(ObjectName name,
String[] attributes) throws InstanceNotFoundException, ReflectionException, RemoteException
Enables the values of several attributes of a named managed object. The managed object is identified by its object name. |
public String getDefaultDomain() throws RemoteException
Returns the default domain name of this MEJB. |
public ListenerRegistration getListenerRegistry() throws RemoteException
Returns the listener registry implementation for this MEJB. The listener registry implements the methods that enable clints to add and remove event notification listeners managed objects |
public Integer getMBeanCount() throws RemoteException
Returns the number of managed objects registered in the MEJB. |
public MBeanInfo getMBeanInfo(ObjectName name) throws IntrospectionException, InstanceNotFoundException, ReflectionException, RemoteException
This method discovers the attributes and operations that a managed object exposes for management. |
public Object invoke(ObjectName name,
String operationName,
Object[] params,
String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, RemoteException
Invokes an operation on a managed object |
public boolean isRegistered(ObjectName name) throws RemoteException
Checks whether a managed object, identified by its object name, is already registered with the MEJB. |
public Set queryNames(ObjectName name,
QueryExp query) throws RemoteException
Gets the names of managed objects controlled by the MEJB.
This method enables any of the following to be obtained:
The names of all managed objects, the names of a set of managed objects specified by pattern matching on the
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. |
public void setAttribute(ObjectName name,
Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, RemoteException
Sets the value of a specific attribute of a named managed object. The managed object is identified by its object name. |
public AttributeList setAttributes(ObjectName name,
AttributeList attributes) throws InstanceNotFoundException, ReflectionException, RemoteException
Sets the values of several attributes of a named managed object. The managed object is identified by its object name. |