Package org.jacoco.core.runtime
Class RemoteControlWriter
- java.lang.Object
-
- org.jacoco.core.data.ExecutionDataWriter
-
- org.jacoco.core.runtime.RemoteControlWriter
-
- All Implemented Interfaces:
IExecutionDataVisitor
,ISessionInfoVisitor
,IRemoteCommandVisitor
public class RemoteControlWriter extends ExecutionDataWriter implements IRemoteCommandVisitor
ExecutionDataWriter
with commands added for runtime remote control.
-
-
Field Summary
Fields Modifier and Type Field Description static byte
BLOCK_CMDDUMP
Block identifier for dump commandstatic byte
BLOCK_CMDOK
Block identifier to confirm successful command execution.-
Fields inherited from class org.jacoco.core.data.ExecutionDataWriter
BLOCK_EXECUTIONDATA, BLOCK_HEADER, BLOCK_SESSIONINFO, FORMAT_VERSION, MAGIC_NUMBER, out
-
-
Constructor Summary
Constructors Constructor Description RemoteControlWriter(java.io.OutputStream output)
Creates a new writer based on the given output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendCmdOk()
Sends a confirmation that a commands has been successfully executed and the response is completed.void
visitDumpCommand(boolean dump, boolean reset)
Requests a execution data dump with an optional reset.-
Methods inherited from class org.jacoco.core.data.ExecutionDataWriter
flush, getFileHeader, visitClassExecution, visitSessionInfo
-
-
-
-
Field Detail
-
BLOCK_CMDOK
public static final byte BLOCK_CMDOK
Block identifier to confirm successful command execution.- See Also:
- Constant Field Values
-
BLOCK_CMDDUMP
public static final byte BLOCK_CMDDUMP
Block identifier for dump command- See Also:
- Constant Field Values
-
-
Method Detail
-
sendCmdOk
public void sendCmdOk() throws java.io.IOException
Sends a confirmation that a commands has been successfully executed and the response is completed.- Throws:
java.io.IOException
- in case of problems with the remote connection
-
visitDumpCommand
public void visitDumpCommand(boolean dump, boolean reset) throws java.io.IOException
Description copied from interface:IRemoteCommandVisitor
Requests a execution data dump with an optional reset.- Specified by:
visitDumpCommand
in interfaceIRemoteCommandVisitor
- Parameters:
dump
-true
if the dump should be executedreset
-true
if the reset should be executed- Throws:
java.io.IOException
- in case of problems with the remote connection
-
-