Tabnine Logo
HostSpec.version
Code IndexAdd Tabnine to your IDE (free)

How to use
version
method
in
com.yahoo.config.provision.HostSpec

Best Java code snippets using com.yahoo.config.provision.HostSpec.version (Showing top 3 results out of 315)

origin: com.yahoo.vespa/config-model

private HostSpec retire(HostSpec host) {
  return new HostSpec(host.hostname(),
            host.aliases(),
            host.flavor(),
            Optional.of(host.membership().get().retire()),
            host.version());
}
origin: com.yahoo.vespa/config-model

private HostResource addNewHost(HostSpec hostSpec) {
  Host host = Host.createHost(this, hostSpec.hostname());
  HostResource hostResource = new HostResource(host, hostSpec.version());
  hostResource.setFlavor(hostSpec.flavor());
  hostSpec.membership().ifPresent(hostResource::addClusterMembership);
  hostname2host.put(host.getHostname(), hostResource);
  log.log(DEBUG, () -> "Added new host resource for " + host.getHostname() + " with flavor " + hostResource.getFlavor());
  return hostResource;
}
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()));
}
com.yahoo.config.provisionHostSpecversion

Javadoc

Returns the current version of Vespa running on this node, or empty if not known

Popular methods of HostSpec

  • <init>
  • flavor
  • hostname
    Returns the name identifying this host
  • membership
    Returns the membership of this host, or an empty value if not present
  • aliases
    Returns the aliases of this host as an immutable list. This may be empty but never null.

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BoxLayout (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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