Class AbstractSpringContextJmxServiceDaemon<T extends SpringServiceDaemon>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DAEMON_BEAN_NAME
      Constant DAEMON_BEAN_NAME="daemon"
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.context.ApplicationContext getContext()
      This is here for unit tests to use.
      T getDaemon()
      Get the service daemon object that this JMX MBean represents.
      protected abstract java.lang.String getLoggingPrefix()
      getLoggingPrefix
      protected abstract java.lang.String getSpringContext()
      getSpringContext
      int getStatus()
      getStatus
      java.lang.String getStatusText()
      getStatusText
      void init()
      init
      void start()
      start
      java.lang.String status()
      status
      void stop()
      stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DAEMON_BEAN_NAME

        public static final java.lang.String DAEMON_BEAN_NAME
        Constant DAEMON_BEAN_NAME="daemon"
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractSpringContextJmxServiceDaemon

        public AbstractSpringContextJmxServiceDaemon()

        Constructor for AbstractSpringContextJmxServiceDaemon.

        Type Parameters:
        T - a T object.
    • Method Detail

      • getSpringContext

        protected abstract java.lang.String getSpringContext()

        getSpringContext

        Returns:
        a String object.
      • getLoggingPrefix

        protected abstract java.lang.String getLoggingPrefix()

        getLoggingPrefix

        Returns:
        a String object.
      • getContext

        protected org.springframework.context.ApplicationContext getContext()
        This is here for unit tests to use.
        Returns:
        a ApplicationContext object.
      • init

        public final void init()

        init

        Specified by:
        init in interface BaseOnmsMBean
      • start

        public final void start()

        start

        Specified by:
        start in interface BaseOnmsMBean
      • getDaemon

        public T getDaemon()
        Get the service daemon object that this JMX MBean represents.
        Returns:
        the service daemon object
      • stop

        public final void stop()

        stop

        Specified by:
        stop in interface BaseOnmsMBean
      • getStatus

        public final int getStatus()

        getStatus

        Specified by:
        getStatus in interface BaseOnmsMBean
        Returns:
        a int.
      • status

        public final java.lang.String status()

        status

        Specified by:
        status in interface BaseOnmsMBean
        Returns:
        a String object.
      • getStatusText

        public final java.lang.String getStatusText()

        getStatusText

        Specified by:
        getStatusText in interface BaseOnmsMBean
        Returns:
        a String object.