Class StateManagerMBeanImpl

  • All Implemented Interfaces:
    StateManagerMBean

    @JMXBean(description="Bean to manage state of Jplatform instance")
    public class StateManagerMBeanImpl
    extends java.lang.Object
    implements StateManagerMBean
    • Constructor Detail

      • StateManagerMBeanImpl

        public StateManagerMBeanImpl()
    • Method Detail

      • getState

        @JMXBeanAttribute(name="state",
                          description="The state of jplatform")
        public java.lang.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 java.lang.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")
                             java.lang.String state,
                             @JMXBeanParameter(name="message",description="Optional message associated with this state ")
                             java.lang.String message)
        Specified by:
        setState in interface StateManagerMBean