blob: 620fb613f47c5d32dbd5c910fa0cf9d90f74e2fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.jdisc.metric;
import com.yahoo.container.jdisc.MetricConsumerFactory;
import com.yahoo.jdisc.application.MetricConsumer;
/**
* @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen Hult</a>
*/
class MetricProviders {
public static MetricProvider newInstance(MetricConsumer... consumers) {
return new MetricProvider(MetricConsumerProviders.newSingletonFactories(consumers));
}
public static MetricProvider newInstance(MetricConsumerFactory... factories) {
return new MetricProvider(MetricConsumerProviders.newInstance(factories));
}
}
|