Class TargetVersions
java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.configserver.TargetVersions
Target versions for node upgrades in a zone.
- Author:
- mpolden
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTargetVersions(Map<com.yahoo.config.provision.NodeType, com.yahoo.component.Version> vespaVersions, Map<com.yahoo.config.provision.NodeType, com.yahoo.component.Version> osVersions) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()Optional<com.yahoo.component.Version>osVersion(com.yahoo.config.provision.NodeType type) Returns the target OS version of given node type, if anyOptional<com.yahoo.component.Version>vespaVersion(com.yahoo.config.provision.NodeType type) Returns the target Vespa version of given node type, if anywithOsVersion(com.yahoo.config.provision.NodeType nodeType, com.yahoo.component.Version version) Returns a copy of this with OS version set for given node typewithVespaVersion(com.yahoo.config.provision.NodeType nodeType, com.yahoo.component.Version version) Returns a copy of this with Vespa version set for given node type
-
Field Details
-
EMPTY
-
-
Constructor Details
-
TargetVersions
-
-
Method Details
-
withVespaVersion
public TargetVersions withVespaVersion(com.yahoo.config.provision.NodeType nodeType, com.yahoo.component.Version version) Returns a copy of this with Vespa version set for given node type -
withOsVersion
public TargetVersions withOsVersion(com.yahoo.config.provision.NodeType nodeType, com.yahoo.component.Version version) Returns a copy of this with OS version set for given node type -
osVersion
Returns the target OS version of given node type, if any -
vespaVersion
Returns the target Vespa version of given node type, if any -
equals
-
hashCode
public int hashCode()
-