Package com.aspectran.daemon
Class AbstractDaemon
- java.lang.Object
-
- com.aspectran.daemon.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 Summary
Constructors Constructor Description AbstractDaemon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()java.lang.StringgetBasePath()CommandPollergetCommandPoller()CommandRegistrygetCommandRegistry()java.lang.StringgetName()DaemonServicegetService()protected voidinit(com.aspectran.core.context.config.AspectranConfig aspectranConfig)protected voidinit(com.aspectran.core.context.config.DaemonConfig daemonConfig)protected voidinit(java.lang.String basePath, java.io.File aspectranConfigFile)booleanisActive()booleanisWait()voidsetName(java.lang.String name)protected voidstart()protected voidstart(boolean wait)protected voidstart(long wait)voidstop()
-
-
-
Method Detail
-
getBasePath
public java.lang.String getBasePath()
- Specified by:
getBasePathin interfaceDaemon
-
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(com.aspectran.core.context.config.AspectranConfig aspectranConfig) throws java.lang.Exception- Throws:
java.lang.Exception
-
init
protected void init(com.aspectran.core.context.config.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
-
-