Package com.yahoo.config.model.provision
Class Hosts
- java.lang.Object
-
- com.yahoo.config.model.provision.Hosts
-
public class Hosts extends Object
A collection of hosts- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description Hosts(Collection<Host> hosts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Host>
asCollection()
Returns an immutable collection of the hosts of thisstatic Hosts
readFrom(Reader hostsFile)
Builds host system from a hosts.xml fileString
toString()
-
-
-
Field Detail
-
log
public static final Logger log
-
-
Constructor Detail
-
Hosts
public Hosts(Collection<Host> hosts)
-
-
Method Detail
-
readFrom
public static Hosts readFrom(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 Collection<Host> asCollection()
Returns an immutable collection of the hosts of this
-
-