Codota Logo
AbstractCanaryServiceIntegration.setEnabled
Code IndexAdd Codota to your IDE (free)

How to use
setEnabled
method
in
com.netflix.spinnaker.halyard.config.model.v1.canary.AbstractCanaryServiceIntegration

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.canary.AbstractCanaryServiceIntegration.setEnabled (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: com.netflix.spinnaker.halyard/halyard-cli

 @Override
 protected void executeThis() {
  String currentDeployment = getCurrentDeployment();

  // Disable validation here, since we don't want an illegal config to prevent us from fixing it.
  Canary canary = new OperationHandler<Canary>()
    .setFailureMesssage("Failed to get canary.")
    .setOperation(Daemon.getCanary(currentDeployment, false))
    .get();

  int originalHash = canary.hashCode();

  AbstractCanaryServiceIntegration canaryServiceIntegration = CanaryUtils.getServiceIntegrationByName(canary, currentDeployment, getName(), true);

  canaryServiceIntegration.setEnabled(isEnable());

  if (originalHash == canary.hashCode()) {
   AnsiUi.failure("No changes supplied.");
   return;
  }

  new OperationHandler<Void>()
    .setSuccessMessage("Successfully " + indicativePastPerfectAction() + " canary analysis " + getName() + " service integration.")
    .setFailureMesssage("Failed to " + getCommandName() + " canary analysis " + getName() + " service integration.")
    .setOperation(Daemon.setCanary(currentDeployment, !noValidate, canary))
    .get();
 }
}
origin: spinnaker/halyard

 @Override
 protected void executeThis() {
  String currentDeployment = getCurrentDeployment();

  // Disable validation here, since we don't want an illegal config to prevent us from fixing it.
  Canary canary = new OperationHandler<Canary>()
    .setFailureMesssage("Failed to get canary.")
    .setOperation(Daemon.getCanary(currentDeployment, false))
    .get();

  int originalHash = canary.hashCode();

  AbstractCanaryServiceIntegration canaryServiceIntegration = CanaryUtils.getServiceIntegrationByName(canary, currentDeployment, getName(), true);

  canaryServiceIntegration.setEnabled(isEnable());

  if (originalHash == canary.hashCode()) {
   AnsiUi.failure("No changes supplied.");
   return;
  }

  new OperationHandler<Void>()
    .setSuccessMessage("Successfully " + indicativePastPerfectAction() + " canary analysis " + getName() + " service integration.")
    .setFailureMesssage("Failed to " + getCommandName() + " canary analysis " + getName() + " service integration.")
    .setOperation(Daemon.setCanary(currentDeployment, !noValidate, canary))
    .get();
 }
}
com.netflix.spinnaker.halyard.config.model.v1.canaryAbstractCanaryServiceIntegrationsetEnabled

Popular methods of AbstractCanaryServiceIntegration

  • getAccounts
  • getName
  • getNodeName

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • JPanel (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now