Class ThreadedStreamConsumer.Pumper
java.lang.Object
org.apache.maven.plugin.surefire.booterclient.output.ThreadedStreamConsumer.Pumper
- All Implemented Interfaces:
Runnable
- Enclosing class:
- ThreadedStreamConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultipleFailureExceptionprivate final org.apache.maven.shared.utils.cli.StreamConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanvoidrun()CallsForkClient.consumeLine(String)which may throw anyRuntimeException.
Even ifForkClientis not fault-tolerant, this method MUST be fault-tolerant and thus the try-catch block must be inside of the loop which prevents from loosing events fromStreamConsumer.(package private) void
-
Field Details
-
target
private final org.apache.maven.shared.utils.cli.StreamConsumer target -
errors
-
-
Constructor Details
-
Method Details
-
run
public void run()CallsForkClient.consumeLine(String)which may throw anyRuntimeException.
Even ifForkClientis not fault-tolerant, this method MUST be fault-tolerant and thus the try-catch block must be inside of the loop which prevents from loosing events fromStreamConsumer.
IfConsoleOutputFileReporter.writeTestOutput(java.lang.String, boolean, boolean)throwsIOExceptionand thentarget.consumeLine()throws any RuntimeException, this method MUST NOT skip reading the events from the forked JVM; otherwise we could simply lost events e.g. acquire-next-test which means thatForkClientcould hang on waiting for old test to complete and therefore the plugin could be permanently in progress. -
hasErrors
boolean hasErrors() -
throwErrors
- Throws:
IOException
-