Class ClusterSpec


  • public final class ClusterSpec
    extends java.lang.Object
    A specification of a cluster - or group in a grouped cluster - to be run on a set of hosts. This is a value object.
    Author:
    bratseth
    • Method Detail

      • vespaVersion

        public com.yahoo.component.Version vespaVersion()
        Returns the version of Vespa that we want this cluster to run
      • group

        public java.util.Optional<ClusterSpec.Group> group()
        Returns the group within the cluster this specifies, or empty to specify the whole cluster
      • isExclusive

        public boolean isExclusive()
        Returns whether the physical hosts running the nodes of this application can also run nodes of other applications. Using exclusive nodes for containers increases security and increases cost.
      • exclusive

        public ClusterSpec exclusive​(boolean exclusive)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • equalsIgnoringGroupAndVespaVersion

        public boolean equalsIgnoringGroupAndVespaVersion​(java.lang.Object o)
        Returns whether this is equal, disregarding the group value and wanted Vespa version