congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ClusterSpec.rotations
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.yahoo.vespa/config-provisioning

protected String toStringValue() {
  return cluster.type().name() +
      "/" + cluster.id().value() +
      (cluster.group().isPresent() ? "/" + cluster.group().get().index() : "") +
      "/" + index +
      ( cluster.isExclusive() ? "/exclusive" : "") +
      ( retired ? "/retired" : "") +
      ( !cluster.rotations().isEmpty() ? "/" + rotationsAsString(cluster.rotations()) : "");
}
origin: com.yahoo.vespa/node-repository

/**
 * Provision load balancer(s) for given application.
 *
 * If the application has multiple container clusters, one load balancer will be provisioned for each cluster.
 */
public Map<LoadBalancerId, LoadBalancer> provision(ApplicationId application) {
  try (Mutex applicationLock = nodeRepository.lock(application)) {
    try (Mutex loadBalancersLock = db.lockLoadBalancers()) {
      Map<LoadBalancerId, LoadBalancer> loadBalancers = new LinkedHashMap<>();
      for (Map.Entry<ClusterSpec, List<Node>> kv : activeContainers(application).entrySet()) {
        LoadBalancer loadBalancer = create(application, kv.getKey().id(), kv.getValue())
            .with(kv.getKey().rotations());
        loadBalancers.put(loadBalancer.id(), loadBalancer);
        db.writeLoadBalancer(loadBalancer);
      }
      return Collections.unmodifiableMap(loadBalancers);
    }
  }
}
com.yahoo.config.provisionClusterSpecrotations

Javadoc

Returns the rotations of which this cluster should be a member

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
  • 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
  • from
  • exclusive,
  • from

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • setScale (BigDecimal)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top plugins for WebStorm
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