congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ClusterSpec.vespaVersion
Code IndexAdd Tabnine to your IDE (free)

How to use
vespaVersion
method
in
com.yahoo.config.provision.ClusterSpec

Best Java code snippets using com.yahoo.config.provision.ClusterSpec.vespaVersion (Showing top 5 results out of 315)

origin: com.yahoo.vespa/config-provisioning

private void toSlime(HostSpec host, Cursor cursor) {
  cursor.setString(hostSpecHostName, host.hostname());
  host.membership().ifPresent(membership -> {
    cursor.setString(hostSpecMembership, membership.stringValue());
    cursor.setString(hostSpecVespaVersion, membership.cluster().vespaVersion().toFullString());
  });
  host.flavor().ifPresent(flavor -> cursor.setString(hostSpecFlavor, flavor.name()));
  host.version().ifPresent(version -> cursor.setString(hostSpecCurrentVespaVersion, version.toFullString()));
}
origin: com.yahoo.vespa/node-repository

node.state() == Node.State.active &&
    node.allocation()
        .map(allocation -> allocation.membership().cluster().vespaVersion().equals(targetVersion.get()))
        .orElse(false))) {
List<HostSpec> hostSpecs = provisioner.prepare(
origin: com.yahoo.vespa/node-repository

metric.set("wantToRestart", wantToRestart ? 1 : 0, context);
Version wantedVersion = allocation.get().membership().cluster().vespaVersion();
double wantedVersionNumber = getVersionAsNumber(wantedVersion);
metric.set("wantedVespaVersion", wantedVersionNumber, context);
origin: com.yahoo.vespa/node-repository

object.setLong("restartGeneration", node.allocation().get().restartGeneration().wanted());
object.setLong("currentRestartGeneration", node.allocation().get().restartGeneration().current());
object.setString("wantedDockerImage", nodeRepository.dockerImage().withTag(node.allocation().get().membership().cluster().vespaVersion()).asString());
object.setString("wantedVespaVersion", node.allocation().get().membership().cluster().vespaVersion().toFullString());
try {
  object.setBool("allowedToBeDown", 
origin: com.yahoo.vespa/node-repository

private void toSlime(Allocation allocation, Cursor object) {
  object.setString(tenantIdKey, allocation.owner().tenant().value());
  object.setString(applicationIdKey, allocation.owner().application().value());
  object.setString(instanceIdKey, allocation.owner().instance().value());
  object.setString(serviceIdKey, allocation.membership().stringValue());
  object.setLong(restartGenerationKey, allocation.restartGeneration().wanted());
  object.setLong(currentRestartGenerationKey, allocation.restartGeneration().current());
  object.setBool(removableKey, allocation.isRemovable());
  object.setString(wantedVespaVersionKey, allocation.membership().cluster().vespaVersion().toString());
}
com.yahoo.config.provisionClusterSpecvespaVersion

Javadoc

Returns the version of Vespa that we want this cluster to run

Popular methods of ClusterSpec

  • group
    Returns the group within the cluster this specifies, or empty to specify the whole cluster
  • id
    Returns the cluster id
  • type
    Returns the cluster type
  • isExclusive
    Returns whether the physical hosts running the nodes of this application can also run nodes of other
  • request
  • rotations
    Returns the rotations of which this cluster should be a member
  • with
  • <init>
  • equals
  • equalsIgnoringGroupAndVespaVersion
    Returns whether this is equal, disregarding the group value and wanted Vespa version
  • exclusive
  • from
  • exclusive,
  • from

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Join (org.hibernate.mapping)
  • Option (scala)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now