IExecutionDataVisitor, ISessionInfoVisitor, IRemoteCommandVisitorpublic class RemoteControlWriter extends ExecutionDataWriter implements IRemoteCommandVisitor
ExecutionDataWriter with commands added for runtime remote control.| Modifier and Type | Field | 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 | Description |
|---|---|
RemoteControlWriter(java.io.OutputStream output) |
Creates a new writer based on the given output stream.
|
| 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.
|
flush, getFileHeader, visitClassExecution, visitSessionInfopublic static final byte BLOCK_CMDOK
public static final byte BLOCK_CMDDUMP
public RemoteControlWriter(java.io.OutputStream output)
throws java.io.IOException
output - stream to write commands tojava.io.IOException - if the header can't be writtenpublic void sendCmdOk()
throws java.io.IOException
java.io.IOException - in case of problems with the remote connectionpublic void visitDumpCommand(boolean dump,
boolean reset)
throws java.io.IOException
IRemoteCommandVisitorvisitDumpCommand in interface IRemoteCommandVisitordump - true if the dump should be executedreset - true if the reset should be executedjava.io.IOException - in case of problems with the remote connectionCopyright © 2018. All rights reserved.