站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 management API Documentation 英文版文档

MEJB (JBoss/Management API) - JBoss 3.2.7 management API Documentation 英文版文档


org.jboss.management.mejb
Interface MEJB

All Superinterfaces:
javax.ejb.EJBObject, javax.management.j2ee.Management, Remote

public interface MEJB
extends javax.management.j2ee.Management

Remote interface for MEJB.


Method Summary
 void addNotificationListener(javax.management.ObjectName pBroadcaster, javax.management.ObjectName pListener, javax.management.NotificationFilter pFilter, Object pHandback)
           
 javax.management.ObjectInstance createMBean(String pClass, javax.management.ObjectName pName, Object[] pParameters, String[] pSignature)
           
 Object getAttribute(javax.management.ObjectName pName, String pAttribute)
          Gets the value of a specific attribute of a named managed object.
 javax.management.AttributeList getAttributes(javax.management.ObjectName pName, String[] pAttributes)
          Gets the values of the specified attributes of a named managed object.
 String getDefaultDomain()
           
 javax.management.j2ee.ListenerRegistration getListenerRegistry()
           
 Integer getMBeanCount()
           
 javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName pName)
          Returns the MBean info about the requested Managed Object
 Object invoke(javax.management.ObjectName pName, String pOperationName, Object[] pParams, String[] pSignature)
          Invokes an operation on the specified managed object
 boolean isRegistered(javax.management.ObjectName pName)
          Checks whether an managed object, identified by its object name, is already registered with the MEJB
 Set queryNames(javax.management.ObjectName pName, javax.management.QueryExp pQuery)
          Gets the names of managed object controlled by the MEJB.
 void removeNotificationListener(javax.management.ObjectName pBroadcaster, javax.management.ObjectName pListener)
           
 void setAttribute(javax.management.ObjectName pName, javax.management.Attribute pAttribute)
          Sets the value of a specific attribute of a named managed object.
 javax.management.AttributeList setAttributes(javax.management.ObjectName pName, javax.management.AttributeList pAttributes)
          Sets the values of the specified attributes of a named managed object.
 void unregisterMBean(javax.management.ObjectName pName)
           
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getAttribute

public Object getAttribute(javax.management.ObjectName pName,
                           String pAttribute)
                    throws javax.management.MBeanException,
                           javax.management.AttributeNotFoundException,
                           javax.management.InstanceNotFoundException,
                           javax.management.ReflectionException,
                           RemoteException
Description copied from interface: javax.management.j2ee.Management
Gets the value of a specific attribute of a named managed object. The managed object is identified by its object name

Specified by:
getAttribute in interface javax.management.j2ee.Management
Parameters:
pName - Object Name of the managed object from which the attribute is to be retrieved
pAttribute - Name of the Attribute to be retrieved which is case sensitive
Returns:
Value of the specified attribute
Throws:
javax.management.InstanceNotFoundException - Specified managed object is not registered in the MEJB
javax.management.ReflectionException - Wraps a exception thrown when trying to the setter (??)
javax.management.MBeanException
javax.management.AttributeNotFoundException
RemoteException

getAttributes

public javax.management.AttributeList getAttributes(javax.management.ObjectName pName,
                                                    String[] pAttributes)
                                             throws javax.management.InstanceNotFoundException,
                                                    javax.management.ReflectionException,
                                                    RemoteException
Description copied from interface: javax.management.j2ee.Management
Gets the values of the specified attributes of a named managed object. The managed object is identified by its object name

Specified by:
getAttributes in interface javax.management.j2ee.Management
Parameters:
pName - Object Name of the managed object from which the attribute is to be retrieved
pAttributes - Names of the Attribute to be retrieved which is case sensitive
Returns:
List of retrieved attributes
Throws:
javax.management.InstanceNotFoundException - Specified managed object is not registered in the MEJB
javax.management.ReflectionException - Wraps a exception thrown when trying to the setter (??)
RemoteException

getDefaultDomain

public String getDefaultDomain()
                        throws RemoteException
Specified by:
getDefaultDomain in interface javax.management.j2ee.Management
Returns:
Domain Name of this MEJB
Throws:
RemoteException

getMBeanCount

public Integer getMBeanCount()
                      throws RemoteException
Specified by:
getMBeanCount in interface javax.management.j2ee.Management
Throws:
RemoteException

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName pName)
                                        throws javax.management.IntrospectionException,
                                               javax.management.InstanceNotFoundException,
                                               javax.management.ReflectionException,
                                               RemoteException
Description copied from interface: javax.management.j2ee.Management
Returns the MBean info about the requested Managed Object

Specified by:
getMBeanInfo in interface javax.management.j2ee.Management
Parameters:
pName - Object Name of the Managed Object
Returns:
MBeanInfo instance of the requested Managed Object
Throws:
javax.management.IntrospectionException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
RemoteException

getListenerRegistry

public javax.management.j2ee.ListenerRegistration getListenerRegistry()
                                                               throws RemoteException
Specified by:
getListenerRegistry in interface javax.management.j2ee.Management
Throws:
RemoteException

invoke

public Object invoke(javax.management.ObjectName pName,
                     String pOperationName,
                     Object[] pParams,
                     String[] pSignature)
              throws javax.management.InstanceNotFoundException,
                     javax.management.MBeanException,
                     javax.management.ReflectionException,
                     RemoteException
