Class AbstractServiceDaemon

    • Constructor Detail

      • AbstractServiceDaemon

        protected AbstractServiceDaemon​(java.lang.String name)

        Constructor for AbstractServiceDaemon.

        Parameters:
        name - a String object.
    • Method Detail

      • afterPropertiesSet

        public final void afterPropertiesSet()
                                      throws java.lang.Exception

        afterPropertiesSet

        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.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

      • getName

        public final java.lang.String getName()

        getName

        Specified by:
        getName in interface Fiber
        Returns:
        a String object.
      • setStatus

        protected final void setStatus​(int status)

        setStatus

        Parameters:
        status - a int.
      • waitForStatus

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

        waitForStatus

        Parameters:
        status - a int.
        timeout - a long.
        Throws:
        java.lang.InterruptedException - if any.
      • waitForStatus

        protected final void waitForStatus​(int status)
                                    throws java.lang.InterruptedException

        waitForStatus

        Parameters:
        status - a int.
        Throws:
        java.lang.InterruptedException - if any.
      • getStatus

        public int getStatus()

        getStatus

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

        public java.lang.String getStatusText()

        getStatusText

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

        public java.lang.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