Class AdminCommandRequest

    • Field Detail

      • targetId

        private String targetId
        the string identifier of the target.
      • command

        private int command
        the command.
    • Constructor Detail

      • AdminCommandRequest

        public AdminCommandRequest()
      • AdminCommandRequest

        public AdminCommandRequest​(String targetId,
                                   int command,
                                   Properties prop)
        Parameters:
        targetId - Identifier (agentId) of the target.
        command - the command to execute.
        prop - the properties
    • Method Detail

      • getCommand

        public int getCommand()
        Returns:
        the command.
      • getProp

        public Properties getProp()
        Returns:
        the properties
      • getTargetId

        public String getTargetId()
        Returns the string identifier of the target.
        Returns:
        the string identifier of the target.
      • writeTo

        public void writeTo​(OutputStream os)
                     throws IOException
        Description copied from interface: Streamable
        The object implements the writeTo method to write its contents to the output stream.
        Parameters:
        os - the stream to write the object to
        Throws:
        IOException - an error occurs during IO operation.
      • readFrom

        public void readFrom​(InputStream is)
                      throws IOException
        Description copied from interface: Streamable
        The object implements the readFrom method to restore its contents from the input stream.
        Parameters:
        is - the stream to read data from in order to restore the object
        Throws:
        IOException - an error occurs during IO operation.