Package com.codahale.metrics

Examples of com.codahale.metrics.MetricSet


import java.util.Map;

public class MetricSets {
    public static MetricSet of(final Map<String, ? extends Metric> gauges) {
        return new MetricSet(){
            @Override
            public Map<String, Metric> getMetrics() {
                return ImmutableMap.copyOf(gauges);
            }
        };
View Full Code Here


    public static void setDefaultRecvBufferSize(long size) {
        defaultRecvBufferSize = size;
    }

    public void initialize() {
        final MetricSet transportMetrics = transport.getMetricSet();

        if (transportMetrics != null) {
            metricRegistry.register(getUniqueReadableId(), transportMetrics);
        }
        metricRegistry.register(getUniqueReadableId(), localRegistry);
View Full Code Here

TOP

Related Classes of com.codahale.metrics.MetricSet

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.