public class ForkClient extends Object implements org.apache.maven.shared.utils.cli.StreamConsumer
Constructor and Description |
---|
ForkClient(DefaultReporterFactory defaultReporterFactory,
NotifiableTestStream notifiableTestStream,
org.apache.maven.plugin.surefire.log.api.ConsoleLogger log,
AtomicBoolean printedErrorStream,
int forkNumber) |
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.
|
Map<String,String> |
getTestVmSystemProperties() |
boolean |
hadTimeout() |
boolean |
hasTestsInProgress() |
boolean |
isErrorInFork() |
boolean |
isSaidGoodBye() |
void |
kill() |
protected void |
stopOnNextTest() |
Set<String> |
testsInProgress() |
void |
tryToTimeout(long currentTimeMillis,
int forkedProcessTimeoutInSeconds)
Called in concurrent Thread.
|
public ForkClient(DefaultReporterFactory defaultReporterFactory, NotifiableTestStream notifiableTestStream, org.apache.maven.plugin.surefire.log.api.ConsoleLogger log, AtomicBoolean printedErrorStream, int forkNumber)
protected void stopOnNextTest()
public void kill()
public final void tryToTimeout(long currentTimeMillis, int forkedProcessTimeoutInSeconds)
currentTimeMillis
- current time in millis secondsforkedProcessTimeoutInSeconds
- timeout in seconds given by MOJOpublic final DefaultReporterFactory getDefaultReporterFactory()
public final void consumeLine(String s)
consumeLine
in interface org.apache.maven.shared.utils.cli.StreamConsumer
public final boolean hadTimeout()
public final void consumeMultiLineContent(String s) throws IOException
IOException
public final RunListener getReporter()
public void close(boolean hadTimeout)
public final boolean isSaidGoodBye()
public final StackTraceWriter getErrorInFork()
public final boolean isErrorInFork()
public boolean hasTestsInProgress()
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.