Package com.linkedin.d2.discovery.util

Examples of com.linkedin.d2.discovery.util.Stats


    {
      callback.get(10, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
      throw new PropertyStoreException(e);
    }
  }
View Full Code Here


    {
      callback.get(10, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
      throw new PropertyStoreException(e);
    }
  }
View Full Code Here

    {
      callback.get(10, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
      throw new PropertyStoreException(e);
    }
  }
View Full Code Here

    {
      callback.get(10, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
      throw new PropertyStoreException(e);
    }
  }
View Full Code Here

                   boolean useDeltaWrite,
                   int maxOutstandingWrites)
  {
    _retryLimit = retryLimit;
    // use retry zkConnection
    _zkConnection = new ZKConnection(zkHosts, sessionTimeout, _retryLimit, false, null, 0);
    _basePath = basePath;
    _timeout = timeout;
    _clusterServiceConfigurations = Arrays.asList(clusterServiceConfigurations, extraClusterServiceConfigurations);
    _clusterDefaults = clusterDefaults;
    _serviceDefaults = serviceDefaults;
View Full Code Here

  private final Stats                 _putStats;
  private final Stats                 _removeStats;

  public FileStore(String path, String extension, PropertySerializer<T> serializer)
  {
    _getStats = new Stats(60000);
    _putStats = new Stats(60000);
    _removeStats = new Stats(60000);
    _path = path;
    _extension = extension;
    _serializer = serializer;

    File file = new File(_path);
View Full Code Here

  protected final Stats                 _unregisterStats;
  protected ZooKeeper             _zk;

  public ZooKeeperStore(ZKConnection client, PropertySerializer<T> serializer, String path)
  {
    _getStats = new Stats(60000);
    _putStats = new Stats(60000);
    _removeStats = new Stats(60000);
    _registerStats = new Stats(60000);
    _unregisterStats = new Stats(60000);
    _zkConn = client;
    _path = path;
    _serializer = serializer;

  }
View Full Code Here

  private final TimeUnit          _unit;
  private final Random            _random = new Random();

  public SimpleLoadBalancer(LoadBalancerState state)
  {
    this(state, new Stats(1000), new Stats(1000), 0, TimeUnit.SECONDS);
  }
View Full Code Here

    this(state, new Stats(1000), new Stats(1000), 0, TimeUnit.SECONDS);
  }

  public SimpleLoadBalancer(LoadBalancerState state, long timeout)
  {
    this(state, new Stats(1000), new Stats(1000), timeout, TimeUnit.MILLISECONDS);
  }
View Full Code Here

    this(state, new Stats(1000), new Stats(1000), timeout, TimeUnit.MILLISECONDS);
  }

  public SimpleLoadBalancer(LoadBalancerState state, long timeout, TimeUnit unit)
  {
    this(state, new Stats(1000), new Stats(1000), timeout, unit);
  }
View Full Code Here

TOP

Related Classes of com.linkedin.d2.discovery.util.Stats

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.