Package com.amazonaws.services.elasticbeanstalk.model

Examples of com.amazonaws.services.elasticbeanstalk.model.CreateEnvironmentResult


    if (getLog().isInfoEnabled())
      getLog().info(
          "Creating a new environment on " + cnamePrefixToCreate
              + ".elasticbeanstalk.com");

    CreateEnvironmentResult createEnvResult = createEnvironment(cnamePrefixToCreate);

    /*
     * Waits for completion
     */
    EnvironmentDescription newEnvDesc = null;

    try {
      newEnvDesc = waitForEnvironment(createEnvResult.getEnvironmentId());
    } catch (Exception exc) {
      /*
       * Terminates the failed launched environment
       */
      terminateAndWaitForEnvironment(createEnvResult.getEnvironmentId());

      handleException(exc);

      return null;
    }
View Full Code Here


  @MojoParameter(expression="${beanstalk.templateName}")
  String templateName;

  @Override
  protected Object executeInternal() throws AbstractMojoExecutionException {
    CreateEnvironmentResult result = createEnvironment(cnamePrefix);

    return result;
  }
View Full Code Here

 
  @Override
  protected Object executeInternal() throws AbstractMojoExecutionException {
        versionLabel = lookupVersionLabel(applicationName, versionLabel);

    CreateEnvironmentResult result = createEnvironment(cnamePrefix, this.environmentName);

    return result;
  }
View Full Code Here

   
    CreateEnvironmentContext context = builder.build();

    CreateEnvironmentCommand command = new CreateEnvironmentCommand(this);

    CreateEnvironmentResult result = command.execute(context);
   
    if (waitForReady) {
      WaitForEnvironmentContext ctx = new WaitForEnvironmentContextBuilder()//
          .withEnvironmentRef(result.getEnvironmentId())//
          .withApplicationName(result.getApplicationName())//
          .withHealth("Green")//
          .withStatusToWaitFor("Ready")//
          .build();

      new WaitForEnvironmentCommand(this).execute(ctx);
View Full Code Here

    // Disable parent lookup - We're CREATING, mind that!
  }
 
  @Override
  protected Object executeInternal() throws AbstractMojoExecutionException {
    CreateEnvironmentResult result = createEnvironment(cnamePrefix, this.environmentName);

    return result;
  }
View Full Code Here

    // Disable parent lookup - We're CREATING, mind that!
  }
 
  @Override
  protected Object executeInternal() throws AbstractMojoExecutionException {
    CreateEnvironmentResult result = createEnvironment(cnamePrefix, this.environmentName);

    return result;
  }
View Full Code Here

    String newEnvironmentName = getNewEnvironmentName(this.environmentName);

    if (getLog().isInfoEnabled())
      getLog().info("And it'll be named " + newEnvironmentName);

    CreateEnvironmentResult createEnvResult = createEnvironment(
        cnamePrefixToCreate, newEnvironmentName);

    /*
     * Waits for completion
     */
    EnvironmentDescription newEnvDesc = null;

    try {
      newEnvDesc = waitForEnvironment(createEnvResult.getEnvironmentId());
    } catch (Exception exc) {
      /*
       * Terminates the failed launched environment
       */
      terminateAndWaitForEnvironment(createEnvResult.getEnvironmentId());

      handleException(exc);

      return null;
    }
View Full Code Here

  @MojoParameter(expression="${beanstalk.templateName}")
  String templateName;

  @Override
  protected Object executeInternal() throws AbstractMojoExecutionException {
    CreateEnvironmentResult result = createEnvironment(cnamePrefix);

    return result;
  }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.elasticbeanstalk.model.CreateEnvironmentResult

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.