public abstract class ProcessWaiter<T extends CancellableRunnable>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected T |
myErrStreamListener |
protected T |
myInStreamListener |
Constructor and Description |
---|
ProcessWaiter() |
Modifier and Type | Method and Description |
---|---|
void |
cancelListeners() |
protected abstract T |
createStreamListener(java.io.InputStream stream) |
int |
execute(InterruptibleProcess worker,
long timeout) |
T |
getErrStreamListener() |
T |
getInStreamListener() |
protected boolean |
tryReadStreams(int rc) |
protected T extends CancellableRunnable myInStreamListener
protected T extends CancellableRunnable myErrStreamListener
protected abstract T createStreamListener(java.io.InputStream stream)
protected boolean tryReadStreams(int rc)
public int execute(InterruptibleProcess worker, long timeout) throws java.io.IOException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException, java.lang.InterruptedException
java.io.IOException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
java.lang.InterruptedException
public void cancelListeners()
public T getInStreamListener()
public T getErrStreamListener()