public class RemoteControlReader extends ExecutionDataReader
ExecutionDataReader
with commands added for runtime remote control.in
Constructor and Description |
---|
RemoteControlReader(InputStream input)
Create a new read based on the given input stream.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
readBlock(byte blockid)
Reads a block of data identified by the given id.
|
void |
setRemoteCommandVisitor(IRemoteCommandVisitor visitor)
Sets an listener for agent commands.
|
read, setExecutionDataVisitor, setSessionInfoVisitor
public RemoteControlReader(InputStream input) throws IOException
input
- input stream to read commands fromIOException
- if the stream does not have a valid headerprotected boolean readBlock(byte blockid) throws IOException
ExecutionDataReader
readBlock
in class ExecutionDataReader
blockid
- block typetrue
if there are more blocks to readIOException
- might be thrown by the underlying input streampublic void setRemoteCommandVisitor(IRemoteCommandVisitor visitor)
visitor
- visitor to retrieve agent commandsCopyright © 2021. All rights reserved.