public static class DaemonController.Options
extends java.lang.Object
| Constructor and Description |
|---|
Options()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommand() |
java.lang.String |
getInstanceName() |
java.lang.String |
getJvmOptions() |
java.lang.String |
getStdoutLogFileName() |
boolean |
isPokeOutputEnabled()
Returns true if the
poke command should
generate output. |
void |
parse(java.lang.String[] args)
Parse command line arguments.
|
void |
pokeMessage(java.lang.String instanceName,
java.lang.String msg)
Print a message about poking an instance.
|
public void parse(java.lang.String[] args)
args - the command line arguments to parsepublic java.lang.String getCommand()
public java.lang.String getInstanceName()
public java.lang.String getStdoutLogFileName()
public java.lang.String getJvmOptions()
public boolean isPokeOutputEnabled()
poke command should
generate output. The default implementation returns true.
Subclasses may disable poke output by returning false.
If output is enabled, the poke command prints detailed information
about whether or not the process is running or needs to be
restarted, and if a restart was necessary, whether the restart
was successful. This information is very useful to capture in a
log for diagnostic purposes.public void pokeMessage(java.lang.String instanceName,
java.lang.String msg)
instanceName - the instance namemsg - the message to print