Package com.yahoo.vespa.model
Class HostSystem
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,ConfigProducer
,Serializable
The parent node for all Host instances, and thus accessible
to enable services to get their Host.
- Author:
- gjoranv
- See Also:
-
Constructor Summary
ConstructorDescriptionHostSystem
(AbstractConfigProducer<?> parent, String name, com.yahoo.config.model.api.HostProvisioner provisioner, com.yahoo.config.application.api.DeployLogger deployLogger, boolean isHosted) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
getHostByHostname
(String name) Returns the host with the given hostname.getHosts()
Returns the hosts owned by the application having this system - i.e.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 Details
-
HostSystem
public HostSystem(AbstractConfigProducer<?> parent, String name, com.yahoo.config.model.api.HostProvisioner provisioner, com.yahoo.config.application.api.DeployLogger deployLogger, boolean isHosted)
-
-
Method Details
-
getHostByHostname
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
-
toString
-
getHost
-
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
-