com.isti.util
Class Restarter

java.lang.Object
  extended by 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

Field Summary
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 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
 

Field Detail

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
Constructor Detail

Restarter

public Restarter(java.lang.String clientNameStr)
Method Detail

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)