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

      • dockerImageRepo

        public java.util.Optional<DockerImage> dockerImageRepo()
        Returns the docker image repository part of a docker image we want this cluster to run
      • dockerImage

        public java.util.Optional<java.lang.String> dockerImage()
        Returns the docker image (repository + vespa version) we want this cluster to run
      • 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
      • combinedId

        public java.util.Optional<ClusterSpec.Id> combinedId()
        Returns the ID of the container cluster that is combined with this. This is only present for combined clusters
      • 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 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
      • satisfies

        public boolean satisfies​(ClusterSpec other)
        Returns whether this satisfies other for allocation purposes. Only considers cluster ID and type, other fields are ignored.