Examples of tpsCheck()


Examples of com.alibaba.jstorm.utils.EventSampler.tpsCheck()

    EventSampler sendTpsSampler = sendTpsSamplers.get(stream);
    if (sendTpsSampler == null) {
      sendTpsSampler = new EventSampler(rate);
      sendTpsSamplers.put(stream, sendTpsSampler);
    }
    Integer send = sendTpsSampler.tpsCheck();

    if (send != null) {

      update_task_stat(StaticsType.send_tps, stream, send * num_out_tasks);

 
View Full Code Here

Examples of com.alibaba.jstorm.utils.EventSampler.tpsCheck()

    if (sampler == null) {
      sampler = new EventSampler(rate);
      componentSamplers.put(stream, sampler);
    }

    Integer recv = sampler.tpsCheck();

    if (recv != null) {
      GlobalStreamId key = new GlobalStreamId(component, stream);
      update_task_stat(StaticsType.recv_tps, key, recv);
    }
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.