public class ForkClient extends Object implements org.apache.maven.shared.utils.cli.StreamConsumer
| Constructor and Description |
|---|
ForkClient(DefaultReporterFactory defaultReporterFactory,
Properties testVmSystemProperties,
NotifiableTestStream notifiableTestStream,
org.apache.maven.plugin.surefire.log.api.ConsoleLogger log) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean hadTimeout) |
void |
consumeLine(String s) |
void |
consumeMultiLineContent(String s) |
DefaultReporterFactory |
getDefaultReporterFactory() |
StackTraceWriter |
getErrorInFork() |
RunListener |
getReporter()
Used when getting reporters on the plugin side of a fork.
|
boolean |
hadTimeout() |
boolean |
hasTestsInProgress() |
boolean |
isErrorInFork() |
boolean |
isSaidGoodBye() |
void |
kill() |
void |
setForkNumber(int forkNumber) |
protected void |
stopOnNextTest() |
Set<String> |
testsInProgress() |
void |
tryToTimeout(long currentTimeMillis,
int forkedProcessTimeoutInSeconds)
Called in concurrent Thread.
|
public ForkClient(DefaultReporterFactory defaultReporterFactory, Properties testVmSystemProperties, NotifiableTestStream notifiableTestStream, org.apache.maven.plugin.surefire.log.api.ConsoleLogger log)
protected void stopOnNextTest()
public void kill()
public final void tryToTimeout(long currentTimeMillis,
int forkedProcessTimeoutInSeconds)
public final DefaultReporterFactory getDefaultReporterFactory()
public final void consumeLine(String s)
consumeLine in interface org.apache.maven.shared.utils.cli.StreamConsumerpublic final boolean hadTimeout()
public final void consumeMultiLineContent(String s) throws IOException
IOExceptionpublic final RunListener getReporter()
public void close(boolean hadTimeout)
public final boolean isSaidGoodBye()
public final StackTraceWriter getErrorInFork()
public final boolean isErrorInFork()
public boolean hasTestsInProgress()
public void setForkNumber(int forkNumber)
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.