public class NumberGeneratorService extends JVMService
| Modifier and Type | Field and Description |
|---|---|
protected NumberGenerator |
server |
static java.lang.String |
version |
appThread, CONTROLS_PARAMCHANGE, CONTROLS_PAUSABLE, CONTROLS_SHUTDOWN, CONTROLS_STOPPABLE, ERR_OUT, STD_OUT, WAIT_HINT| Constructor and Description |
|---|
NumberGeneratorService()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getVersion() |
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) |
void |
pause()
Pause the CORBAFileServer thread.
|
void |
restart()
Restart the CORBAFileServer thread.
|
void |
resume()
Resume the CORBAFileServer thread.
|
void |
setEnvironment(java.lang.String key,
java.lang.String value)
Set environment variables.
|
void |
start()
Start the application.
|
void |
stop()
Stop the CORBAFileServer thread.
|
errOut, errOut, getCallingClassName, getLogLevel, getLogType, requestStopService, sendServiceRunning, setControlsAccepted, stdOut, stdOutpublic static final java.lang.String version
protected NumberGenerator server
public java.lang.String getVersion()
getVersion in class JVMServicepublic void setEnvironment(java.lang.String key,
java.lang.String value)
setEnvironment in class JVMServicekey - The name of the variable.value - The value of the variable.public 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)