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
ConstructorsConstructorDescriptionHostSystem(TreeConfigProducer<AnyConfigProducer> parent, String name, com.yahoo.config.model.api.HostProvisioner provisioner, com.yahoo.config.application.api.DeployLogger deployLogger, boolean isHosted) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBoundHost(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) voidReturns the hosts in this systemgetHosts()Returns the hosts owned by the application having this system - i.e. all hosts except config serverstoString()Methods inherited from class com.yahoo.config.model.producer.TreeConfigProducer
addChild, addDescendantService, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getDescendantServices, removeChild, validateMethods inherited from class com.yahoo.config.model.producer.AnyConfigProducer
addConfigId, addUserConfig, cascadeConfig, currentConfigId, findInheritedClassLoader, getConfigId, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, setParent, setUserConfigs, stateIsHostedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.yahoo.vespa.model.ConfigProducer
dump
-
Constructor Details
-
HostSystem
public HostSystem(TreeConfigProducer<AnyConfigProducer> parent, String name, com.yahoo.config.model.api.HostProvisioner provisioner, com.yahoo.config.application.api.DeployLogger deployLogger, boolean isHosted)
-
-
Method Details
-
toString
-
getHost
-
getHosts
Returns the hosts owned by the application having this system - i.e. all hosts except config servers -
getAllHosts
Returns the hosts in this system -
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
-