Class 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
    • Method Detail

      • hostname

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

        public List<String> aliases()
        Returns the aliases of this host as an immutable list. This may be empty but never null.
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object