net.sf.jsequnit.process
Class ProcessController

java.lang.Object
  extended by net.sf.jsequnit.process.ProcessController

public class ProcessController
extends Object

Helps to executes an external process synchronously through the use of Threads to forward input and error streams.


Constructor Summary
ProcessController(Process process)
          Create an instance for the given representation of the external process.
 
Method Summary
 void markFinished()
          Stop stream forwarding and notify all pending threads.
 void startStreamForwarding()
          Start the threads to forward the input and error stream of the external process to the streams of the current process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessController

public ProcessController(Process process)
Create an instance for the given representation of the external process.

Parameters:
process - The java.lang instance of the native OS process.
Method Detail

startStreamForwarding

public void startStreamForwarding()
Start the threads to forward the input and error stream of the external process to the streams of the current process.


markFinished

public void markFinished()
Stop stream forwarding and notify all pending threads.



Copyright © 2011. All Rights Reserved.