Package com.cloudcontrolled.api.client

Examples of com.cloudcontrolled.api.client.CloudControlClient


    log.info("Successfully pushed refs of " + deploymentQualifier + " with branch " + retrieveBranch() + " to " + remoteRepository + " on CloudControl PaaS.");
  }

  private String retrieveRemoteRepositoryLocation() throws MojoFailureException, MojoExecutionException {
    CloudControlClient client = CloudControlSupport.createCloudControlClient();
    ApplicationRequest applicationRequest = CloudControlSupport.createApplicationRequest(application);

    ApplicationResponse applicationResponse = null;
    try {
      applicationResponse = client.send(applicationRequest);

      if (applicationResponse.isError()) {
        throw new MojoFailureException(applicationResponse.getContent());
      }
    } catch (CloudControlClientException ccce) {
View Full Code Here


    }

    String deploymentQualifier = application + (deployment != null ? ":" + deployment + (commitId != null ? ":" + commitId : "") : "");
    log.info("Deploying " + deploymentQualifier + " to CloudControl PaaS.");

    CloudControlClient client = CloudControlSupport.createCloudControlClient();
    UpdateDeploymentRequest request = CloudControlSupport.createUpdateDeploymentRequest(application, deployment, commitId);

    UpdateDeploymentResponse response = null;
    try {
      response = client.send(request);

      if (response.isError()) {
        throw new MojoFailureException(response.getContent());
      }
    } catch (CloudControlClientException ccce) {
View Full Code Here

   * @return a {@link com.cloudcontrolled.api.client.CloudControlClient}
   *         object.
   */
  public static CloudControlClient createCloudControlClient() {
    Credentials credentials = retrieveCredentials();
    CloudControlClient cloudControlClient = new CloudControlClient(credentials);

    return cloudControlClient;
  }
View Full Code Here

TOP

Related Classes of com.cloudcontrolled.api.client.CloudControlClient

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.