Search in sources :

Example 1 with ListClusterCommand

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

the class ListCluster method doExecute.

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

Aggregations

ClusterSpec (org.apache.whirr.ClusterSpec)1 ListClusterCommand (org.apache.whirr.cli.command.ListClusterCommand)1