public class Diet4jDaemon extends Object implements org.apache.commons.daemon.Daemon
Modifier and Type | Field and Description |
---|---|
protected File[] |
theModuleDirectories |
protected ModuleRegistry |
theModuleRegistry |
protected Module |
theRootModule |
protected ModuleMeta |
theRootModuleMeta |
protected ModuleRequirement |
theRootModuleRequirement |
protected String[] |
theRunArguments |
protected String |
theRunClassName |
protected String |
theRunMethodName |
Constructor and Description |
---|
Diet4jDaemon() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
init(org.apache.commons.daemon.DaemonContext dc) |
void |
start() |
void |
stop() |
protected Module theRootModule
protected ModuleMeta theRootModuleMeta
protected ModuleRegistry theModuleRegistry
protected ModuleRequirement theRootModuleRequirement
protected String[] theRunArguments
protected File[] theModuleDirectories
protected String theRunClassName
protected String theRunMethodName
public void init(org.apache.commons.daemon.DaemonContext dc) throws org.apache.commons.daemon.DaemonInitException
init
in interface org.apache.commons.daemon.Daemon
org.apache.commons.daemon.DaemonInitException
public void start() throws ModuleResolutionException, ModuleNotFoundException, ModuleActivationException, ClassNotFoundException, ModuleRunException, NoRunMethodException, InvocationTargetException
start
in interface org.apache.commons.daemon.Daemon
ModuleResolutionException
ModuleNotFoundException
ModuleActivationException
ClassNotFoundException
ModuleRunException
NoRunMethodException
InvocationTargetException
public void stop() throws ModuleDeactivationException
stop
in interface org.apache.commons.daemon.Daemon
ModuleDeactivationException
public void destroy()
destroy
in interface org.apache.commons.daemon.Daemon
Copyright © 2018. All rights reserved.