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
Fields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log
-
Constructor Summary
ConstructorDescriptionHost
(TreeConfigProducer<? super Host> parent, String hostname) Constructs a new Host instance. -
Method Summary
Modifier and TypeMethodDescriptionint
static Host
createConfigServerHost
(HostSystem hostSystem, String hostname) static Host
createHost
(HostSystem hostSystem, String hostname) boolean
void
getConfig
(com.yahoo.cloud.config.SentinelConfig.Builder builder) int
hashCode()
boolean
void
setConfigSentinel
(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, validate
Methods 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, stateIsHosted
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getConfig
in interfacecom.yahoo.cloud.config.SentinelConfig.Producer
-
setConfigSentinel
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Host>
-