Class DefaultCommandReader
java.lang.Object
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.AbstractCommandReader
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.DefaultCommandReader
- All Implemented Interfaces:
Closeable, AutoCloseable, NotifiableTestStream, org.apache.maven.surefire.extensions.CommandReader
- Direct Known Subclasses:
TestLessInputStream, TestProvidingInputStream
Reader stream sends commands to forked jvm std-
input-stream.- Since:
- 2.19
- Author:
- Tibor Digana (tibor17)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPossibly waiting for next command (seenextCommand()) unless the stream is atomically closed (seeCommandReader.isClosed()returnstrue) before this method has returned.protected booleanOpposite toCommandReader.isClosed().protected abstract org.apache.maven.surefire.api.booter.Commandorg.apache.maven.surefire.api.booter.CommandUsed by single thread in StreamFeeder class.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.surefire.extensions.CommandReader
close, isClosedMethods inherited from interface NotifiableTestStream
acknowledgeByeEventReceived, noop, provideNewTest, shutdown, skipSinceNextTest
-
Constructor Details
-
DefaultCommandReader
public DefaultCommandReader()
-
-
Method Details
-
canContinue
protected boolean canContinue()Opposite toCommandReader.isClosed().- Returns:
trueif not closed
-
beforeNextCommand
Possibly waiting for next command (seenextCommand()) unless the stream is atomically closed (seeCommandReader.isClosed()returnstrue) before this method has returned.- Throws:
IOException- stream error while waiting for notification regarding next test required by forked jvm
-
nextCommand
protected abstract org.apache.maven.surefire.api.booter.Command nextCommand() -
readNextCommand
Used by single thread in StreamFeeder class.- Returns:
-