Class Hosts


  • public class Hosts
    extends java.lang.Object
    A collection of hosts
    Author:
    bratseth
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.logging.Logger log  
    • Constructor Summary

      Constructors 
      Constructor Description
      Hosts​(java.util.Collection<Host> hosts)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<Host> asCollection()
      Returns an immutable collection of the hosts of this
      static Hosts readFrom​(java.io.Reader hostsFile)
      Builds host system from a hosts.xml file
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • log

        public static final java.util.logging.Logger log
    • Constructor Detail

      • Hosts

        public Hosts​(java.util.Collection<Host> hosts)
    • Method Detail

      • readFrom

        public static Hosts readFrom​(java.io.Reader hostsFile)
        Builds host system from a hosts.xml file
        Parameters:
        hostsFile - a reader for host from application package
        Returns:
        the HostSystem for this application package
      • asCollection

        public java.util.Collection<Host> asCollection()
        Returns an immutable collection of the hosts of this
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object