public class TestDaemon extends BaseDaemon
LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_STATUS, SUCCESS
Constructor and Description |
---|
TestDaemon() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv) |
protected int |
onShutdown(boolean breakFromUser)
Lifecycle method called when the daemon implementation is stopped.
|
protected int |
onStartup(org.apache.commons.cli.CommandLine commandLine)
Lifecycle method called when the daemon implementation is started.
|
buildOptionsList, controlEvent, logMessage, onOptionsParseError, registerImplementation, start, stop
protected int onShutdown(boolean breakFromUser)
BaseDaemon
onShutdown
in class BaseDaemon
breakFromUser
- True if the user sent a Ctrl-CBaseDaemon.SUCCESS
indicates success and any other number indicates an errorprotected int onStartup(org.apache.commons.cli.CommandLine commandLine)
BaseDaemon
onStartup
in class BaseDaemon
commandLine
- Parsed params, if present. Otherwise null.BaseDaemon.SUCCESS
indicates success and any other number indicates failurepublic static void main(java.lang.String[] argv)