Tabnine Logo
NodeFilter.setMetricStores
Code IndexAdd Tabnine to your IDE (free)

How to use
setMetricStores
method
in
com.netflix.spinnaker.halyard.config.model.v1.node.NodeFilter

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.node.NodeFilter.setMetricStores (Showing top 8 results out of 315)

origin: com.netflix.spinnaker.halyard/halyard-config

public MetricStores getMetricStores(String deploymentName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setMetricStores();
 List<MetricStores> matching = lookupService.getMatchingNodesOfType(filter, MetricStores.class);
 switch (matching.size()) {
  case 0:
   MetricStores metricStores = new MetricStores();
   setMetricStores(deploymentName, metricStores);
   return metricStores;
  case 1:
   return matching.get(0);
  default:
   throw new RuntimeException("It shouldn't be possible to have multiple metricStores nodes. This is a bug.");
 }
}
origin: spinnaker/halyard

public MetricStores getMetricStores(String deploymentName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setMetricStores();
 List<MetricStores> matching = lookupService.getMatchingNodesOfType(filter, MetricStores.class);
 switch (matching.size()) {
  case 0:
   MetricStores metricStores = new MetricStores();
   setMetricStores(deploymentName, metricStores);
   return metricStores;
  case 1:
   return matching.get(0);
  default:
   throw new RuntimeException("It shouldn't be possible to have multiple metricStores nodes. This is a bug.");
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

public ProblemSet validateMetricStores(String deploymentName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setMetricStores();
 return validateService.validateMatchingFilter(filter);
}
origin: spinnaker/halyard

public ProblemSet validateMetricStores(String deploymentName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setMetricStores();
 return validateService.validateMatchingFilter(filter);
}
origin: spinnaker/halyard

 public ProblemSet validateMetricStore(String deploymentName, String metricStoreType) {
  NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setMetricStores().setMetricStore(metricStoreType);
  return validateService.validateMatchingFilter(filter);
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

 public ProblemSet validateMetricStore(String deploymentName, String metricStoreType) {
  NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setMetricStores().setMetricStore(metricStoreType);
  return validateService.validateMatchingFilter(filter);
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

public MetricStore getMetricStore(String deploymentName, String metricStoreType) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setMetricStores().setMetricStore(metricStoreType);
 List<MetricStore> matching = lookupService.getMatchingNodesOfType(filter, MetricStore.class);
 try {
  switch (matching.size()) {
   case 0:
    MetricStore metricStores = MetricStores.translateMetricStoreType(metricStoreType).newInstance();
    setMetricStore(deploymentName, metricStores);
    return metricStores;
   case 1:
    return matching.get(0);
   default:
    throw new RuntimeException("It shouldn't be possible to have multiple metricStore nodes of the same type. This is a bug.");
  }
 } catch (InstantiationException | IllegalAccessException e) {
  throw new HalException(new ConfigProblemBuilder(Severity.FATAL, "Can't create an empty metric store node "
    + "for metricStore type \"" + metricStoreType + "\"").build()
  );
 }
}
origin: spinnaker/halyard

public MetricStore getMetricStore(String deploymentName, String metricStoreType) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setMetricStores().setMetricStore(metricStoreType);
 List<MetricStore> matching = lookupService.getMatchingNodesOfType(filter, MetricStore.class);
 try {
  switch (matching.size()) {
   case 0:
    MetricStore metricStores = MetricStores.translateMetricStoreType(metricStoreType).newInstance();
    setMetricStore(deploymentName, metricStores);
    return metricStores;
   case 1:
    return matching.get(0);
   default:
    throw new RuntimeException("It shouldn't be possible to have multiple metricStore nodes of the same type. This is a bug.");
  }
 } catch (InstantiationException | IllegalAccessException e) {
  throw new HalException(new ConfigProblemBuilder(Severity.FATAL, "Can't create an empty metric store node "
    + "for metricStore type \"" + metricStoreType + "\"").build()
  );
 }
}
com.netflix.spinnaker.halyard.config.model.v1.nodeNodeFiltersetMetricStores

Popular methods of NodeFilter

  • <init>
  • setProvider
  • matches
  • setAccount
  • setApacheSsl
  • setApiSecurity
  • setArtifactAccount
  • setArtifactProvider
  • setAuthnMethod
  • setBakeryDefaults
  • setBaseImage
  • setCanary
  • setBaseImage,
  • setCanary,
  • setCi,
  • setCluster,
  • setDeployment,
  • setDeploymentEnvironment,
  • setFeatures,
  • setHaService,
  • setMaster,
  • setMetricStore

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JButton (javax.swing)
  • Top plugins for Android Studio
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