Class AbstractServiceDaemon

    • Constructor Detail

      • AbstractServiceDaemon

        protected AbstractServiceDaemon​(String name)

        Constructor for AbstractServiceDaemon.

        Parameters:
        name - a String object.
    • Method Detail

      • afterPropertiesSet

        public final void afterPropertiesSet()
                                      throws Exception

        afterPropertiesSet

        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception - if any.
      • onInit

        protected abstract void onInit()

        onInit

      • onPause

        protected void onPause()

        onPause

      • onResume

        protected void onResume()

        onResume

      • onStart

        protected void onStart()

        onStart

      • onStop

        protected void onStop()

        onStop

      • setStatus

        protected final void setStatus​(int status)

        setStatus

        Parameters:
        status - a int.
      • waitForStatus

        protected final void waitForStatus​(int status,
                                           long timeout)
                                    throws InterruptedException

        waitForStatus

        Parameters:
        status - a int.
        timeout - a long.
        Throws:
        InterruptedException - if any.
      • getStatus

        public int getStatus()

        getStatus

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

        public String status()
        Deprecated.
        Use getStatusText() instead. This field is only for backwards compatibility with JMX operations.

        status

        Returns:
        a String object.
      • isRunning

        protected boolean isRunning()

        isRunning

        Returns:
        a boolean.
      • isPaused

        protected boolean isPaused()

        isPaused

        Returns:
        a boolean.
      • isStarting

        protected boolean isStarting()

        isStarting

        Returns:
        a boolean.
      • init

        public final void init()

        init

      • pause

        public final void pause()

        pause

        Specified by:
        pause in interface PausableFiber
      • stop

        public final void stop()
        Stops the currently running service. If the service is not running then the command is silently discarded.
        Specified by:
        stop in interface Fiber
      • destroy

        public final void destroy()
        Destroys the current service.
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean