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
ExecutionDataReader
with commands added for runtime remote control.
-
-
Field Summary
Fields Modifier and Type Field Description private IRemoteCommandVisitor
remoteCommandVisitor
-
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 boolean
readBlock(byte blockid)
Reads a block of data identified by the given id.private void
readDumpCommand()
void
setRemoteCommandVisitor(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.IOException
Description copied from class:ExecutionDataReader
Reads a block of data identified by the given id. Subclasses may overwrite this method to support additional block types.- Overrides:
readBlock
in classExecutionDataReader
- Parameters:
blockid
- block type- Returns:
true
if 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
-
-