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 void
Possibly waiting for next command (seenextCommand()
) unless the stream is atomically closed (seeCommandReader.isClosed()
returnstrue
) before this method has returned.protected boolean
Opposite toCommandReader.isClosed()
.protected abstract Command
Used by single thread in StreamFeeder class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.surefire.extensions.CommandReader
close, isClosed
Methods inherited from interface org.apache.maven.plugin.surefire.booterclient.lazytestprovider.NotifiableTestStream
acknowledgeByeEventReceived, noop, provideNewTest, shutdown, skipSinceNextTest
-
Constructor Details
-
DefaultCommandReader
public DefaultCommandReader()
-
-
Method Details
-
canContinue
protected boolean canContinue()Opposite toCommandReader.isClosed()
.- Returns:
true
if 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
-
readNextCommand
Used by single thread in StreamFeeder class.- Returns:
- Throws:
IOException
-