Package com.alipay.bluewhale.core.cluster

Examples of com.alipay.bluewhale.core.cluster.ClusterState


      else{
    String stromId=args[0];
    System.out.println(client.getTopologyInfo(stromId));
   
   
    ClusterState cluster_state = new DistributedClusterState(conf);
    StormClusterState zk = new StormZkClusterState(
      cluster_state);
    for(Integer taskid:zk.task_ids(stromId))
    {
      System.out.println("########"+taskid);
View Full Code Here


    public static StormClusterState getCluster() throws Exception
    {
  if(higozkCluster==null)
  {
          Map stormconf = Utils.readStormConfig();
          ClusterState zkClusterstate =Cluster.mk_distributed_cluster_state(stormconf);
          higozkCluster = Cluster.mk_storm_cluster_state(zkClusterstate);
  }
  return higozkCluster;
    }
View Full Code Here

  }

  private static void runTable(String[] args) throws Exception {
    String tableName = args[1];
    Map stormconf = Utils.readStormConfig();
    ClusterState zkClusterstate = Cluster
        .mk_distributed_cluster_state(stormconf);
    StormClusterState zkCluster = Cluster
        .mk_storm_cluster_state(zkClusterstate);
    zkCluster.higo_remove(tableName);
    zkCluster.disconnect();
View Full Code Here

    } catch (Exception e) {
      e.printStackTrace();
    }

    Map stormconf = Utils.readStormConfig();
    ClusterState zkClusterstate = Cluster
        .mk_distributed_cluster_state(stormconf);
    StormClusterState zkCluster = Cluster
        .mk_storm_cluster_state(zkClusterstate);
    zkCluster.higo_remove(topologyName);
    for (String s : tableName.split(",")) {
View Full Code Here

TOP

Related Classes of com.alipay.bluewhale.core.cluster.ClusterState

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.