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 void
destroy()
CommandPoller
getCommandPoller()
CommandRegistry
getCommandRegistry()
java.lang.String
getName()
DaemonService
getService()
protected void
init(AspectranConfig aspectranConfig)
protected void
init(DaemonConfig daemonConfig)
protected void
init(java.lang.String basePath, java.io.File aspectranConfigFile)
boolean
isActive()
boolean
isWait()
void
setName(java.lang.String name)
protected void
start()
protected void
start(boolean wait)
protected void
start(long wait)
void
stop()
-
-
-
Method Detail
-
getService
public DaemonService getService()
- Specified by:
getService
in interfaceDaemon
-
getCommandPoller
public CommandPoller getCommandPoller()
- Specified by:
getCommandPoller
in interfaceDaemon
-
getCommandRegistry
public CommandRegistry getCommandRegistry()
- Specified by:
getCommandRegistry
in 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
-
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
-
-