Package org.apache.whirr.cli.command

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


  @Option(required = false, name = "--instance", description = "The instance to destroy")
  protected String instance;

  @Override
  protected Object doExecute() throws Exception {
    DestroyInstanceCommand command = new DestroyInstanceCommand(clusterControllerFactory);
    ClusterSpec clusterSpec = getClusterSpec();
    if (clusterSpec != null) {
      command.run(System.in, System.out, System.err, clusterSpec, instance);
    }
    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 DestroyInstanceCommand(),
        new ListClusterCommand(),
        new RunScriptCommand()
    );
    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()
    );
    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.DestroyInstanceCommand

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.