|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.management.j2ee.J2EEManagedObject
org.jboss.management.j2ee.MBean
public class MBean
Root class of the JBoss implementation of a custom MBean managed object.
| Field Summary |
|---|
| Fields inherited from class org.jboss.management.j2ee.J2EEManagedObject |
|---|
NAME, server, TYPE |
| Fields inherited from interface org.jboss.management.j2ee.StateManageable |
|---|
CREATED, DESTROYED, FAILED, REGISTERED, RUNNING, STARTING, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
|---|---|
MBean(String pName,
javax.management.ObjectName pServiceModule,
javax.management.ObjectName pTarget)
|
|
| Method Summary | |
|---|---|
static javax.management.ObjectName |
create(javax.management.MBeanServer pServer,
String pServiceModule,
javax.management.ObjectName pTarget)
Create a |
static void |
destroy(javax.management.MBeanServer pServer,
String pName)
|
String |
getEventType(int pIndex)
Returns the given Type of Events it emits according to its index in the list |
String[] |
getEventTypes()
|
protected Hashtable |
getParentKeys(javax.management.ObjectName pParent)
This method can be overwritten by any subclass which must return <parent-j2eeType> indicating its parents. |
long |
getStartTime()
|
int |
getState()
|
String |
getStateString()
|
boolean |
isstateManageable()
|
boolean |
isstateMonitored()
Does the MBean monitor state changes of the JBoss MBean service. |
void |
mejbStart()
Starts this SMO which can only be invoked when the SMO is in the State stopped. |
void |
mejbStartRecursive()
Starts this SMO like start(). |
void |
mejbStop()
Stops this SMO which can only be into the running or
starting. |
void |
postCreation()
|
void |
preDestruction()
|
String |
toString()
|
| Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject |
|---|
addChild, getLog, getNextNotificationSequenceNumber, getobjectName, getObjectName, getparent, getServer, getType, getType, iseventProvider, isstatisticsProvider, newObjectName, postDeregister, postRegister, preDeregister, preRegister, removeChild, removeObject, removeObject, sendNotification, setparent |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.management.j2ee.J2EEManagedObjectMBean |
|---|
addChild, getobjectName, getparent, iseventProvider, isstatisticsProvider, removeChild, setparent |
| Constructor Detail |
|---|
public MBean(String pName,
javax.management.ObjectName pServiceModule,
javax.management.ObjectName pTarget)
throws javax.management.MalformedObjectNameException,
InvalidParentException
pName - Name of the MBean
javax.management.MalformedObjectNameException
InvalidParentException| Method Detail |
|---|
public static javax.management.ObjectName create(javax.management.MBeanServer pServer,
String pServiceModule,
javax.management.ObjectName pTarget)
pServer - pServiceModule - pTarget -
public static void destroy(javax.management.MBeanServer pServer,
String pName)
public boolean isstateMonitored()
isstateMonitored in interface MBeanMBeanpublic boolean isstateManageable()
isstateManageable in interface J2EEManagedObjectMBeanisstateManageable in class J2EEManagedObjectpublic void postCreation()
postCreation in class J2EEManagedObjectpublic void preDestruction()
preDestruction in class J2EEManagedObjectpublic String[] getEventTypes()
getEventTypes in interface EventProviderpublic String getEventType(int pIndex)
EventProvider
getEventType in interface EventProviderpIndex - Index of the requested Event Type
public long getStartTime()
getStartTime in interface StateManageablepublic int getState()
getState in interface StateManageablestarting, running, stopping,
stopped or failedpublic String getStateString()
getStateString in interface StateManageableSTARTING, RUNNING, STOPPING,
STOPPED or FAILEDpublic void mejbStart()
StateManageablestopped. The SMO will go into the State started and after it completes successfully the SMO will go to the State
running.
The children of the SMO will not be started by this method call.
Attention: According to the specification this is named start()
but in order to avoid name conflicts this is renamed to
mejbStart(). The MEJB interface will make the conversion
from start to mejbStart to make it transparent
to the client.
mejbStart in interface StateManageablepublic void mejbStartRecursive()
StateManageablestart(). After the SMO is started all
its children in the State of stopped theirs startRecursive()
are started too.
Attention: According to the specification this is named startRecursive()
but in order to avoid name conflicts this is renamed to
mejbStartRecursive(). The MEJB interface will make the conversion
from startRecursive to mejbStartRecursive to make it transparent
to the client.
mejbStartRecursive in interface StateManageablepublic void mejbStop()
StateManageablerunning or
starting. The State will change to stoping and after it completes successfully it will go into the
State stopped. Afterwards all its children stop()
method is called.
Attention: According to the specification this is named stop()
but in order to avoid name conflicts this is renamed to
mejbStop(). The MEJB interface will make the conversion
from stop to mejbStop to make it transparent
to the client.
mejbStop in interface StateManageablepublic String toString()
toString in class J2EEManagedObjectprotected Hashtable getParentKeys(javax.management.ObjectName pParent)
J2EEManagedObject
getParentKeys in class J2EEManagedObjectpParent - The direct parent of this class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||