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, stdOut
public static final java.lang.String version
protected java.lang.String[] parameters
protected Distributor distributor
public java.lang.String getVersion()
getVersion
in class JVMService
public void setEnvironment(java.lang.String key, java.lang.String value)
setEnvironment
in class JVMService
key
- the variable namevalue
- the value of the variablepublic void init(java.lang.String[] param)
init
in class JVMService
param
- The array containig the parameter strings.public void start()
start
in class JVMService
public void stop()
stop
in class JVMService
public void restart()
public void pause()
pause
in class JVMService
public void resume()
resume
in class JVMService
public int getWaitHint()
getWaitHint
in class JVMService
public static void main(java.lang.String[] args)
args
- the arguments.