Examples of DestroyClusterAction


Examples of org.apache.whirr.actions.DestroyClusterAction

    stateStore.destroy();
  }

  public void destroyCluster(ClusterSpec clusterSpec, Cluster cluster)
    throws IOException, InterruptedException {
    DestroyClusterAction destroyer = new DestroyClusterAction(getCompute(), handlerMapFactory.create());
    destroyer.execute(clusterSpec, cluster);
  }
View Full Code Here

Examples of org.apache.whirr.actions.DestroyClusterAction

   * cluster may or may not have been stopped.
   * @throws InterruptedException if the thread is interrupted.
   */
  public void destroyCluster(ClusterSpec clusterSpec) throws IOException,
      InterruptedException {
    DestroyClusterAction destroyer = new DestroyClusterAction(getCompute());
    destroyer.execute(clusterSpec, null);

    stateStoreFactory.create(clusterSpec).destroy();
  }
View Full Code Here

Examples of org.apache.whirr.actions.DestroyClusterAction

      InterruptedException {

    ClusterStateStore stateStore = getClusterStateStore(clusterSpec);
    Cluster cluster = stateStore.tryLoadOrEmpty();

    DestroyClusterAction destroyer = new DestroyClusterAction(getCompute(),
        HandlerMapFactory.create());
    destroyer.execute(clusterSpec, cluster);

    stateStore.destroy();
  }
View Full Code Here

Examples of org.apache.whirr.cluster.actions.DestroyClusterAction

   * cluster may or may not have been stopped.
   * @throws InterruptedException if the thread is interrupted.
   */
  public void destroyCluster(ClusterSpec clusterSpec) throws IOException,
      InterruptedException {
    DestroyClusterAction destroyer = new DestroyClusterAction();
    destroyer.execute(clusterSpec, null);
    Files.deleteRecursively(clusterSpec.getClusterDirectory());
  }
View Full Code Here

Examples of org.apache.whirr.cluster.actions.DestroyClusterAction

   * cluster may or may not have been stopped.
   * @throws InterruptedException if the thread is interrupted.
   */
  public void destroyCluster(ClusterSpec clusterSpec) throws IOException,
      InterruptedException {
    DestroyClusterAction destroyer = new DestroyClusterAction(new ComputeServiceContextFactory());
    destroyer.execute(clusterSpec, null);
    Files.deleteRecursively(clusterSpec.getClusterDirectory());
  }
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.