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

How to use
setHaService
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.setHaService (Showing top 4 results out of 315)

origin: spinnaker/halyard

public ProblemSet validateHaService(String deploymentName, String serviceName) {
 NodeFilter filter = new NodeFilter()
   .setDeployment(deploymentName)
   .setDeploymentEnvironment()
   .setHaService(serviceName);
 return validateService.validateMatchingFilter(filter);
}
origin: com.netflix.spinnaker.halyard/halyard-config

public ProblemSet validateHaService(String deploymentName, String serviceName) {
 NodeFilter filter = new NodeFilter()
   .setDeployment(deploymentName)
   .setDeploymentEnvironment()
   .setHaService(serviceName);
 return validateService.validateMatchingFilter(filter);
}
origin: com.netflix.spinnaker.halyard/halyard-config

public HaService getHaService(String deploymentName, String serviceName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setDeploymentEnvironment().setHaService(serviceName);
 List<HaService> matching = lookupService.getMatchingNodesOfType(filter, HaService.class);
 switch (matching.size()) {
  case 0:
   throw new ConfigNotFoundException(new ConfigProblemBuilder(Severity.FATAL,
     "No high availability service with name \"" + serviceName + "\" could be found")
     .setRemediation("Create a new high availability service with name \"" + serviceName + "\"").build());
  case 1:
   return matching.get(0);
  default:
   throw new IllegalConfigException(new ConfigProblemBuilder(Severity.FATAL,
     "More than one high availability service with name \"" + serviceName + "\" found")
     .setRemediation("Manually delete or rename duplicate high availability services with name \"" + serviceName + "\" in your halconfig file").build());
 }
}
origin: spinnaker/halyard

public HaService getHaService(String deploymentName, String serviceName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setDeploymentEnvironment().setHaService(serviceName);
 List<HaService> matching = lookupService.getMatchingNodesOfType(filter, HaService.class);
 switch (matching.size()) {
  case 0:
   throw new ConfigNotFoundException(new ConfigProblemBuilder(Severity.FATAL,
     "No high availability service with name \"" + serviceName + "\" could be found")
     .setRemediation("Create a new high availability service with name \"" + serviceName + "\"").build());
  case 1:
   return matching.get(0);
  default:
   throw new IllegalConfigException(new ConfigProblemBuilder(Severity.FATAL,
     "More than one high availability service with name \"" + serviceName + "\" found")
     .setRemediation("Manually delete or rename duplicate high availability services with name \"" + serviceName + "\" in your halconfig file").build());
 }
}
com.netflix.spinnaker.halyard.config.model.v1.nodeNodeFiltersetHaService

Popular methods of NodeFilter

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

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Notification (javax.management)
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JPanel (javax.swing)
  • From CI to AI: The AI layer in your organization
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