Class StateManagerMBeanImpl
- java.lang.Object
-
- com.jalios.jcms.exploitation.state.StateManagerMBeanImpl
-
- All Implemented Interfaces:
StateManagerMBean
@JMXBean(description="Bean to manage state of Jplatform instance") public class StateManagerMBeanImpl extends java.lang.Object implements StateManagerMBean
-
-
Constructor Summary
Constructors Constructor Description StateManagerMBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
java.lang.String
getState()
boolean
isAlive()
boolean
isError()
boolean
isReady()
boolean
isStartup()
boolean
isUnknown()
void
setState(java.lang.String state, java.lang.String message)
-
-
-
Method Detail
-
getState
@JMXBeanAttribute(name="state", description="The state of jplatform") public java.lang.String getState()
- Specified by:
getState
in interfaceStateManagerMBean
-
isError
@JMXBeanAttribute(name="error", description="true if the current state is an error.") public boolean isError()
- Specified by:
isError
in interfaceStateManagerMBean
-
isStartup
@JMXBeanAttribute(name="startup", description="true if the jplatform is starting up.") public boolean isStartup()
- Specified by:
isStartup
in interfaceStateManagerMBean
-
isAlive
@JMXBeanAttribute(name="alive", description="true if the jplatform is alive") public boolean isAlive()
- Specified by:
isAlive
in interfaceStateManagerMBean
-
isReady
@JMXBeanAttribute(name="ready", description="true if the jplatform is alive and ready") public boolean isReady()
- Specified by:
isReady
in interfaceStateManagerMBean
-
isUnknown
@JMXBeanAttribute(name="unknown", description="true if the state is uknown or null") public boolean isUnknown()
- Specified by:
isUnknown
in interfaceStateManagerMBean
-
getMessage
@JMXBeanAttribute(name="message", description="Optional associated with the state if provided") public java.lang.String getMessage()
- Specified by:
getMessage
in interfaceStateManagerMBean
-
setState
@JMXBeanOperation(name="setState", description="Set the jplatform state") public void setState(@JMXBeanParameter(name="state",description="One of valid state among STARTUP,ALIVE,READY and ERROR") java.lang.String state, @JMXBeanParameter(name="message",description="Optional message associated with this state ") java.lang.String message)
- Specified by:
setState
in interfaceStateManagerMBean
-
-