Class AbstractSpringContextJmxServiceDaemon<T extends SpringServiceDaemon>

    • Constructor Detail

      • AbstractSpringContextJmxServiceDaemon

        public AbstractSpringContextJmxServiceDaemon()

        Constructor for AbstractSpringContextJmxServiceDaemon.

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

      • getSpringContext

        protected abstract String getSpringContext()

        getSpringContext

        Returns:
        a String object.
      • getLoggingPrefix

        protected abstract 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.