Package com.alipay.bluewhale.core.cluster

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


    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);
        for(TaskError err:zk.task_errors(stromId, taskid))
        {
      System.out.println(err.getError());
        }

    }
    System.out.println("disconnect");

    zk.disconnect();


      }
  }finally{
      transport.close();
View Full Code Here


   
    this.componentid = topologyContext.getThisComponentId();
    this.stormConf = TasksCommon.component_conf(stormConf, topologyContext,
        componentid);
    LOG.info("Loading task " + componentid + ":" + taskid);
    this.zkCluster = new StormZkClusterState(clusterState);

    // ��ȡtask_obj����,��ʵ���Ǹ���Component_id��ȡ���ε�SpoutSpec��bolt��StateSpoutSpec
    this.taskObj = TasksCommon.get_task_object(
        topologyContext.getRawTopology(), componentid);
    // ����taskͳ�ƵĶ���-�μ�stats��
View Full Code Here

TOP

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

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.