Description copied from interface: javax.management.j2ee.Management
Invokes an operation on the specified managed object

Specified by:
invoke in interface javax.management.j2ee.Management
Parameters:
pName - Object Name of the managed object on which the method is to be invoked
pOperationName - Name of the Operation to be invoked
pParams - List of parameters to be set as parameter when the operation is invoked
pSignature - List of types of the parameter list 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
Returns:
The object returned by the operation, which represents the result of invoking the operation on the managed object specified.
Throws:
javax.management.InstanceNotFoundException - Managed Object could not be found in the MEJB by specifed object name
javax.management.ReflectionException - Wraps an Exception thrown while trying to invoke the method
javax.management.MBeanException
RemoteException

isRegistered

public boolean isRegistered(javax.management.ObjectName pName)
                     throws RemoteException
Description copied from interface: javax.management.j2ee.Management
Checks whether an managed object, identified by its object name, is already registered with the MEJB

Specified by:
isRegistered in interface javax.management.j2ee.Management
Parameters:
pName - Object Name of the managed object to be checked
Returns:
True if the managed object is already registerred is the MEJB
Throws:
RemoteException

queryNames

public Set queryNames(javax.management.ObjectName pName,
                      javax.management.QueryExp pQuery)
               throws RemoteException
Description copied from interface: javax.management.j2ee.Management
Gets the names of managed object controlled by the MEJB. This method enables any of the following to be obtained: the names of all managed objects, the name of a set of managed objects specified by pattern matching on the ObjectName, a specific managed object (equivalent to testing whether an amanged 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 ObjectNames for the managed objects selected.

Specified by:
queryNames in interface javax.management.j2ee.Management
Parameters:
pName - 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.
pQuery - Query Expression instance for further select the desired objecs
Returns:
Set of ObjectNames for the managed objects selected. If no managed object satisfied the query, an emtpy list is returned
Throws:
RemoteException

setAttribute

public void setAttribute(javax.management.ObjectName pName,
                         javax.management.Attribute pAttribute)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InstanceNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException,
                         RemoteException
Description copied from interface: javax.management.j2ee.Management
Sets the value of a specific attribute of a named managed object. The managed object is identified by its object name

Specified by:
setAttribute in interface javax.management.j2ee.Management
Parameters:
pName - Object Name of the managed object from which the attribute is to be retrieved
pAttribute - Identification of the attribute to be set and the value it is to be set to
Returns:
Attribute with the value it was set to
Throws:
javax.management.InvalidAttributeValueException - Given value for the attribute is not valid
javax.management.ReflectionException - Wraps a exception thrown when trying to the setter
javax.management.InstanceNotFoundException - Managed Object could not be found in the MEJB by specifed object name
javax.management.AttributeNotFoundException - Specified attribute is not accessible in the managed object
javax.management.MBeanException
RemoteException

setAttributes

public javax.management.AttributeList setAttributes(javax.management.ObjectName pName,
                                                    javax.management.AttributeList pAttributes)
                                             throws javax.management.InstanceNotFoundException,
                                                    javax.management.ReflectionException,
                                                    RemoteException
Description copied from interface: javax.management.j2ee.Management
Sets the values of the specified attributes of a named managed object. The managed object is identified by its object name

Specified by:
setAttributes in interface javax.management.j2ee.Management
Parameters:
pName - Object Name of the managed object from which the attribute is to be retrieved
pAttributes - Identification of the attributes to be set and the values they are to be set to
Returns:
Attributes with the values they were set to
Throws:
javax.management.ReflectionException - Wraps a exception thrown when trying to the setter
javax.management.InstanceNotFoundException - Managed Object could not be found in the MEJB by specifed object name
RemoteException

createMBean

public javax.management.ObjectInstance createMBean(String pClass,
                                                   javax.management.ObjectName pName,
                                                   Object[] pParameters,
                                                   String[] pSignature)
                                            throws javax.management.InstanceAlreadyExistsException,
                                                   javax.management.MBeanException,
                                                   javax.management.MBeanRegistrationException,
                                                   javax.management.NotCompliantMBeanException,
                                                   javax.management.ReflectionException,
                                                   RemoteException
Throws:
javax.management.InstanceAlreadyExistsException
javax.management.MBeanException
javax.management.MBeanRegistrationException
javax.management.NotCompliantMBeanException
javax.management.ReflectionException
RemoteException

unregisterMBean

public void unregisterMBean(javax.management.ObjectName pName)
                     throws javax.management.InstanceNotFoundException,
                            javax.management.MBeanRegistrationException,
                            RemoteException
Throws:
javax.management.InstanceNotFoundException
javax.management.MBeanRegistrationException
RemoteException

addNotificationListener

public void addNotificationListener(javax.management.ObjectName pBroadcaster,
                                    javax.management.ObjectName pListener,
                                    javax.management.NotificationFilter pFilter,
                                    Object pHandback)
                             throws javax.management.InstanceNotFoundException,
                                    RemoteException
Throws:
javax.management.InstanceNotFoundException
RemoteException

removeNotificationListener

public void removeNotificationListener(javax.management.ObjectName pBroadcaster,
                                       javax.management.ObjectName pListener)
                                throws javax.management.InstanceNotFoundException,
                                       javax.management.ListenerNotFoundException,
                                       RemoteException
Throws:
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
RemoteException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.