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

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

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

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

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

public ProblemSet validatePersistentStorage(String deploymentName) {
 PersistentStorage storage = getPersistentStorage(deploymentName);
 NodeFilter filter = new NodeFilter()
   .setDeployment(deploymentName)
   .setPersistentStorage();
 if (storage.getPersistentStoreType() != null) {
   filter.setPersistentStore(storage.getPersistentStoreType().getId());
 }
 return validateService.validateMatchingFilter(filter);
}
origin: com.netflix.spinnaker.halyard/halyard-config

public ProblemSet validatePersistentStorage(String deploymentName) {
 PersistentStorage storage = getPersistentStorage(deploymentName);
 NodeFilter filter = new NodeFilter()
   .setDeployment(deploymentName)
   .setPersistentStorage();
 if (storage.getPersistentStoreType() != null) {
   filter.setPersistentStore(storage.getPersistentStoreType().getId());
 }
 return validateService.validateMatchingFilter(filter);
}
com.netflix.spinnaker.halyard.config.model.v1.nodeNodeFiltersetPersistentStorage

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

  • Finding current android device location
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top Sublime Text plugins
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