Examples of mergeStats()


Examples of com.linkedin.databus.bootstrap.monitoring.producer.mbean.DbusBootstrapProducerStats.mergeStats()

  }

  private void mergePerSource(String source, DbusBootstrapProducerStats other, Lock writeLock)
  {
    DbusBootstrapProducerStats curBean = getOrAddPerSourceCollector(source, writeLock);
    curBean.mergeStats(other);
  }

  private DbusBootstrapProducerStats getOrAddPerSourceCollector(String client, Lock writeLock)
  {
    Lock myWriteLock = null;
View Full Code Here

Examples of com.linkedin.databus.bootstrap.monitoring.server.mbean.DbusBootstrapHttpStats.mergeStats()

  }

  private void mergePerPeer(String peer, DbusBootstrapHttpStats other, Lock writeLock)
  {
    DbusBootstrapHttpStats curBean = getOrAddPerPeerCollector(peer, writeLock);
    curBean.mergeStats(other);
  }

  protected void registerAsMBeans()
  {
    if (null != _mbeanServer && null != _collectorObjName)
View Full Code Here

Examples of com.linkedin.databus.core.monitoring.mbean.AggregatedDbusEventsTotalStats.mergeStats()

      AggregatedDbusEventsTotalStats myTotalStats = new AggregatedDbusEventsTotalStats(StatsWriter.OWNERID, "mytotal", true, false, null);
      for (DbusEventsStatisticsCollector s:eventStatsCollectors.getStatsCollectors())
      {
        DbusEventsTotalStats writerStat = s.getTotalStats();
        //obviously - we assume this is correct here. we want to check that the updates happen correctly in a concurrent setting
        myTotalStats.mergeStats(writerStat);
      }
      LOG.info("global = " + globalStats.getNumDataEvents() + " Sigma writers=" + myTotalStats.getNumDataEvents());
      Assert.assertEquals("NumDataEvents mismatch for n = " + n,
                          globalStats.getNumDataEvents(),
                          myTotalStats.getNumDataEvents());
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.