com.eurotech.framework.cloud.app.command
Class ProcessMonitorThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.eurotech.framework.cloud.app.command.ProcessMonitorThread
All Implemented Interfaces:
Runnable

public class ProcessMonitorThread
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ProcessMonitorThread(Process proc, String stdin, int procTout)
           
 
Method Summary
 Exception getException()
           
 Integer getExitValue()
           
 String getStderr()
           
 String getStdout()
           
 boolean isTimedOut()
           
 void run()
           
 void setException(Exception exception)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessMonitorThread

public ProcessMonitorThread(Process proc,
                            String stdin,
                            int procTout)
Method Detail

getStdout

public String getStdout()

getStderr

public String getStderr()

getExitValue

public Integer getExitValue()

isTimedOut

public boolean isTimedOut()

getException

public Exception getException()

setException

public void setException(Exception exception)

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2013. All Rights Reserved.