-
1. Re: Attribute State and StateString
dimitris Nov 2, 2004 5:34 AM (in response to diripu)StateString is just a string-fied representation of the State attribute, just to display something meaningful.
I don't think the jboss state is the same as jsr77 defined state. -
2. Re: Attribute State and StateString
diripu Nov 2, 2004 5:41 AM (in response to diripu)
Where i would get the explanation and the corresponding number ? -
3. Re: Attribute State and StateString
dimitris Nov 2, 2004 5:52 AM (in response to diripu)Just look inside the source:
public interface ServiceMBean extends Service { // Constants ----------------------------------------------------- /** The JMX notification event type for a service create state */ public static final String CREATE_EVENT = " org.jboss.system.ServiceMBean.create"; /** The JMX notification event type for a service create state */ public static final String START_EVENT = " org.jboss.system.ServiceMBean.start"; /** The JMX notification event type for a service create state */ public static final String STOP_EVENT = " org.jboss.system.ServiceMBean.stop"; /** The JMX notification event type for a service create state */ public static final String DESTROY_EVENT = " org.jboss.system.ServiceMBean.destroy"; public static final String[] states = { "Stopped", "Stopping", "Starting", "Started", "Failed", "Destroyed", "Created", "Unregistered", "Registered" }; /** The Service.stop has completed */ public static final int STOPPED = 0; /** The Service.stop has been invoked */ public static final int STOPPING = 1; /** The Service.start has been invoked */ public static final int STARTING = 2; /** The Service.start has completed */ public static final int STARTED = 3; /** There has been an error during some operation */ public static final int FAILED = 4; /** The Service.destroy has completed */ public static final int DESTROYED = 5; /** The Service.create has completed */ public static final int CREATED = 6; /** The MBean has been created but has not completed MBeanRegistration.postRegister */ public static final int UNREGISTERED = 7; /** The MBean has been created and has completed MBeanRegistration.postRegister */ public static final int REGISTERED = 8; // Public -------------------------------------------------------- String getName(); int getState(); String getStateString(); /** Detyped lifecycle invocation */ void jbossInternalLifecycle(String method) throws Exception; }
-
4. Re: Attribute State and StateString
diripu Nov 2, 2004 6:25 AM (in response to diripu)Thanks.
Conclusion:
So for ServiceMBean the number are different than the SMO.
Here the attribure is "State". (Capital "S")
For SMO( or j2ee.state.* events) ,the attribute is "state". (note small "s")
I think for this the order number is like the below from 0-4.
j2ee.state.starting
j2ee.state.running
j2ee.state.stoping
j2ee.state.stopped
j2ee.state.failed
For example: the value of "state" attribute of the following mbean is "1".
means j2ee.state.running..... And it is a SMO.
"J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/jmx-console"