org.gridbus.broker.util
Class InputGobbler

java.lang.Object
  extended by java.lang.Thread
      extended by org.gridbus.broker.util.InputGobbler
All Implemented Interfaces:
java.lang.Runnable

public class InputGobbler
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
InputGobbler(java.io.InputStream is)
           
InputGobbler(java.io.InputStream is, java.io.OutputStream redirect)
           
 
Method Summary
 void run()
          The InputGobbler thread is used to redirect the output/error stream produced by the executed command to a file.
 void setOutputFile(java.lang.String file)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputGobbler

public InputGobbler(java.io.InputStream is)

InputGobbler

public InputGobbler(java.io.InputStream is,
                    java.io.OutputStream redirect)
Method Detail

setOutputFile

public void setOutputFile(java.lang.String file)

run

public void run()
The InputGobbler thread is used to redirect the output/error stream produced by the executed command to a file.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

Copyright © The University of Melbourne. 2006