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

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

origin: spinnaker/halyard

public Publisher getPubsubPublisher(String deploymentName, String pubsubName, String publisherName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).setPublisher(publisherName);
 return getPublisher(filter, publisherName);
}
origin: com.netflix.spinnaker.halyard/halyard-config

 public ProblemSet validateAllSubscriptions(String deploymentName, String pubsubName) {
  NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).withAnySubscription();
  return validateService.validateMatchingFilter(filter);
 }
}
origin: spinnaker/halyard

 public ProblemSet validateAllSubscriptions(String deploymentName, String pubsubName) {
  NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).withAnySubscription();
  return validateService.validateMatchingFilter(filter);
 }
}
origin: spinnaker/halyard

 public ProblemSet validateAllPublishers(String deploymentName, String pubsubName) {
  NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).withAnyPublisher();
  return validateService.validateMatchingFilter(filter);
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

public Subscription getPubsubSubscription(String deploymentName, String pubsubName, String subscriptionName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).setSubscription(subscriptionName);
 return getSubscription(filter, subscriptionName);
}
origin: spinnaker/halyard

public Subscription getPubsubSubscription(String deploymentName, String pubsubName, String subscriptionName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).setSubscription(subscriptionName);
 return getSubscription(filter, subscriptionName);
}
origin: com.netflix.spinnaker.halyard/halyard-config

public ProblemSet validateSubscription(String deploymentName, String pubsubName, String subscriptionName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).setSubscription(subscriptionName);
 return validateService.validateMatchingFilter(filter);
}
origin: spinnaker/halyard

public ProblemSet validateSubscription(String deploymentName, String pubsubName, String subscriptionName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).setSubscription(subscriptionName);
 return validateService.validateMatchingFilter(filter);
}
origin: spinnaker/halyard

public ProblemSet validatePublisher(String deploymentName, String pubsubName, String publisherName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).setPublisher(publisherName);
 return validateService.validateMatchingFilter(filter);
}
origin: spinnaker/halyard

public List<Publisher> getAllPublishers(String deploymentName, String pubsubName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).withAnyPublisher();
 List<Publisher> matchingPublishers = lookupService.getMatchingNodesOfType(filter, Publisher.class);
 if (matchingPublishers.size() == 0) {
  throw new ConfigNotFoundException(
    new ConfigProblemBuilder(Severity.FATAL, "No publishers could be found").build());
 } else {
  return matchingPublishers;
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

public List<Subscription> getAllSubscriptions(String deploymentName, String pubsubName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).withAnySubscription();
 List<Subscription> matchingSubscriptions = lookupService.getMatchingNodesOfType(filter, Subscription.class);
 if (matchingSubscriptions.size() == 0) {
  throw new ConfigNotFoundException(
    new ConfigProblemBuilder(Severity.FATAL, "No subscriptions could be found").build());
 } else {
  return matchingSubscriptions;
 }
}
origin: spinnaker/halyard

public List<Subscription> getAllSubscriptions(String deploymentName, String pubsubName) {
 NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPubsub(pubsubName).withAnySubscription();
 List<Subscription> matchingSubscriptions = lookupService.getMatchingNodesOfType(filter, Subscription.class);
 if (matchingSubscriptions.size() == 0) {
  throw new ConfigNotFoundException(
    new ConfigProblemBuilder(Severity.FATAL, "No subscriptions could be found").build());
 } else {
  return matchingSubscriptions;
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

public ProblemSet validatePubsub(String deploymentName, String pubsubName) {
 NodeFilter filter = new NodeFilter()
   .setDeployment(deploymentName)
   .setPubsub(pubsubName)
   .withAnySubscription()
   .setBakeryDefaults()
   .withAnyBaseImage();
 return validateService.validateMatchingFilter(filter);
}
origin: spinnaker/halyard

public ProblemSet validatePubsub(String deploymentName, String pubsubName) {
 NodeFilter filter = new NodeFilter()
   .setDeployment(deploymentName)
   .setPubsub(pubsubName)
   .withAnySubscription()
   .setBakeryDefaults()
   .withAnyBaseImage();
 return validateService.validateMatchingFilter(filter);
}
origin: com.netflix.spinnaker.halyard/halyard-config

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

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

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

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • CodeWhisperer alternatives
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