Package org.apache.whirr.actions

Examples of org.apache.whirr.actions.ByonClusterAction


  public void destroyCluster(ClusterSpec clusterSpec) throws IOException,
      InterruptedException {
    stopServices(clusterSpec); // for BYON only
    LoadingCache<String, ClusterActionHandler> handlerMap = handlerMapFactory
        .create();
    ClusterAction destroyer = new ByonClusterAction(DESTROY_ACTION,
        getCompute(), handlerMap);
    destroyer.execute(clusterSpec, null);
  }
View Full Code Here


  @Override
  public Cluster bootstrapCluster(ClusterSpec clusterSpec) throws IOException,
      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

  public Cluster configureServices(ClusterSpec clusterSpec, Cluster cluster,
      Set<String> targetRoles, Set<String> targetInstanceIds)
      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;
  }
View Full Code Here

  public void destroyCluster(ClusterSpec clusterSpec) throws IOException,
      InterruptedException {
    stopServices(clusterSpec); // for BYON only
    LoadingCache<String, ClusterActionHandler> handlerMap = handlerMapFactory
        .create();
    ClusterAction destroyer = new ByonClusterAction(DESTROY_ACTION,
        getCompute(), handlerMap);
    destroyer.execute(clusterSpec, null);
  }
View Full Code Here

  @Override
  public Cluster bootstrapCluster(ClusterSpec clusterSpec) throws IOException,
      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

  public Cluster configureServices(ClusterSpec clusterSpec, Cluster cluster,
      Set<String> targetRoles, Set<String> targetInstanceIds)
      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;
  }
View Full Code Here

      InterruptedException {

    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

  public void destroyCluster(ClusterSpec clusterSpec) throws IOException,
      InterruptedException {
    Map<String, ClusterActionHandler> handlerMap = new HandlerMapFactory()
        .create();

    ClusterAction destroyer = new ByonClusterAction(DESTROY_ACTION, getCompute(), handlerMap);
    destroyer.execute(clusterSpec, null);
  }
View Full Code Here

      InterruptedException {

    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);
   
    return cluster;
  }
View Full Code Here

  public void destroyCluster(ClusterSpec clusterSpec) throws IOException,
      InterruptedException {
    Map<String, ClusterActionHandler> handlerMap = new HandlerMapFactory()
        .create();

    ClusterAction destroyer = new ByonClusterAction(DESTROY_ACTION, getCompute(), handlerMap);
    destroyer.execute(clusterSpec, null);
  }
View Full Code Here

TOP

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

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.