Package br.com.ingenieux.mojo.beanstalk.cmd.env.terminate

Examples of br.com.ingenieux.mojo.beanstalk.cmd.env.terminate.TerminateEnvironmentCommand


            try {
                TerminateEnvironmentContext terminatecontext = new TerminateEnvironmentContextBuilder()
                        .withEnvironmentId(environmentId)
                        .withTerminateResources(true).build();
                TerminateEnvironmentCommand command = new TerminateEnvironmentCommand(
                        this);

                command.execute(terminatecontext);

                return;
            } catch (Exception exc) {
                lastException = exc;
            }
View Full Code Here


      try {
        TerminateEnvironmentContext terminatecontext = new TerminateEnvironmentContextBuilder()
            .withEnvironmentId(environmentId)
            .withTerminateResources(true).build();
        TerminateEnvironmentCommand command = new TerminateEnvironmentCommand(
            this);

        command.execute(terminatecontext);

        return;
      } catch (Exception exc) {
        lastException = exc;
      }
View Full Code Here

      try {
        TerminateEnvironmentContext terminatecontext = new TerminateEnvironmentContextBuilder()
            .withEnvironmentId(environmentId)
            .withTerminateResources(true).build();
        TerminateEnvironmentCommand command = new TerminateEnvironmentCommand(
            this);

        command.execute(terminatecontext);

        return;
      } catch (Exception exc) {
        lastException = exc;
      }
View Full Code Here

      getLog().info("Terminating environmentId=" + environmentId);

      TerminateEnvironmentContext terminatecontext = new TerminateEnvironmentContextBuilder()
          .withEnvironmentId(environmentId).withTerminateResources(true)
          .build();
      TerminateEnvironmentCommand command = new TerminateEnvironmentCommand(
          this);

      command.execute(terminatecontext);
    }

    {
      WaitForEnvironmentContext context = new WaitForEnvironmentContextBuilder()
          .withApplicationName(applicationName)
          .withEnvironmentId(environmentId).withStatusToWaitFor("Terminated")
          .withTimeoutMins(timeoutMins).build();

      WaitForEnvironmentCommand command = new WaitForEnvironmentCommand(this);

      command.execute(context);
    }
  }
View Full Code Here

      MojoFailureException {
    TerminateEnvironmentContext context = TerminateEnvironmentContextBuilder
        .terminateEnvironmentContext().withEnvironmentId(environmentId)
        .withEnvironmentName(environmentName)
        .withTerminateResources(terminateResources).build();
    TerminateEnvironmentCommand command = new TerminateEnvironmentCommand(this);

    return command.execute(context);
  }
View Full Code Here

      getLog().info("Terminating environmentId=" + environmentId);

      TerminateEnvironmentContext terminatecontext = new TerminateEnvironmentContextBuilder()
          .withEnvironmentId(environmentId)
          .withTerminateResources(true).build();
      TerminateEnvironmentCommand command = new TerminateEnvironmentCommand(
          this);

      command.execute(terminatecontext);
    }

    {
      WaitForEnvironmentContext context = new WaitForEnvironmentContextBuilder()
          .withApplicationName(applicationName)
          .withEnvironmentId(environmentId)
          .withStatusToWaitFor("Terminated")
          .withTimeoutMins(timeoutMins).build();

      WaitForEnvironmentCommand command = new WaitForEnvironmentCommand(
          this);

      command.execute(context);
    }
  }
View Full Code Here

  protected Object executeInternal() throws AbstractMojoExecutionException {
    TerminateEnvironmentContext context = TerminateEnvironmentContextBuilder
        .terminateEnvironmentContext().withEnvironmentId(curEnv.getEnvironmentId())
        .withEnvironmentName(curEnv.getEnvironmentName())
        .withTerminateResources(terminateResources).build();
    TerminateEnvironmentCommand command = new TerminateEnvironmentCommand(this);

    return command.execute(context);
  }
View Full Code Here

      try {
        TerminateEnvironmentContext terminatecontext = new TerminateEnvironmentContextBuilder()
            .withEnvironmentId(environmentId)
            .withTerminateResources(true).build();
        TerminateEnvironmentCommand command = new TerminateEnvironmentCommand(
            this);

        command.execute(terminatecontext);

        return;
      } catch (Exception exc) {
        lastException = exc;
      }
View Full Code Here

  protected Object executeInternal() throws AbstractMojoExecutionException {
    TerminateEnvironmentContext context = TerminateEnvironmentContextBuilder
        .terminateEnvironmentContext().withEnvironmentId(environmentId)
        .withEnvironmentName(environmentName)
        .withTerminateResources(terminateResources).build();
    TerminateEnvironmentCommand command = new TerminateEnvironmentCommand(this);

    return command.execute(context);
  }
View Full Code Here

      getLog().info("Terminating environmentId=" + environmentId);

      TerminateEnvironmentContext terminatecontext = new TerminateEnvironmentContextBuilder()
          .withEnvironmentId(environmentId).withTerminateResources(true)
          .build();
      TerminateEnvironmentCommand command = new TerminateEnvironmentCommand(
          this);

      command.execute(terminatecontext);
    }

    {
      WaitForEnvironmentContext context = new WaitForEnvironmentContextBuilder()
          .withApplicationName(applicationName)
          .withEnvironmentId(environmentId).withStatusToWaitFor("Terminated")
          .withTimeoutMins(timeoutMins).build();

      WaitForEnvironmentCommand command = new WaitForEnvironmentCommand(this);

      command.execute(context);
    }
  }
View Full Code Here

TOP

Related Classes of br.com.ingenieux.mojo.beanstalk.cmd.env.terminate.TerminateEnvironmentCommand

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.