Tabnine Logo
RedisService.flushKeySpace
Code IndexAdd Tabnine to your IDE (free)

How to use
flushKeySpace
method
in
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.service.RedisService

Best Java code snippets using com.netflix.spinnaker.halyard.deploy.spinnaker.v1.service.RedisService.flushKeySpace (Showing top 4 results out of 315)

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

@Override
public void flushInfrastructureCaches(DistributedServiceProvider<T> serviceProvider,
  AccountDeploymentDetails<T> deploymentDetails, SpinnakerRuntimeSettings runtimeSettings) {
 try {
  Jedis jedis = (Jedis) serviceProvider
    .getDeployableService(SpinnakerService.Type.REDIS)
    .connectToPrimaryService(deploymentDetails, runtimeSettings);
  RedisService.flushKeySpace(jedis, "com.netflix.spinnaker.clouddriver*");
 } catch (Exception e) {
  throw new HalException(Problem.Severity.FATAL,
    "Failed to flush redis cache: " + e.getMessage());
 }
}
origin: spinnaker/halyard

@Override
public void flushInfrastructureCaches(DistributedServiceProvider<T> serviceProvider,
  AccountDeploymentDetails<T> deploymentDetails, SpinnakerRuntimeSettings runtimeSettings) {
 try {
  Jedis jedis = (Jedis) serviceProvider
    .getDeployableService(SpinnakerService.Type.REDIS)
    .connectToPrimaryService(deploymentDetails, runtimeSettings);
  RedisService.flushKeySpace(jedis, "com.netflix.spinnaker.clouddriver*");
 } catch (Exception e) {
  throw new HalException(Problem.Severity.FATAL,
    "Failed to flush redis cache: " + e.getMessage());
 }
}
origin: spinnaker/halyard

 @Override
 public void flushInfrastructureCaches(LocalServiceProvider serviceProvider, DeploymentDetails deploymentDetails, SpinnakerRuntimeSettings runtimeSettings) {
  try {
   Jedis jedis = new Jedis(runtimeSettings
     .getServiceSettings((SpinnakerService) serviceProvider.getLocalService(SpinnakerService.Type.REDIS))
     .getBaseUrl());

   RedisService.flushKeySpace(jedis, ClouddriverService.REDIS_KEY_SPACE);
  } catch (Exception e) {
   throw new HalException(Problem.Severity.FATAL, "Unable to flush key space: " + e.getMessage(), e);
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 public void flushInfrastructureCaches(LocalServiceProvider serviceProvider, DeploymentDetails deploymentDetails, SpinnakerRuntimeSettings runtimeSettings) {
  try {
   Jedis jedis = new Jedis(runtimeSettings
     .getServiceSettings((SpinnakerService) serviceProvider.getLocalService(SpinnakerService.Type.REDIS))
     .getBaseUrl());

   RedisService.flushKeySpace(jedis, ClouddriverService.REDIS_KEY_SPACE);
  } catch (Exception e) {
   throw new HalException(Problem.Severity.FATAL, "Unable to flush key space: " + e.getMessage(), e);
  }
 }
}
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.serviceRedisServiceflushKeySpace

Popular methods of RedisService

    Popular in Java

    • Making http post requests using okhttp
    • notifyDataSetChanged (ArrayAdapter)
    • findViewById (Activity)
    • getSharedPreferences (Context)
    • FileNotFoundException (java.io)
      Thrown when a file specified by a program cannot be found.
    • UnknownHostException (java.net)
      Thrown when a hostname can not be resolved.
    • Permission (java.security)
      Legacy security code; do not use.
    • BlockingQueue (java.util.concurrent)
      A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
    • Response (javax.ws.rs.core)
      Defines the contract between a returned instance and the runtime when an application needs to provid
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    • Best plugins for Eclipse
    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