Package com.yahoo.config.model.provision
Class Hosts
- java.lang.Object
-
- com.yahoo.config.model.provision.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
-
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 thisstatic Hosts
readFrom(java.io.Reader hostsFile)
Builds host system from a hosts.xml filejava.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
-