Package com.aspectran.daemon
Class AbstractDaemon
- java.lang.Object
-
- com.aspectran.daemon.AbstractDaemon
-
- All Implemented Interfaces:
Daemon,java.lang.Runnable
- Direct Known Subclasses:
DefaultDaemon
public class AbstractDaemon extends java.lang.Object implements Daemon, java.lang.Runnable
The Abstract Daemon.Created: 2017. 12. 11.
- Since:
- 5.1.0
-
-
Constructor Summary
Constructors Constructor Description AbstractDaemon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddestroy()CommandPollergetCommandPoller()CommandRegistrygetCommandRegistry()java.lang.StringgetName()DaemonServicegetService()protected voidinit(AspectranConfig aspectranConfig)protected voidinit(java.lang.String basePath, java.io.File aspectranConfigFile)booleanisActive()voidrun()voidsetName(java.lang.String name)protected voidstart()protected voidstart(boolean wait)voidstop()
-
-
-
Method Detail
-
getService
public DaemonService getService()
- Specified by:
getServicein interfaceDaemon
-
getCommandPoller
public CommandPoller getCommandPoller()
- Specified by:
getCommandPollerin interfaceDaemon
-
getCommandRegistry
public CommandRegistry getCommandRegistry()
- Specified by:
getCommandRegistryin interfaceDaemon
-
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
-
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
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
destroy
protected void destroy()
-
-