Package org.apache.whirr.actions

Examples of org.apache.whirr.actions.ByonClusterAction.execute()


    stopServices(clusterSpec); // for BYON only
    LoadingCache<String, ClusterActionHandler> handlerMap = handlerMapFactory
        .create();
    ClusterAction destroyer = new ByonClusterAction(DESTROY_ACTION,
        getCompute(), handlerMap);
    destroyer.execute(clusterSpec, null);
  }
 
  /**
   * Provisions the hardware for a BYON cluster.
   */
 
View Full Code Here


      InterruptedException {
    LoadingCache<String, ClusterActionHandler> handlerMap = handlerMapFactory
        .create();
    ClusterAction bootstrapper = new ByonClusterAction(BOOTSTRAP_ACTION,
        getCompute(), handlerMap);
    Cluster cluster = bootstrapper.execute(clusterSpec, null);
    getClusterStateStore(clusterSpec).save(cluster);
    return cluster;
  }

  /**
 
View Full Code Here

      throws IOException, InterruptedException {
    LoadingCache<String, ClusterActionHandler> handlerMap = handlerMapFactory
        .create();
    ClusterAction configurer = new ByonClusterAction(CONFIGURE_ACTION,
        getCompute(), handlerMap);
    cluster = configurer.execute(clusterSpec, cluster);
    getClusterStateStore(clusterSpec).save(cluster);
    return cluster;
  }
 
  public Map<? extends NodeMetadata, ExecResponse> runScriptOnNodesMatching(final ClusterSpec spec,
View Full Code Here

    stopServices(clusterSpec); // for BYON only
    LoadingCache<String, ClusterActionHandler> handlerMap = handlerMapFactory
        .create();
    ClusterAction destroyer = new ByonClusterAction(DESTROY_ACTION,
        getCompute(), handlerMap);
    destroyer.execute(clusterSpec, null);
  }
 
  /**
   * Provisions the hardware for a BYON cluster.
   */
 
View Full Code Here

      InterruptedException {
    LoadingCache<String, ClusterActionHandler> handlerMap = handlerMapFactory
        .create();
    ClusterAction bootstrapper = new ByonClusterAction(BOOTSTRAP_ACTION,
        getCompute(), handlerMap);
    Cluster cluster = bootstrapper.execute(clusterSpec, null);
    getClusterStateStore(clusterSpec).save(cluster);
    return cluster;
  }

  /**
 
View Full Code Here

      throws IOException, InterruptedException {
    LoadingCache<String, ClusterActionHandler> handlerMap = handlerMapFactory
        .create();
    ClusterAction configurer = new ByonClusterAction(CONFIGURE_ACTION,
        getCompute(), handlerMap);
    cluster = configurer.execute(clusterSpec, cluster);
    getClusterStateStore(clusterSpec).save(cluster);
    return cluster;
  }
 
  public Map<? extends NodeMetadata, ExecResponse> runScriptOnNodesMatching(final ClusterSpec spec,
View Full Code Here

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

    ClusterAction bootstrapper = new ByonClusterAction(BOOTSTRAP_ACTION, getCompute(), handlerMap);
    Cluster cluster = bootstrapper.execute(clusterSpec, null);

    ClusterAction configurer = new ByonClusterAction(CONFIGURE_ACTION, getCompute(), handlerMap);
    cluster = configurer.execute(clusterSpec, cluster);

    return cluster;
View Full Code Here

    ClusterAction bootstrapper = new ByonClusterAction(BOOTSTRAP_ACTION, getCompute(), handlerMap);
    Cluster cluster = bootstrapper.execute(clusterSpec, null);

    ClusterAction configurer = new ByonClusterAction(CONFIGURE_ACTION, getCompute(), handlerMap);
    cluster = configurer.execute(clusterSpec, cluster);

    return cluster;
  }

  public void destroyCluster(ClusterSpec clusterSpec) throws IOException,
View Full Code Here

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

    ClusterAction destroyer = new ByonClusterAction(DESTROY_ACTION, getCompute(), handlerMap);
    destroyer.execute(clusterSpec, null);
  }
 
  @Override
  public void destroyInstance(ClusterSpec clusterSpec, String instanceId)
      throws IOException {
View Full Code Here

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

    ClusterAction bootstrapper = new ByonClusterAction(BOOTSTRAP_ACTION, getCompute(), handlerMap);
    Cluster cluster = bootstrapper.execute(clusterSpec, null);

    ClusterAction configurer = new ByonClusterAction(CONFIGURE_ACTION, getCompute(), handlerMap);
    cluster = configurer.execute(clusterSpec, cluster);

    getClusterStateStore(clusterSpec).save(cluster);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.