Codota Logo
ClusterSpec.vespaVersion
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Path (java.nio.file)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • JComboBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now