Class RemoteControlReader

    • Constructor Detail

      • RemoteControlReader

        public RemoteControlReader​(java.io.InputStream input)
                            throws java.io.IOException
        Create a new read based on the given input stream.
        Parameters:
        input - input stream to read commands from
        Throws:
        java.io.IOException - if the stream does not have a valid header
    • 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 class ExecutionDataReader
        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