Class GetServersIdsReply

    • Field Detail

      • ids

        private int[] ids
        Servers identifiers.
      • names

        private String[] names
      • hostnames

        private String[] hostnames
    • Constructor Detail

      • GetServersIdsReply

        public GetServersIdsReply​(int[] ids,
                                  String[] names,
                                  String[] hostnames)
        Constructs a Monitor_GetServersRep instance.
        Parameters:
        ids - List of the platform's servers' identifiers.
        names - List of the platform's servers' names.
        hostnames - List of the platform's servers' hostnames.
      • GetServersIdsReply

        public GetServersIdsReply()
    • Method Detail

      • getIds

        public final int[] getIds()
        Returns the servers' identifiers.
        Returns:
        List of the platform's servers' identifiers.
      • getNames

        public final String[] getNames()
      • getHostNames

        public final String[] getHostNames()
      • 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.
        Specified by:
        readFrom in interface Streamable
        Overrides:
        readFrom in class AdminReply
        Parameters:
        is - the stream to read data from in order to restore the object
        Throws:
        IOException - an error occurs during IO operation.
      • 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.
        Specified by:
        writeTo in interface Streamable
        Overrides:
        writeTo in class AdminReply
        Parameters:
        os - the stream to write the object to
        Throws:
        IOException - an error occurs during IO operation.