public class RemoteControlWriter extends ExecutionDataWriter implements IRemoteCommandVisitor
ExecutionDataWriter
with commands added for runtime remote control.Modifier and Type | Field and Description |
---|---|
static byte |
BLOCK_CMDDUMP
Block identifier for dump command
|
static byte |
BLOCK_CMDOK
Block identifier to confirm successful command execution.
|
BLOCK_EXECUTIONDATA, BLOCK_HEADER, BLOCK_SESSIONINFO, FORMAT_VERSION, MAGIC_NUMBER, out
Constructor and Description |
---|
RemoteControlWriter(OutputStream output)
Creates a new writer based on the given output stream.
|
Modifier and Type | Method and 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.
|
flush, getFileHeader, visitClassExecution, visitSessionInfo
public static final byte BLOCK_CMDOK
public static final byte BLOCK_CMDDUMP
public RemoteControlWriter(OutputStream output) throws IOException
output
- stream to write commands toIOException
- if the header can't be writtenpublic void sendCmdOk() throws IOException
IOException
- in case of problems with the remote connectionpublic void visitDumpCommand(boolean dump, boolean reset) throws IOException
IRemoteCommandVisitor
visitDumpCommand
in interface IRemoteCommandVisitor
dump
- true
if the dump should be executedreset
- true
if the reset should be executedIOException
- in case of problems with the remote connectionCopyright © 2023. All rights reserved.