Class TargetVersions
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.configserver.TargetVersions
-
public class TargetVersions extends java.lang.ObjectTarget versions for node upgrades in a zone.- Author:
- mpolden
-
-
Field Summary
Fields Modifier and Type Field Description static TargetVersionsEMPTY
-
Constructor Summary
Constructors Constructor Description TargetVersions(java.util.Map<com.yahoo.config.provision.NodeType,com.yahoo.component.Version> vespaVersions, java.util.Map<com.yahoo.config.provision.NodeType,com.yahoo.component.Version> osVersions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()java.util.Optional<com.yahoo.component.Version>osVersion(com.yahoo.config.provision.NodeType type)Returns the target OS version of given node type, if anyjava.util.Optional<com.yahoo.component.Version>vespaVersion(com.yahoo.config.provision.NodeType type)Returns the target Vespa version of given node type, if anyTargetVersionswithOsVersion(com.yahoo.config.provision.NodeType nodeType, com.yahoo.component.Version version)Returns a copy of this with OS version set for given node typeTargetVersionswithVespaVersion(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 Detail
-
EMPTY
public static final TargetVersions EMPTY
-
-
Method Detail
-
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
public java.util.Optional<com.yahoo.component.Version> osVersion(com.yahoo.config.provision.NodeType type)
Returns the target OS version of given node type, if any
-
vespaVersion
public java.util.Optional<com.yahoo.component.Version> vespaVersion(com.yahoo.config.provision.NodeType type)
Returns the target Vespa version of given node type, if any
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-