public class TaskomaticDaemon extends BaseDaemon
SchedulerKernel
Modifier and Type | Field and Description |
---|---|
static int |
ERR_SCHED_CREATE |
LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_STATUS, SUCCESS
Constructor and Description |
---|
TaskomaticDaemon() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.cli.Options |
buildOptionsList()
Creates the "master" list of options which the daemon implementation
knows about.
|
static void |
main(java.lang.String[] argv)
Main entry point for the native daemon
|
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.
|
controlEvent, logMessage, onOptionsParseError, registerImplementation, start, stop
public static final int ERR_SCHED_CREATE
public static void main(java.lang.String[] argv)
argv
- "Command-line" parametersprotected org.apache.commons.cli.Options buildOptionsList()
BaseDaemon
buildOptionsList
in class BaseDaemon
protected 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 failureprotected 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 error