wt.util
Class ProcessLauncher.TimeoutMonitor

java.lang.Object
  extended byjava.lang.Thread
      extended bywt.util.ProcessLauncher.TimeoutMonitor
All Implemented Interfaces:
Runnable
Enclosing class:
ProcessLauncher

private class ProcessLauncher.TimeoutMonitor
extends Thread


Field Summary
private static int INACTIVE
           
private  long inactivityDeadline_
           
private  long inactivityTimeout_
           
private  long overallDeadline_
           
private  long overallTimeout_
           
private static int RUNNING
           
private static int SHUTDOWN
           
private  int state_
           
private static int TOO_MUCH_TIME
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) ProcessLauncher.TimeoutMonitor(long inactivity_timeout, long overall_timeout)
           
 
Method Summary
 long getInactivityTimeout()
           
 long getOverallTimeout()
           
 void resetInactivityDeadline()
           
 void run()
           
 void shutdown()
           
 boolean timedOut()
           
 boolean timedOutBecauseTookTooLong()
           
 boolean timedOutFromInactivity()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RUNNING

private static final int RUNNING
See Also:
Constant Field Values

SHUTDOWN

private static final int SHUTDOWN
See Also:
Constant Field Values

INACTIVE

private static final int INACTIVE
See Also:
Constant Field Values

TOO_MUCH_TIME

private static final int TOO_MUCH_TIME
See Also:
Constant Field Values

overallTimeout_

private long overallTimeout_

inactivityTimeout_

private long inactivityTimeout_

state_

private int state_

overallDeadline_

private long overallDeadline_

inactivityDeadline_

private long inactivityDeadline_
Constructor Detail

ProcessLauncher.TimeoutMonitor

ProcessLauncher.TimeoutMonitor(long inactivity_timeout,
                               long overall_timeout)
Method Detail

getOverallTimeout

public long getOverallTimeout()

getInactivityTimeout

public long getInactivityTimeout()

shutdown

public void shutdown()

resetInactivityDeadline

public void resetInactivityDeadline()

timedOut

public boolean timedOut()

timedOutFromInactivity

public boolean timedOutFromInactivity()

timedOutBecauseTookTooLong

public boolean timedOutBecauseTookTooLong()

run

public void run()