Package com.aspectran.daemon
Class SimpleDaemon
- java.lang.Object
-
- com.aspectran.daemon.AbstractDaemon
-
- com.aspectran.daemon.SimpleDaemon
-
- All Implemented Interfaces:
Daemon
public class SimpleDaemon extends AbstractDaemon
Since SimpleDaemon has an empty Activity context, it should be used primarily to execute daemon commands.Created: 2019. 01. 22.
- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description SimpleDaemon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(java.lang.String basePath, DaemonConfig daemonConfig)voidstart()voidstart(boolean wait)voidstart(long wait)-
Methods inherited from class com.aspectran.daemon.AbstractDaemon
destroy, getBasePath, getCommandExecutor, getCommandRegistry, getDaemonService, getFileCommander, getName, init, init, isActive, isWait, setName, stop
-
-
-
-
Method Detail
-
init
public void init(@Nullable java.lang.String basePath, @NonNull DaemonConfig daemonConfig) throws java.lang.Exception
- Throws:
java.lang.Exception
-
start
public void start() throws java.lang.Exception- Overrides:
startin classAbstractDaemon- Throws:
java.lang.Exception
-
start
public void start(boolean wait) throws java.lang.Exception- Overrides:
startin classAbstractDaemon- Throws:
java.lang.Exception
-
start
public void start(long wait) throws java.lang.Exception- Overrides:
startin classAbstractDaemon- Throws:
java.lang.Exception
-
-