Examples of DbusBootstrapHttpStats


Examples of com.linkedin.databus.bootstrap.monitoring.server.mbean.DbusBootstrapHttpStats

    _enabled = new AtomicBoolean(enabled);
    _id = id;
    _name = name;
    _perPeerPrefix = _name + ".peer.";

    _totalStats = new DbusBootstrapHttpStats(_id, _name + ".total", enabled, threadSafe, null);
    _perClientStats = new HashMap<String, DbusBootstrapHttpStats>(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.server.mbean.DbusBootstrapHttpStats

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

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

      return clientStats;
    }
View Full Code Here

Examples of com.linkedin.databus.bootstrap.monitoring.server.mbean.DbusBootstrapHttpStats

    try
    {

      for (String peerName: other._perClientStats.keySet())
      {
        DbusBootstrapHttpStats bean = other._perClientStats.get(peerName);
        mergePerPeer(peerName, bean, writeLock);
      }
    }
    finally
    {
View Full Code Here

Examples of com.linkedin.databus.bootstrap.monitoring.server.mbean.DbusBootstrapHttpStats

    }
  }

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

Examples of com.linkedin.databus.bootstrap.monitoring.server.mbean.DbusBootstrapHttpStats

  {

    Lock readLock = acquireReadLock();
    try
    {
      DbusBootstrapHttpStats result = _perClientStats.get(peer);
      return result;
    }
    finally
    {
      releaseLock(readLock);
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.