public class ForkClient extends Object implements StreamConsumer
| Constructor and Description |
|---|
ForkClient(DefaultReporterFactory defaultReporterFactory,
Properties testVmSystemProperties,
NotifiableTestStream notifiableTestStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean hadTimeout) |
void |
consumeLine(String s) |
void |
consumeMultiLineContent(String s) |
DefaultReporterFactory |
getDefaultReporterFactory() |
StackTraceWriter |
getErrorInFork() |
RunListener |
getReporter(int channelNumber)
Used when getting reporters on the plugin side of a fork.
|
boolean |
hadTimeout() |
boolean |
isErrorInFork() |
boolean |
isSaidGoodBye() |
protected void |
stopOnNextTest() |
void |
tryToTimeout(long currentTimeMillis,
int forkedProcessTimeoutInSeconds)
Called in concurrent Thread.
|
public ForkClient(DefaultReporterFactory defaultReporterFactory, Properties testVmSystemProperties, NotifiableTestStream notifiableTestStream)
protected void stopOnNextTest()
public final void tryToTimeout(long currentTimeMillis,
int forkedProcessTimeoutInSeconds)
public final DefaultReporterFactory getDefaultReporterFactory()
public final void consumeLine(String s)
consumeLine in interface StreamConsumerpublic final boolean hadTimeout()
public final void consumeMultiLineContent(String s) throws IOException
IOExceptionpublic final RunListener getReporter(int channelNumber)
channelNumber - The logical channel numberpublic void close(boolean hadTimeout)
public final boolean isSaidGoodBye()
public final StackTraceWriter getErrorInFork()
public final boolean isErrorInFork()
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.