Package org.jacoco.core.runtime
Class RemoteControlReader
- java.lang.Object
-
- org.jacoco.core.data.ExecutionDataReader
-
- org.jacoco.core.runtime.RemoteControlReader
-
public class RemoteControlReader extends ExecutionDataReader
ExecutionDataReaderwith commands added for runtime remote control.
-
-
Field Summary
Fields Modifier and Type Field Description private IRemoteCommandVisitorremoteCommandVisitor-
Fields inherited from class org.jacoco.core.data.ExecutionDataReader
in
-
-
Constructor Summary
Constructors Constructor Description RemoteControlReader(java.io.InputStream input)Create a new read based on the given input stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanreadBlock(byte blockid)Reads a block of data identified by the given id.private voidreadDumpCommand()voidsetRemoteCommandVisitor(IRemoteCommandVisitor visitor)Sets an listener for agent commands.-
Methods inherited from class org.jacoco.core.data.ExecutionDataReader
read, setExecutionDataVisitor, setSessionInfoVisitor
-
-
-
-
Field Detail
-
remoteCommandVisitor
private IRemoteCommandVisitor remoteCommandVisitor
-
-
Method Detail
-
readBlock
protected boolean readBlock(byte blockid) throws java.io.IOExceptionDescription copied from class:ExecutionDataReaderReads a block of data identified by the given id. Subclasses may overwrite this method to support additional block types.- Overrides:
readBlockin classExecutionDataReader- Parameters:
blockid- block type- Returns:
trueif there are more blocks to read- Throws:
java.io.IOException- might be thrown by the underlying input stream
-
setRemoteCommandVisitor
public void setRemoteCommandVisitor(IRemoteCommandVisitor visitor)
Sets an listener for agent commands.- Parameters:
visitor- visitor to retrieve agent commands
-
readDumpCommand
private void readDumpCommand() throws java.io.IOException- Throws:
java.io.IOException
-
-