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.StringgetMessage()java.lang.StringgetState()booleanisAlive()booleanisError()booleanisReady()booleanisStartup()booleanisUnknown()voidsetState(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:
getStatein interfaceStateManagerMBean
-
isError
@JMXBeanAttribute(name="error", description="true if the current state is an error.") public boolean isError()- Specified by:
isErrorin interfaceStateManagerMBean
-
isStartup
@JMXBeanAttribute(name="startup", description="true if the jplatform is starting up.") public boolean isStartup()- Specified by:
isStartupin interfaceStateManagerMBean
-
isAlive
@JMXBeanAttribute(name="alive", description="true if the jplatform is alive") public boolean isAlive()- Specified by:
isAlivein interfaceStateManagerMBean
-
isReady
@JMXBeanAttribute(name="ready", description="true if the jplatform is alive and ready") public boolean isReady()- Specified by:
isReadyin interfaceStateManagerMBean
-
isUnknown
@JMXBeanAttribute(name="unknown", description="true if the state is uknown or null") public boolean isUnknown()- Specified by:
isUnknownin interfaceStateManagerMBean
-
getMessage
@JMXBeanAttribute(name="message", description="Optional associated with the state if provided") public java.lang.String getMessage()- Specified by:
getMessagein 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:
setStatein interfaceStateManagerMBean
-
-