Package com.alipay.bluewhale.core.stats.RollingWindow

Examples of com.alipay.bluewhale.core.stats.RollingWindow.RollingWindowSet


   * @return
   */
  public static BoltTaskStatsRolling mk_bolt_stats(Integer rate) {

    CommonStatsRolling common = mk_common_stats(rate);
    RollingWindowSet acked = keyed_counter_rolling_window_set(
        NUM_STAT_BUCKETS, STAT_BUCKETS);
    RollingWindowSet failed = keyed_counter_rolling_window_set(
        NUM_STAT_BUCKETS, STAT_BUCKETS);
    RollingWindowSet process_latencies = keyed_avg_rolling_window_set(
        NUM_STAT_BUCKETS, STAT_BUCKETS);
    BoltTaskStatsRolling rtn = new BoltTaskStatsRolling(common, acked,
        failed, process_latencies);
    return rtn;
  }
View Full Code Here


   * @return
   */
  public static SpoutTaskStatsRolling mk_spout_stats(Integer rate) {

    CommonStatsRolling common = mk_common_stats(rate);
    RollingWindowSet acked = keyed_counter_rolling_window_set(
        NUM_STAT_BUCKETS, STAT_BUCKETS);
    RollingWindowSet failed = keyed_counter_rolling_window_set(
        NUM_STAT_BUCKETS, STAT_BUCKETS);
    RollingWindowSet complete_latencies = keyed_avg_rolling_window_set(
        NUM_STAT_BUCKETS, STAT_BUCKETS);
    return new SpoutTaskStatsRolling(common, acked, failed,
        complete_latencies);
  }
View Full Code Here

TOP

Related Classes of com.alipay.bluewhale.core.stats.RollingWindow.RollingWindowSet

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.