|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.management.j2ee.StateManagement
Root class of the JBoss JSR-77 implementation of StateManagement
Field Summary | |
static int |
CREATED
|
static int |
DESTROYED
|
static int |
REGISTERED
|
static java.lang.String[] |
stateTypes
The int state to state name mappings |
static int |
UNREGISTERED
|
Constructor Summary | |
StateManagement(J2EEManagedObject (src) managedObject)
|
Method Summary | |
static int |
convertJBossState(int theState)
Converts a state from JBoss ServiceMBean to the JSR-77 state |
static int |
convertJSR77State(int theState)
Converts a JSR-77 state to the JBoss ServiceMBean state |
long |
getStartTime()
|
int |
getState()
|
java.lang.String |
getStateString()
|
void |
handleNotification(Notification (src) msg,
java.lang.Object handback)
A notification from the underlying JBoss service. |
void |
setStartTime(long pTime)
|
void |
setState(int newState)
Sets a new state and if it changed the appropriate state change event is sent. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CREATED
public static final int DESTROYED
public static final int REGISTERED
public static final int UNREGISTERED
public static final java.lang.String[] stateTypes
Constructor Detail |
public StateManagement(J2EEManagedObject (src) managedObject)
managedObject
-
java.security.InvalidParameterException
- If the given Name is nullMethod Detail |
public static int convertJBossState(int theState)
theState
- the JBoss ServiceMBean state.
public static int convertJSR77State(int theState)
theState
- the JSR-77 state.
public long getStartTime()
public void setStartTime(long pTime)
public int getState()
public java.lang.String getStateString()
public void setState(int newState)
newState
- Integer indicating the new state according to
StateManageable
(src)
constantspublic void handleNotification(Notification (src) msg, java.lang.Object handback)
handleNotification
in interface NotificationListener (src)
msg
- The notification msg, AttributeChangeNotification is what we
care abouthandback
- not usedpublic java.lang.String toString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |