| java.lang.Object org.apache.derbyTesting.functionTests.harness.ProcessStreamResult
ProcessStreamResult | public class ProcessStreamResult implements Runnable(Code) | | |
Method Summary | |
public boolean | Wait() Wait till the myThread has finished its work or incase a timeout was set on this
object, then to set a flag to indicate the myThread to leave at the end of the
timeout period. | public void | run() |
finished | protected boolean finished(Code) | | Flag to find out if the work was finished
successfully without being interrupted
in between because of a timeout setting
|
interrupted | protected boolean interrupted(Code) | | Flag to keep state of whether the myThread has timed out.
When interrupted is true, the myThread will exit
from its work.
|
startTime | protected long startTime(Code) | | |
timeout | protected int timeout(Code) | | time in minutes for myThread to timeout in case it
has not finished its work before that.
timeout handling only comes into effect only when Wait()
is called.
|
Wait | public boolean Wait() throws IOException(Code) | | Wait till the myThread has finished its work or incase a timeout was set on this
object, then to set a flag to indicate the myThread to leave at the end of the
timeout period.
Behavior is as follows:
1) If timeout is set to a valid value (>0) - in this case, if myThread has not
finished its work by the time this method was called, then it will wait
till the timeout has elapsed or if the myThread has finished its work.
2)If timeout is not set ( <= 0) - in this case, if myThread has not
finished its work by the time this method was called, then it will wait
till myThread has finished its work.
If timeout is set to a valid value, and the timeout amount of time has elapsed,
then the interrupted flag is set to true to indicate that it is time for the
myThread to stop its work and leave.
true if the timeout happened before myThread work was finishedelse false throws: IOException - |
|
|