Search in sources :

Example 1 with LaunchClusterCommand

use of org.apache.whirr.cli.command.LaunchClusterCommand in project whirr by apache.

the class LaunchCluster method doExecute.

@Override
protected Object doExecute() throws Exception {
    validateInput();
    LaunchClusterCommand command = new LaunchClusterCommand(clusterControllerFactory);
    ClusterSpec clusterSpec = getClusterSpec();
    if (clusterSpec != null) {
        command.run(System.in, System.out, System.err, clusterSpec);
    }
    return null;
}
Also used : ClusterSpec(org.apache.whirr.ClusterSpec) LaunchClusterCommand(org.apache.whirr.cli.command.LaunchClusterCommand)

Example 2 with LaunchClusterCommand

use of org.apache.whirr.cli.command.LaunchClusterCommand in project whirr by apache.

the class Main method main.

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);
}
Also used : DestroyClusterCommand(org.apache.whirr.cli.command.DestroyClusterCommand) LaunchClusterCommand(org.apache.whirr.cli.command.LaunchClusterCommand)

Aggregations

LaunchClusterCommand (org.apache.whirr.cli.command.LaunchClusterCommand)2 ClusterSpec (org.apache.whirr.ClusterSpec)1 DestroyClusterCommand (org.apache.whirr.cli.command.DestroyClusterCommand)1