public class Restarter
extends java.lang.Object
Title:
Description:
This program is a generic program restarter. if the program it launches shuts down with any return code other than 0, it will restart that program ad infinitum. There is a 10 second pause to avoid banging away at a bad command.Copyright: Copyright (c) 2005
Company:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENT_PROGRAM_SINGLETON_NAME
Name for the "program singleton" object.
|
(package private) java.lang.String |
cmdStr |
(package private) LogFile |
logObj |
Constructor and Description |
---|
Restarter(java.lang.String clientNameStr) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
java.lang.String |
runClient() |
java.lang.String |
runClient(java.lang.String command) |
LogFile logObj
public static java.lang.String CLIENT_PROGRAM_SINGLETON_NAME
java.lang.String cmdStr