Package com.yahoo.config.provision
Class HostSpec
java.lang.Object
com.yahoo.config.provision.HostSpec
- All Implemented Interfaces:
Comparable<HostSpec>
A specification of a host and its role.
Equality and order is determined by the host name.
- Author:
- hmusum
-
Constructor Summary
ConstructorDescriptionHostSpec
(String hostname, NodeResources realResources, NodeResources advertisedResources, NodeResources requestedResources, ClusterMembership membership, Optional<com.yahoo.component.Version> version, Optional<NetworkPorts> networkPorts, Optional<DockerImage> dockerImageRepo) Create a host in a hosted systemDeprecated.HostSpec
(String hostname, Optional<NetworkPorts> networkPorts) Create a host in a non-cloud system, where hosts are specified in config -
Method Summary
Modifier and TypeMethodDescriptionThe total advertised resources of this node, typically matching what's requested.int
boolean
int
hashCode()
hostname()
Returns the name identifying this hostReturns the membership of this host, or an empty value if not presentReturns the network port allocations on this host, or empty if not presentThe real resources available for Vespa processes on this node, after subtracting infrastructure overhead.Returns the requested resources leading to this host being provisioned, or empty if unspecifiedtoString()
Optional<com.yahoo.component.Version>
version()
Returns the current version of Vespa running on this node, or empty if not knownwithPorts
(Optional<NetworkPorts> ports)
-
Constructor Details
-
HostSpec
Create a host in a non-cloud system, where hosts are specified in config -
HostSpec
@Deprecated public HostSpec(String hostname, List<String> ignored, Optional<NetworkPorts> networkPorts) Deprecated. -
HostSpec
public HostSpec(String hostname, NodeResources realResources, NodeResources advertisedResources, NodeResources requestedResources, ClusterMembership membership, Optional<com.yahoo.component.Version> version, Optional<NetworkPorts> networkPorts, Optional<DockerImage> dockerImageRepo) Create a host in a hosted system
-
-
Method Details
-
hostname
Returns the name identifying this host -
realResources
The real resources available for Vespa processes on this node, after subtracting infrastructure overhead. -
advertisedResources
The total advertised resources of this node, typically matching what's requested. -
version
Returns the current version of Vespa running on this node, or empty if not known -
membership
Returns the membership of this host, or an empty value if not present -
networkPorts
Returns the network port allocations on this host, or empty if not present -
requestedResources
Returns the requested resources leading to this host being provisioned, or empty if unspecified -
dockerImageRepo
-
withPorts
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<HostSpec>
-