Codota Logo
ClusterSpec.from
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using com.yahoo.config.provision.ClusterSpec.from (Showing top 2 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

public static ClusterSpec from(Type type, Id id, Group groupId, Version vespaVersion, boolean exclusive) {
  return from(type, id, groupId, vespaVersion, exclusive, Collections.emptySet());
}
origin: com.yahoo.vespa/config-provisioning

private ClusterMembership(String stringValue, Version vespaVersion) {
  String[] components = stringValue.split("/");
  if (components.length < 4 || components.length > 7)
    throw new RuntimeException("Could not parse '" + stringValue + "' to a cluster membership. " +
                  "Expected 'clusterType/clusterId/groupId/index[/retired][/exclusive][/rotationId,...]'");
  boolean exclusive = false;
  Set<RotationName> rotations = Collections.emptySet();
  if (components.length > 4) {
    for (int i = 4; i < components.length; i++) {
      String component = components[i];
      switch (component) {
        case "exclusive": exclusive = true; break;
        case "retired": retired = true; break;
        default: rotations = rotationsFrom(component); break;
      }
    }
  }
  this.cluster = ClusterSpec.from(ClusterSpec.Type.valueOf(components[0]), ClusterSpec.Id.from(components[1]),
                  ClusterSpec.Group.from(Integer.valueOf(components[2])), vespaVersion, exclusive,
                  rotations);
  this.index = Integer.parseInt(components[3]);
  this.stringValue = toStringValue();
}
com.yahoo.config.provisionClusterSpecfrom

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
  • vespaVersion
    Returns the version of Vespa that we want this cluster to run
  • with
  • <init>
  • equals
  • equalsIgnoringGroupAndVespaVersion
    Returns whether this is equal, disregarding the group value and wanted Vespa version
  • exclusive
  • equalsIgnoringGroupAndVespaVersion,
  • exclusive

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JFrame (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
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