|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.management.mejb.ManagementBean
Management Session Bean to enable the client to manage the server its is deployed on. This is the implementation of the JSR-77 specification MEJB.
Constructor Summary | |
ManagementBean()
|
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)
|
void |
ejbActivate()
The activate method is called when the instance is activated from its "passive" state. |
void |
ejbCreate()
Create the Session Bean which takes the first available MBeanServer as target server |
void |
ejbPassivate()
The passivate method is called before the instance enters the "passive" state. |
void |
ejbRemove()
A container invokes this method before it ends the life of the session object. |
Object |
getAttribute(javax.management.ObjectName pName,
String pAttribute)
|
javax.management.AttributeList |
getAttributes(javax.management.ObjectName pName,
String[] pAttributes)
|
String |
getDefaultDomain()
|
javax.management.j2ee.ListenerRegistration |
getListenerRegistry()
|
Integer |
getMBeanCount()
|
javax.management.MBeanInfo |
getMBeanInfo(javax.management.ObjectName pName)
|
Object |
invoke(javax.management.ObjectName pName,
String pOperationName,
Object[] pParams,
String[] pSignature)
|
boolean |
isRegistered(javax.management.ObjectName pName)
|
Set |
queryNames(javax.management.ObjectName pName,
javax.management.QueryExp pQuery)
|
void |
removeNotificationListener(javax.management.ObjectName pBroadcaster,
javax.management.ObjectName pListener)
|
void |
setAttribute(javax.management.ObjectName pName,
javax.management.Attribute pAttribute)
|
javax.management.AttributeList |
setAttributes(javax.management.ObjectName pName,
javax.management.AttributeList pAttributes)
|
void |
setSessionContext(javax.ejb.SessionContext aContext)
Set the associated session context. |
String |
toString()
Describes the instance and its content for debugging purpose |
void |
unregisterMBean(javax.management.ObjectName pName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ManagementBean()
Method Detail |
public Object getAttribute(javax.management.ObjectName pName, String pAttribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.ReflectionException, RemoteException
RemoteException
- Necessary for a EJB
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
public javax.management.AttributeList getAttributes(javax.management.ObjectName pName, String[] pAttributes) throws javax.management.InstanceNotFoundException, javax.management.ReflectionException, RemoteException
RemoteException
- Necessary for a EJB
javax.management.InstanceNotFoundException
javax.management.ReflectionException
public String getDefaultDomain() throws RemoteException
RemoteException
- Necessary for a EJBpublic Integer getMBeanCount() throws RemoteException
RemoteException
- Necessary for a EJBpublic javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName pName) throws javax.management.IntrospectionException, javax.management.InstanceNotFoundException, javax.management.ReflectionException, RemoteException
RemoteException
- Necessary for a EJB
javax.management.IntrospectionException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
public javax.management.j2ee.ListenerRegistration getListenerRegistry() throws RemoteException
RemoteException
- Necessary for a EJBpublic Object invoke(javax.management.ObjectName pName, String pOperationName, Object[] pParams, String[] pSignature) throws javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException, RemoteException
RemoteException
- Necessary for a EJB
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public boolean isRegistered(javax.management.ObjectName pName) throws RemoteException
RemoteException
- Necessary for a EJBpublic Set queryNames(javax.management.ObjectName pName, javax.management.QueryExp pQuery) throws RemoteException
RemoteException
- Necessary for a EJBpublic 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
RemoteException
- Necessary for a EJB
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.AttributeList setAttributes(javax.management.ObjectName pName, javax.management.AttributeList pAttributes) throws javax.management.InstanceNotFoundException, javax.management.ReflectionException, RemoteException
RemoteException
- Necessary for a EJB
javax.management.InstanceNotFoundException
javax.management.ReflectionException
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
RemoteException
- Necessary for a EJB
javax.management.InstanceAlreadyExistsException
javax.management.MBeanException
javax.management.MBeanRegistrationException
javax.management.NotCompliantMBeanException
javax.management.ReflectionException
public void unregisterMBean(javax.management.ObjectName pName) throws javax.management.InstanceNotFoundException, javax.management.MBeanRegistrationException, RemoteException
RemoteException
- Necessary for a EJB
javax.management.InstanceNotFoundException
javax.management.MBeanRegistrationException
public void addNotificationListener(javax.management.ObjectName pBroadcaster, javax.management.ObjectName pListener, javax.management.NotificationFilter pFilter, Object pHandback) throws javax.management.InstanceNotFoundException, RemoteException
RemoteException
- Necessary for a EJB
javax.management.InstanceNotFoundException
public void removeNotificationListener(javax.management.ObjectName pBroadcaster, javax.management.ObjectName pListener) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException, RemoteException
RemoteException
- Necessary for a EJB
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
public void ejbCreate() throws javax.ejb.CreateException
javax.ejb.CreateException
public String toString()
public void setSessionContext(javax.ejb.SessionContext aContext) throws javax.ejb.EJBException
This method is called with no transaction context.
setSessionContext
in interface javax.ejb.SessionBean
aContext
- A SessionContext interface for the instance. The instance
should store the reference to the context in an instance variable.
javax.ejb.EJBException
- Should something go wrong while seting the context,
an EJBException will be thrown.public void ejbActivate() throws javax.ejb.EJBException
This method is called with no transaction context.
ejbActivate
in interface javax.ejb.SessionBean
javax.ejb.EJBException
- Thrown by the method to indicate a failure caused
by a system-level errorpublic void ejbPassivate() throws javax.ejb.EJBException
After the passivate method completes, the instance must be in a state that allows the container to use the Java Serialization protocol to externalize and store away the instance's state.
This method is called with no transaction context.
ejbPassivate
in interface javax.ejb.SessionBean
javax.ejb.EJBException
- Thrown by the method to indicate a failure caused
by a system-level errorpublic void ejbRemove() throws javax.ejb.EJBException
This method is called with no transaction context.
ejbRemove
in interface javax.ejb.SessionBean
javax.ejb.EJBException
- Thrown by the method to indicate a failure caused
by a system-level error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |