Examples of DbusBootstrapProducerStats


Examples of com.linkedin.databus.bootstrap.monitoring.producer.mbean.DbusBootstrapProducerStats

    _id = id;
    _name = name;
    _perSourcePrefix = _name + ".source.";
    _logicalSources = logicalSources;

    _totalStats = new DbusBootstrapProducerStats(_id, _name + ".total", enabled, threadSafe, null);
    _perClientStats = new HashMap<String, DbusBootstrapProducerStats>(1000);
    ObjectName jmxName = null;
    try
    {
      Hashtable<String, String> mbeanProps = new Hashtable<String, String>(5);
View Full Code Here

Examples of com.linkedin.databus.bootstrap.monitoring.producer.mbean.DbusBootstrapProducerStats

      long currentLogId, long currentRowId)
  {
    Lock writeLock = acquireWriteLock();
    try
    {
      DbusBootstrapProducerStats srcStats = getOrAddPerSourceCollector(source, writeLock);
      srcStats.registerBatch(latency, numEvents, currentSCN, currentLogId, currentRowId);
    }
    finally
    {
      releaseLock(writeLock);
    }
View Full Code Here

Examples of com.linkedin.databus.bootstrap.monitoring.producer.mbean.DbusBootstrapProducerStats

    try
    {

      for (String sourceName: other._perClientStats.keySet())
      {
        DbusBootstrapProducerStats bean = other._perClientStats.get(sourceName);
        mergePerSource(sourceName, bean, writeLock);
      }
    }
    finally
    {
View Full Code Here

Examples of com.linkedin.databus.bootstrap.monitoring.producer.mbean.DbusBootstrapProducerStats

    }
  }

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

Examples of com.linkedin.databus.bootstrap.monitoring.producer.mbean.DbusBootstrapProducerStats

  {
    Lock myWriteLock = null;
    if (null == writeLock) myWriteLock = acquireWriteLock();
    try
    {
      DbusBootstrapProducerStats clientStats = _perClientStats.get(client);
      if (null == clientStats)
      {
        clientStats = new DbusBootstrapProducerStats(_id, _perSourcePrefix + client, true, isThreadSafe(), null);
        _perClientStats.put(client, clientStats);

        if (null != _mbeanServer)
        {
          clientStats.registerAsMbean(_mbeanServer);
        }
      }

      return clientStats;
    }
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.