|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 String[] |
stateTypes
The int state to state name mappings |
static int |
UNREGISTERED
|
Constructor Summary | |
StateManagement(J2EEManagedObject 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()
|
String |
getStateString()
|
void |
handleNotification(javax.management.Notification msg,
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. |
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 String[] stateTypes
Constructor Detail |
public StateManagement(J2EEManagedObject managedObject)
managedObject
-
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 String getStateString()
public void setState(int newState)
newState
- Integer indicating the new state according to
StateManageable
constantspublic void handleNotification(javax.management.Notification msg, Object handback)
handleNotification
in interface javax.management.NotificationListener
msg
- The notification msg, AttributeChangeNotification is what we
care abouthandback
- not usedpublic String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |