public class DistributorService extends JVMService
| Modifier and Type | Field and Description |
|---|---|
protected Distributor |
distributor |
protected java.lang.String[] |
parameters |
static java.lang.String |
version
The revision number.
|
appThread, CONTROLS_PARAMCHANGE, CONTROLS_PAUSABLE, CONTROLS_SHUTDOWN, CONTROLS_STOPPABLE, ERR_OUT, STD_OUT, WAIT_HINT| Constructor and Description |
|---|
DistributorService()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getVersion()
Get the version
|
int |
getWaitHint()
Get the time in milliseconds in that is needed for application to stop.
|
void |
init(java.lang.String[] param)
Set the application parameters.
|
static void |
main(java.lang.String[] args)
The main class.
|
void |
pause()
Pause the distributor thread.
|
void |
restart()
Restart the distributor thread.
|
void |
resume()
Resume the distributor thread.
|
void |
setEnvironment(java.lang.String key,
java.lang.String value)
Set an environment variable.
|
void |
start()
Start the application.
|
void |
stop()
Stop the distributor thread.
|
errOut, errOut, getCallingClassName, getLogLevel, getLogType, requestStopService, sendServiceRunning, setControlsAccepted, stdOut, stdOutpublic static final java.lang.String version
protected java.lang.String[] parameters
protected Distributor distributor
public java.lang.String getVersion()
getVersion in class JVMServicepublic void setEnvironment(java.lang.String key,
java.lang.String value)
setEnvironment in class JVMServicekey - the variable namevalue - the value of the variablepublic void init(java.lang.String[] param)
init in class JVMServiceparam - The array containig the parameter strings.public void start()
start in class JVMServicepublic void stop()
stop in class JVMServicepublic void restart()
public void pause()
pause in class JVMServicepublic void resume()
resume in class JVMServicepublic int getWaitHint()
getWaitHint in class JVMServicepublic static void main(java.lang.String[] args)
args - the arguments.