Class TestLessInputStream
java.lang.Object
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.AbstractCommandReader
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.DefaultCommandReader
org.apache.maven.plugin.surefire.booterclient.lazytestprovider.TestLessInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,NotifiableTestStream
,CommandReader
Dispatches commands without tests.
- Since:
- 2.19
- Author:
- Tibor Digana (tibor17)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Buildsstreams
, registers cachable commands and provides accessible API to dispatch immediate commands to all atomically alive streams. -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
Possibly waiting for next command (seeDefaultCommandReader.nextCommand()
) unless the stream is atomically closed (seeCommandReader.isClosed()
returnstrue
) before this method has returned.void
close()
boolean
isClosed()
protected Command
void
noop()
void
Forked jvm notifies master process to provide a new test.void
void
Sends an event to a fork jvm in order to skip tests.Methods inherited from class org.apache.maven.plugin.surefire.booterclient.lazytestprovider.DefaultCommandReader
canContinue, readNextCommand
-
Method Details
-
provideNewTest
public void provideNewTest()Description copied from interface:NotifiableTestStream
Forked jvm notifies master process to provide a new test.
NotifiesTestProvidingInputStream
in order to dispatch a new test back to the forked jvm (particular fork which hits this call); or do nothing inTestLessInputStream
. -
skipSinceNextTest
public void skipSinceNextTest()Description copied from interface:NotifiableTestStream
Sends an event to a fork jvm in order to skip tests. Returns immediately without blocking. -
shutdown
-
noop
public void noop() -
acknowledgeByeEventReceived
public void acknowledgeByeEventReceived() -
isClosed
public boolean isClosed() -
nextCommand
- Specified by:
nextCommand
in classDefaultCommandReader
-
beforeNextCommand
Description copied from class:DefaultCommandReader
Possibly waiting for next command (seeDefaultCommandReader.nextCommand()
) unless the stream is atomically closed (seeCommandReader.isClosed()
returnstrue
) before this method has returned.- Overrides:
beforeNextCommand
in classDefaultCommandReader
- Throws:
IOException
- stream error while waiting for notification regarding next test required by forked jvm
-
close
public void close()
-