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 Object implements StateManagerMBean
  • Constructor Details

    • StateManagerMBeanImpl

      public StateManagerMBeanImpl()
  • Method Details

    • getState

      @JMXBeanAttribute(name="state", description="The state of jplatform") public String getState()
      Specified by:
      getState in interface StateManagerMBean
    • isError

      @JMXBeanAttribute(name="error", description="true if the current state is an error.") public boolean isError()
      Specified by:
      isError in interface StateManagerMBean
    • isStartup

      @JMXBeanAttribute(name="startup", description="true if the jplatform is starting up.") public boolean isStartup()
      Specified by:
      isStartup in interface StateManagerMBean
    • isAlive

      @JMXBeanAttribute(name="alive", description="true if the jplatform is alive") public boolean isAlive()
      Specified by:
      isAlive in interface StateManagerMBean
    • isReady

      @JMXBeanAttribute(name="ready", description="true if the jplatform is alive and ready") public boolean isReady()
      Specified by:
      isReady in interface StateManagerMBean
    • isUnknown

      @JMXBeanAttribute(name="unknown", description="true if the state is uknown or null") public boolean isUnknown()
      Specified by:
      isUnknown in interface StateManagerMBean
    • getMessage

      @JMXBeanAttribute(name="message", description="Optional associated with the state if provided") public String getMessage()
      Specified by:
      getMessage in interface StateManagerMBean
    • 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") String state, @JMXBeanParameter(name="message",description="Optional message associated with this state ") String message)
      Specified by:
      setState in interface StateManagerMBean