com.isti.util
Class Restarter
java.lang.Object
com.isti.util.Restarter
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:
- Version:
- 1.0
- Author:
- not attributable
Constructor Summary |
Restarter(java.lang.String clientNameStr)
|
Method Summary |
static void |
main(java.lang.String[] args)
|
java.lang.String |
runClient()
|
java.lang.String |
runClient(java.lang.String command)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logObj
LogFile logObj
CLIENT_PROGRAM_SINGLETON_NAME
public static java.lang.String CLIENT_PROGRAM_SINGLETON_NAME
- Name for the "program singleton" object.
cmdStr
java.lang.String cmdStr
Restarter
public Restarter(java.lang.String clientNameStr)
runClient
public java.lang.String runClient(java.lang.String command)
runClient
public java.lang.String runClient()
main
public static void main(java.lang.String[] args)