Package com.yahoo.config.provision
Class ClusterSpec
java.lang.Object
com.yahoo.config.provision.ClusterSpec
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
Identifier of a group within a clusterstatic final class
static enum
A cluster type -
Method Summary
Modifier and TypeMethodDescriptionReturns the ID of the container cluster that is combined with this.Returns the docker image (repository + vespa version) we want this cluster to runReturns the docker image repository part of a docker image we want this cluster to runboolean
exclusive
(boolean exclusive) Deprecated.group()
Returns the group within the cluster this specifies, or empty to specify the whole clusterint
hashCode()
id()
Returns the cluster idboolean
Returns whether the physical hosts running the nodes of this application can also run nodes of other applications.boolean
Returns whether this cluster has statestatic ClusterSpec.Builder
request
(ClusterSpec.Type type, ClusterSpec.Id id) Creates a ClusterSpec when requesting a clusterboolean
satisfies
(ClusterSpec other) Returns whether this satisfies other for allocation purposes.static ClusterSpec.Builder
specification
(ClusterSpec.Type type, ClusterSpec.Id id) Creates a ClusterSpec for an existing cluster, group id and Vespa version needs to be settoString()
type()
Returns the cluster typecom.yahoo.component.Version
Returns the version of Vespa that we want this cluster to runwith
(Optional<ClusterSpec.Group> newGroup) withExclusivity
(boolean exclusive) Returns any additional zone endpoint settings for application container clusters.
-
Method Details
-
type
Returns the cluster type -
id
Returns the cluster id -
dockerImageRepo
Returns the docker image repository part of a docker image we want this cluster to run -
dockerImage
Returns the docker image (repository + vespa version) we want this cluster to run -
zoneEndpoint
Returns any additional zone endpoint settings for application container clusters. -
vespaVersion
public com.yahoo.component.Version vespaVersion()Returns the version of Vespa that we want this cluster to run -
group
Returns the group within the cluster this specifies, or empty to specify the whole cluster -
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. -
isStateful
public boolean isStateful()Returns whether this cluster has state -
with
-
withExclusivity
-
exclusive
Deprecated. -
request
Creates a ClusterSpec when requesting a cluster -
specification
Creates a ClusterSpec for an existing cluster, group id and Vespa version needs to be set -
toString
-
equals
-
hashCode
public int hashCode() -
satisfies
Returns whether this satisfies other for allocation purposes. Only considers cluster ID and type, other fields are ignored.
-