Class AbstractDaemon

  • All Implemented Interfaces:
    Daemon
    Direct Known Subclasses:
    DefaultDaemon, SimpleDaemon

    public class AbstractDaemon
    extends java.lang.Object
    implements Daemon
    The Abstract Daemon.

    Created: 2017. 12. 11.

    Since:
    5.1.0
    • Constructor Detail

      • AbstractDaemon

        public AbstractDaemon()
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Daemon
      • setName

        public void setName​(java.lang.String name)
        Specified by:
        setName in interface Daemon
      • getBasePath

        public java.lang.String getBasePath()
        Specified by:
        getBasePath in interface Daemon
      • isWait

        public boolean isWait()
        Specified by:
        isWait in interface Daemon
      • isActive

        public boolean isActive()
        Specified by:
        isActive in interface Daemon
      • init

        protected void init​(java.lang.String basePath,
                            java.io.File aspectranConfigFile)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • init

        protected void init​(AspectranConfig aspectranConfig)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • init

        protected void init​(DaemonConfig daemonConfig)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • start

        protected void start()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • start

        protected void start​(boolean wait)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • start

        protected void start​(long wait)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • stop

        public void stop()
        Specified by:
        stop in interface Daemon
      • destroy

        public void destroy()
        Specified by:
        destroy in interface Daemon