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

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

Best Java code snippets using com.yahoo.config.provision.ClusterSpec.isExclusive (Showing top 3 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/node-repository

/**
 * If a parent host is given, and it hosts another tenant with an application which requires exclusive access
 * to the physical host, then we cannot host this application on it.
 */
private boolean exclusiveTo(TenantName tenant, Optional<String> parentHostname) {
  if ( ! parentHostname.isPresent()) return true;
  for (Node nodeOnHost : nodeRepository.list().childrenOf(parentHostname.get())) {
    if ( ! nodeOnHost.allocation().isPresent()) continue;
    if ( nodeOnHost.allocation().get().membership().cluster().isExclusive() &&
       ! nodeOnHost.allocation().get().owner().tenant().equals(tenant))
      return false;
  }
  return true;
}
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

Flavor flavor = capacityPolicies.decideFlavor(requestedCapacity, cluster);
log.log(LogLevel.DEBUG, () -> "Decided flavor for requested tenant nodes: " + flavor);
boolean exclusive = capacityPolicies.decideExclusivity(cluster.isExclusive());
com.yahoo.config.provisionClusterSpecisExclusive

Javadoc

Returns whether the physical hosts running the nodes of this application can also run nodes of other applications. Using exclusive nodes for containers increases security and increases cost.

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • requestLocationUpdates (LocationManager)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JLabel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
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