Package com.alibaba.jstorm.stats

Examples of com.alibaba.jstorm.stats.CommonStatsRolling


    // get real task object -- spout/bolt/spoutspec
    this.taskObj = Common.get_task_object(topologyContext.getRawTopology(),
        componentid, WorkerClassLoader.getInstance());
    int samplerate = StormConfig.sampling_rate(stormConf);
    this.taskStats = new CommonStatsRolling(samplerate);

    LOG.info("Loading task " + componentid + ":" + taskid);
  }
View Full Code Here


   
    Integer currtime = TimeUtils.current_time_secs();

    for (Entry<Integer, TaskStats> entry : taskStatsMap.entrySet()) {
      Integer taskId = entry.getKey();
      CommonStatsRolling taskStats = entry.getValue().getTaskStat();

      String idStr = " " + topology_id + ":" + taskId + " ";

      try {
        TaskHeartbeat hb = new TaskHeartbeat(currtime, uptime.uptime(),
            taskStats.render_stats(), entry.getValue().getComponentType());
        zkCluster.task_heartbeat(topology_id, taskId, hb);
      } catch (Exception e) {
        // TODO Auto-generated catch block
        String errMsg = "Failed to update heartbeat to ZK " + idStr
            + "\n";
View Full Code Here

TOP

Related Classes of com.alibaba.jstorm.stats.CommonStatsRolling

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.