Package com.yahoo.vespa.model
Class Host
- All Implemented Interfaces:
com.yahoo.cloud.config.SentinelConfig.Producer,com.yahoo.config.ConfigInstance.Producer,ConfigProducer,Serializable,Comparable<Host>
public final class Host
extends TreeConfigProducer<AnyConfigProducer>
implements com.yahoo.cloud.config.SentinelConfig.Producer, Comparable<Host>
A node with an identity, with some dedicated compute resources, running a set of services.
The identity of a host is its hostname. Hosts are comparable on their host name.
- Author:
- gjoranv
- See Also:
-
Field Summary
FieldsFields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log -
Constructor Summary
ConstructorsConstructorDescriptionHost(TreeConfigProducer<? super Host> parent, String hostname) Constructs a new Host instance. -
Method Summary
Modifier and TypeMethodDescriptionintstatic HostcreateConfigServerHost(HostSystem hostSystem, String hostname) static HostcreateHost(HostSystem hostSystem, String hostname) booleanvoidgetConfig(com.yahoo.cloud.config.SentinelConfig.Builder builder) inthashCode()booleanvoidsetConfigSentinel(ConfigSentinel configSentinel) toString()Returns the string representation of this Host object.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, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.yahoo.vespa.model.ConfigProducer
dump
-
Field Details
-
memoryOverheadGb
public static final double memoryOverheadGb- See Also:
-
-
Constructor Details
-
Host
Constructs a new Host instance.- Parameters:
parent- parent TreeConfigProducer in the config model.hostname- hostname for this host.
-
-
Method Details
-
createConfigServerHost
-
createHost
-
getHostname
-
runsConfigServer
public boolean runsConfigServer() -
toString
Returns the string representation of this Host object. -
getConfig
public void getConfig(com.yahoo.cloud.config.SentinelConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.cloud.config.SentinelConfig.Producer
-
setConfigSentinel
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Host>
-