Class HostSpec

java.lang.Object
com.yahoo.config.provision.HostSpec
All Implemented Interfaces:
Comparable<HostSpec>

public class HostSpec extends Object implements Comparable<HostSpec>
A specification of a host and its role. Equality and order is determined by the host name.
Author:
hmusum
  • Constructor Details

  • Method Details

    • hostname

      public String hostname()
      Returns the name identifying this host
    • realResources

      public NodeResources realResources()
      The real resources available for Vespa processes on this node, after subtracting infrastructure overhead.
    • advertisedResources

      public NodeResources advertisedResources()
      The total advertised resources of this node, typically matching what's requested.
    • version

      public Optional<com.yahoo.component.Version> version()
      Returns the current version of Vespa running on this node, or empty if not known
    • membership

      public Optional<ClusterMembership> membership()
      Returns the membership of this host, or an empty value if not present
    • networkPorts

      public Optional<NetworkPorts> networkPorts()
      Returns the network port allocations on this host, or empty if not present
    • requestedResources

      public Optional<NodeResources> requestedResources()
      Returns the requested resources leading to this host being provisioned, or empty if unspecified
    • dockerImageRepo

      public Optional<DockerImage> dockerImageRepo()
    • withPorts

      public HostSpec withPorts(Optional<NetworkPorts> ports)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(HostSpec other)
      Specified by:
      compareTo in interface Comparable<HostSpec>