Package com.yahoo.vespa.model
Class HostSystem
- java.lang.Object
-
- com.yahoo.config.model.producer.AbstractConfigProducer<Host>
-
- com.yahoo.vespa.model.HostSystem
-
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,ConfigProducer
,Serializable
public class HostSystem extends AbstractConfigProducer<Host>
The parent node for all Host instances, and thus accessible to enable services to get their Host.- Author:
- gjoranv
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostSystem(AbstractConfigProducer<?> parent, String name, com.yahoo.config.model.api.HostProvisioner provisioner, com.yahoo.config.application.api.DeployLogger deployLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBoundHost(HostResource host)
Map<HostResource,com.yahoo.config.provision.ClusterMembership>
allocateHosts(com.yahoo.config.provision.ClusterSpec cluster, com.yahoo.config.provision.Capacity capacity, com.yahoo.config.application.api.DeployLogger logger)
void
dumpPortAllocations()
HostResource
getHost(String hostAlias)
HostResource
getHostByHostname(String name)
Returns the host with the given hostname.List<HostResource>
getHosts()
Returns the hosts owned by the application having this system - i.e all hosts except config serversString
toString()
-
Methods inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
addChild, addConfigId, addDescendantService, addUserConfig, cascadeConfig, dump, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getConfigId, getDescendantServices, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, removeChild, setParent, setUserConfigs, stateIsHosted, validate
-
-
-
-
Constructor Detail
-
HostSystem
public HostSystem(AbstractConfigProducer<?> parent, String name, com.yahoo.config.model.api.HostProvisioner provisioner, com.yahoo.config.application.api.DeployLogger deployLogger)
-
-
Method Detail
-
getHostByHostname
public HostResource getHostByHostname(String name)
Returns the host with the given hostname.- Parameters:
name
- the hostname of the host- Returns:
- the host with the given hostname, or null if no such host
-
getHost
public HostResource getHost(String hostAlias)
-
getHosts
public List<HostResource> getHosts()
Returns the hosts owned by the application having this system - i.e all hosts except config servers
-
dumpPortAllocations
public void dumpPortAllocations()
-
allocateHosts
public Map<HostResource,com.yahoo.config.provision.ClusterMembership> allocateHosts(com.yahoo.config.provision.ClusterSpec cluster, com.yahoo.config.provision.Capacity capacity, com.yahoo.config.application.api.DeployLogger logger)
-
addBoundHost
public void addBoundHost(HostResource host)
-
-