Package com.yahoo.vespa.model
Class Host
java.lang.Object
com.yahoo.config.model.producer.AbstractConfigProducer<AbstractConfigProducer<?>>
com.yahoo.vespa.model.Host
- All Implemented Interfaces:
com.yahoo.cloud.config.SentinelConfig.Producer
,com.yahoo.config.ConfigInstance.Producer
,ConfigProducer
,Serializable
,Comparable<Host>
public final class Host
extends AbstractConfigProducer<AbstractConfigProducer<?>>
implements com.yahoo.cloud.config.SentinelConfig.Producer, Comparable<Host>
A physical host, 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.AbstractConfigProducer
log
-
Constructor Summary
ConstructorDescriptionHost
(AbstractConfigProducer parent, String hostname) Constructs a new Host instance. -
Method Summary
Modifier and TypeMethodDescriptionint
static Host
createConfigServerHost
(AbstractConfigProducer parent, String hostname) static Host
createHost
(AbstractConfigProducer parent, 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.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
-
Host
Constructs a new Host instance.- Parameters:
parent
- parent AbstractConfigProducer 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>
-