Package org.apache.whirr.cli.command

Examples of org.apache.whirr.cli.command.DestroyClusterCommand


public class DestroyCluster extends WhirrCommandSupport {

  @Override
  protected Object doExecute() throws Exception {
    validateInput();
    DestroyClusterCommand command = new DestroyClusterCommand(clusterControllerFactory);
    ClusterSpec clusterSpec = getClusterSpec();
    if (clusterSpec != null) {
      command.run(System.in, System.out, System.err, clusterSpec);
    }
    return null;
  }
View Full Code Here


  }

  public static void main(String... args) throws Exception {
    Main main = new Main(
        new LaunchClusterCommand(),
        new DestroyClusterCommand()
    );
    int rc = main.run(System.in, System.out, System.err, Arrays.asList(args));
    System.exit(rc);
  }
View Full Code Here

@Command(scope = "whirr", name = "destory-cluster", description = "Terminate and cleanup resources for a running cluster.")
public class DestroyCluster extends WhirrCommandSupport {

  @Override
  protected Object doExecute() throws Exception {
    DestroyClusterCommand command = new DestroyClusterCommand(clusterControllerFactory);
    ClusterSpec clusterSpec = getClusterSpec();
    if (clusterSpec != null) {
      command.run(System.in, System.out, System.err, clusterSpec);
    }
    return null;
  }
View Full Code Here

  }
  public static void main(String... args) throws Exception {
    Main main = new Main(
        new VersionCommand(),
        new LaunchClusterCommand(),
        new DestroyClusterCommand(),
        new ListClusterCommand()
    );
    int rc = main.run(System.in, System.out, System.err, Arrays.asList(args));
    System.exit(rc);
  }
View Full Code Here

  public static void main(String... args) throws Exception {
    Main main = new Main(
        new VersionCommand(),
        new LaunchClusterCommand(),
        new DestroyClusterCommand(),
        new DestroyInstanceCommand(),
        new ListClusterCommand(),
        new RunScriptCommand()
    );
    int rc = main.run(System.in, System.out, System.err, Arrays.asList(args));
View Full Code Here

  public static void main(String... args) throws Exception {
    Main main = new Main(
        new VersionCommand(),
        new LaunchClusterCommand(),
        new DestroyClusterCommand(),
        new DestroyInstanceCommand(),
        new ListClusterCommand()
    );
    int rc = main.run(System.in, System.out, System.err, Arrays.asList(args));
    System.exit(rc);
View Full Code Here

TOP

Related Classes of org.apache.whirr.cli.command.DestroyClusterCommand

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.