Package org.apache.whirr.actions

Examples of org.apache.whirr.actions.BootstrapClusterAction


  /**
   * Provision the hardware resources needed for running services
   */
  public Cluster bootstrapCluster(ClusterSpec clusterSpec) throws IOException, InterruptedException {
    BootstrapClusterAction bootstrapper = new BootstrapClusterAction(getCompute(), handlerMapFactory.create());
    Cluster cluster = bootstrapper.execute(clusterSpec, null);
    getClusterStateStore(clusterSpec).save(cluster);
    return cluster;
  }
View Full Code Here


  public Cluster launchCluster(ClusterSpec clusterSpec)
      throws IOException, InterruptedException {
   
    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);
View Full Code Here

  public Cluster launchCluster(ClusterSpec clusterSpec)
      throws IOException, InterruptedException {
    try {
      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);
View Full Code Here

TOP

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

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.