Package org.apache.whirr.cli.command

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


public class ListCluster extends WhirrCommandSupport {

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


@Command(scope = "whirr", name = "list-cluster", description = "List the nodes in a cluster.")
public class ListCluster extends WhirrCommandSupport {

  @Override
  protected Object doExecute() throws Exception {
    ListClusterCommand command = new ListClusterCommand(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

    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

    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.ListClusterCommand

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.