Package org.apache.whirr.actions

Examples of org.apache.whirr.actions.ConfigureClusterAction


    Map<String, ClusterActionHandler> handlerMap = new HandlerMapFactory().create();

    BootstrapClusterAction bootstrapper = new BootstrapClusterAction(getCompute(), handlerMap);
    Cluster cluster = bootstrapper.execute(clusterSpec, null);

    ConfigureClusterAction configurer = new ConfigureClusterAction(getCompute(), handlerMap);
    cluster = configurer.execute(clusterSpec, cluster);

    stateStoreFactory.create(clusterSpec).save(cluster);

    return cluster;
  }
View Full Code Here


      Map<String, ClusterActionHandler> handlerMap = HandlerMapFactory.create();

      BootstrapClusterAction bootstrapper = new BootstrapClusterAction(getCompute(), handlerMap);
      Cluster cluster = bootstrapper.execute(clusterSpec, null);

      ConfigureClusterAction configurer = new ConfigureClusterAction(getCompute(), handlerMap);
      cluster = configurer.execute(clusterSpec, cluster);

      getClusterStateStore(clusterSpec).save(cluster);
      return cluster;

    } catch(Throwable e) {
View Full Code Here

TOP

Related Classes of org.apache.whirr.actions.ConfigureClusterAction

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.