Package com.linkedin.databus.client.pub.mbean

Examples of com.linkedin.databus.client.pub.mbean.UnifiedClientStats.merge()


      unifiedClientStats1.registerDataEventReceived(createEvent(sourceTimestampNs1));
      unifiedClientStats2.registerDataEventReceived(createEvent(sourceTimestampNs2));
    }

    unifiedClientStatsAgg.merge(unifiedClientStats1);
    unifiedClientStatsAgg.merge(unifiedClientStats2);

    assertEquals("unexpected timeLagSourceToReceiptMs 50th percentile for aggregated stats",
                 unifiedClientStats1.getTimeLagSourceToReceiptMs_HistPct_50(),
                 unifiedClientStatsAgg.getTimeLagSourceToReceiptMs_HistPct_50());
View Full Code Here


      unifiedClientStats1.registerDataEventReceived(createEvent(sourceTimestampNs1));
      unifiedClientStats2.registerDataEventReceived(createEvent(sourceTimestampNs2));
    }

    unifiedClientStatsAgg.merge(unifiedClientStats1);
    unifiedClientStatsAgg.merge(unifiedClientStats2);

    assertEquals("unexpected timeLagSourceToReceiptMs 50th percentile for aggregated stats",
                 unifiedClientStats1.getTimeLagSourceToReceiptMs_HistPct_50(),
                 unifiedClientStatsAgg.getTimeLagSourceToReceiptMs_HistPct_50());
    assertEquals("unexpected timeLagSourceToReceiptMs 90th percentile for aggregated stats",
View Full Code Here

      // no data events for connection #2 => no need for sourceTimestampNs2

      unifiedClientStats1.registerDataEventReceived(createEvent(sourceTimestampNs1));
    }

    unifiedClientStatsAgg.merge(unifiedClientStats1);
    unifiedClientStatsAgg.merge(unifiedClientStats2);

    assertEquals("unexpected timeLagSourceToReceiptMs 50th percentile for aggregated stats",
                 unifiedClientStats1.getTimeLagSourceToReceiptMs_HistPct_50(),
                 unifiedClientStatsAgg.getTimeLagSourceToReceiptMs_HistPct_50());
View Full Code Here

      unifiedClientStats1.registerDataEventReceived(createEvent(sourceTimestampNs1));
    }

    unifiedClientStatsAgg.merge(unifiedClientStats1);
    unifiedClientStatsAgg.merge(unifiedClientStats2);

    assertEquals("unexpected timeLagSourceToReceiptMs 50th percentile for aggregated stats",
                 unifiedClientStats1.getTimeLagSourceToReceiptMs_HistPct_50(),
                 unifiedClientStatsAgg.getTimeLagSourceToReceiptMs_HistPct_50());
    assertEquals("unexpected timeLagSourceToReceiptMs 90th percentile for aggregated stats",
View Full Code Here

      unifiedClientStats2.registerDataEventReceived(dbusEvent2);
      unifiedClientStats1.registerCallbacksProcessed(callbackTimeElapsedNs1);
      unifiedClientStats2.registerCallbacksProcessed(callbackTimeElapsedNs2);
    }

    unifiedClientStatsAgg.merge(unifiedClientStats1);
    unifiedClientStatsAgg.merge(unifiedClientStats2);

    // Expected timeLagConsumerCallbacksMs histogram values (exact):
    //   unifiedClientStats1:  0 to 1027 ms
    //   unifiedClientStats2:  2000 to 3027 ms
View Full Code Here

      unifiedClientStats1.registerCallbacksProcessed(callbackTimeElapsedNs1);
      unifiedClientStats2.registerCallbacksProcessed(callbackTimeElapsedNs2);
    }

    unifiedClientStatsAgg.merge(unifiedClientStats1);
    unifiedClientStatsAgg.merge(unifiedClientStats2);

    // Expected timeLagConsumerCallbacksMs histogram values (exact):
    //   unifiedClientStats1:  0 to 1027 ms
    //   unifiedClientStats2:  2000 to 3027 ms
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.