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, 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 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 CommandReader
close, isClosedMethods inherited from interface NotifiableTestStream
acknowledgeByeEventReceived, noop, provideNewTest, shutdown, skipSinceNextTest
-
Constructor Details
-
DefaultCommandReader
public DefaultCommandReader()
-
-
Method Details
-
canContinue
-
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
-
readNextCommand
Used by single thread in StreamFeeder class.- Returns:
-