|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(ObjectName (src) pBroadcaster,
ObjectName (src) pListener,
NotificationFilter (src) pFilter,
java.lang.Object pHandback)
|
ObjectInstance (src) |
createMBean(java.lang.String pClass,
ObjectName (src) pName,
java.lang.Object[] pParameters,
java.lang.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. |
java.lang.Object |
getAttribute(ObjectName (src) pName,
java.lang.String pAttribute)
|
AttributeList (src) |
getAttributes(ObjectName (src) pName,
java.lang.String[] pAttributes)
|
java.lang.String |
getDefaultDomain()
|
ListenerRegistration (src) |
getListenerRegistry()
|
java.lang.Integer |
getMBeanCount()
|
MBeanInfo (src) |
getMBeanInfo(ObjectName (src) pName)
|
java.lang.Object |
invoke(ObjectName (src) pName,
java.lang.String pOperationName,
java.lang.Object[] pParams,
java.lang.String[] pSignature)
|
boolean |
isRegistered(ObjectName (src) pName)
|
java.util.Set |
queryNames(ObjectName (src) pName,
QueryExp (src) pQuery)
|
void |
removeNotificationListener(ObjectName (src) pBroadcaster,
ObjectName (src) pListener)
|
void |
setAttribute(ObjectName (src) pName,
Attribute (src) pAttribute)
|
AttributeList (src) |
setAttributes(ObjectName (src) pName,
AttributeList (src) pAttributes)
|
void |
setSessionContext(SessionContext (src) aContext)
Set the associated session context. |
java.lang.String |
toString()
Describes the instance and its content for debugging purpose |
void |
unregisterMBean(ObjectName (src) 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 java.lang.Object getAttribute(ObjectName (src) pName, java.lang.String pAttribute) throws MBeanException (src) , AttributeNotFoundException (src) , InstanceNotFoundException (src) , ReflectionException (src) , java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJB
MBeanException (src)
AttributeNotFoundException (src)
InstanceNotFoundException (src)
ReflectionException (src)
public AttributeList (src) getAttributes(ObjectName (src) pName, java.lang.String[] pAttributes) throws InstanceNotFoundException (src) , ReflectionException (src) , java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJB
InstanceNotFoundException (src)
ReflectionException (src)
public java.lang.String getDefaultDomain() throws java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJBpublic java.lang.Integer getMBeanCount() throws java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJBpublic MBeanInfo (src) getMBeanInfo(ObjectName (src) pName) throws IntrospectionException (src) , InstanceNotFoundException (src) , ReflectionException (src) , java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJB
IntrospectionException (src)
InstanceNotFoundException (src)
ReflectionException (src)
public ListenerRegistration (src) getListenerRegistry() throws java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJBpublic java.lang.Object invoke(ObjectName (src) pName, java.lang.String pOperationName, java.lang.Object[] pParams, java.lang.String[] pSignature) throws InstanceNotFoundException (src) , MBeanException (src) , ReflectionException (src) , java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJB
InstanceNotFoundException (src)
MBeanException (src)
ReflectionException (src)
public boolean isRegistered(ObjectName (src) pName) throws java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJBpublic java.util.Set queryNames(ObjectName (src) pName, QueryExp (src) pQuery) throws java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJBpublic void setAttribute(ObjectName (src) pName, Attribute (src) pAttribute) throws AttributeNotFoundException (src) , InstanceNotFoundException (src) , InvalidAttributeValueException (src) , MBeanException (src) , ReflectionException (src) , java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJB
AttributeNotFoundException (src)
InstanceNotFoundException (src)
InvalidAttributeValueException (src)
MBeanException (src)
ReflectionException (src)
public AttributeList (src) setAttributes(ObjectName (src) pName, AttributeList (src) pAttributes) throws InstanceNotFoundException (src) , ReflectionException (src) , java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJB
InstanceNotFoundException (src)
ReflectionException (src)
public ObjectInstance (src) createMBean(java.lang.String pClass, ObjectName (src) pName, java.lang.Object[] pParameters, java.lang.String[] pSignature) throws InstanceAlreadyExistsException (src) , MBeanException (src) , MBeanRegistrationException (src) , NotCompliantMBeanException (src) , ReflectionException (src) , java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJB
InstanceAlreadyExistsException (src)
MBeanException (src)
MBeanRegistrationException (src)
NotCompliantMBeanException (src)
ReflectionException (src)
public void unregisterMBean(ObjectName (src) pName) throws InstanceNotFoundException (src) , MBeanRegistrationException (src) , java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJB
InstanceNotFoundException (src)
MBeanRegistrationException (src)
public void addNotificationListener(ObjectName (src) pBroadcaster, ObjectName (src) pListener, NotificationFilter (src) pFilter, java.lang.Object pHandback) throws InstanceNotFoundException (src) , java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJB
InstanceNotFoundException (src)
public void removeNotificationListener(ObjectName (src) pBroadcaster, ObjectName (src) pListener) throws InstanceNotFoundException (src) , ListenerNotFoundException (src) , java.rmi.RemoteException
java.rmi.RemoteException
- Necessary for a EJB
InstanceNotFoundException (src)
ListenerNotFoundException (src)
public void ejbCreate() throws CreateException (src)
CreateException (src)
public java.lang.String toString()
public void setSessionContext(SessionContext (src) aContext) throws EJBException (src)
This method is called with no transaction context.
setSessionContext
in interface SessionBean (src)
aContext
- A SessionContext interface for the instance. The instance
should store the reference to the context in an instance variable.
EJBException (src)
- Should something go wrong while seting the context,
an EJBException will be thrown.public void ejbActivate() throws EJBException (src)
This method is called with no transaction context.
ejbActivate
in interface SessionBean (src)
EJBException (src)
- Thrown by the method to indicate a failure caused
by a system-level errorpublic void ejbPassivate() throws EJBException (src)
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 SessionBean (src)
EJBException (src)
- Thrown by the method to indicate a failure caused
by a system-level errorpublic void ejbRemove() throws EJBException (src)
This method is called with no transaction context.
ejbRemove
in interface SessionBean (src)
EJBException (src)
- Thrown by the method to indicate a failure caused
by a system-level error
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |