Package com.hubspot.singularity.api

Examples of com.hubspot.singularity.api.SingularityDeployRequest


  private void deploy(String deployId) {
    deploy(deployId, Optional.<Boolean> absent());
  }

  private void deploy(String deployId, Optional<Boolean> unpauseOnDeploy) {
    deployResource.deploy(new SingularityDeployRequest(new SingularityDeployBuilder(requestId, deployId).setCommand(Optional.of("sleep 1")).build(), Optional.<String> absent(), unpauseOnDeploy));
  }
View Full Code Here


    if (deployUnpause.isPresent()) {
      queryParams.add(Pair.of("deployUnpause", Boolean.toString(deployUnpause.get())));
    }

    HttpResponse response = post(requestUri, String.format("new deploy %s", new SingularityDeployKey(requestId, pendingDeploy.getId())),
        Optional.of(new SingularityDeployRequest(pendingDeploy, user, deployUnpause)), Optional.<String> absent());

    return getAndLogRequestAndDeployStatus(response.getAs(SingularityRequestParent.class));
  }
View Full Code Here

TOP

Related Classes of com.hubspot.singularity.api.SingularityDeployRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.