java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.configserver.TargetVersions

public class TargetVersions extends Object
Target versions for node upgrades in a zone.
Author:
mpolden
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TargetVersions
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TargetVersions(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 Type
    Method
    Description
    boolean
     
    int
     
    Optional<com.yahoo.component.Version>
    osVersion(com.yahoo.config.provision.NodeType type)
    Returns the target OS version of given node type, if any
    Optional<com.yahoo.component.Version>
    vespaVersion(com.yahoo.config.provision.NodeType type)
    Returns the target Vespa version of given node type, if any
    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
    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TargetVersions

      public TargetVersions(Map<com.yahoo.config.provision.NodeType,com.yahoo.component.Version> vespaVersions, Map<com.yahoo.config.provision.NodeType,com.yahoo.component.Version> osVersions)
  • 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

      public 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 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object