OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MetricProducer
(Results
1 - 9
of
9
) sorted by null
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/export/
MetricProducerManagerImpl.java
20
import io.opencensus.metrics.export.
MetricProducer
;
31
private volatile Set<
MetricProducer
> metricProducers =
32
Collections.unmodifiableSet(new LinkedHashSet<
MetricProducer
>());
35
public synchronized void add(
MetricProducer
metricProducer
) {
36
Preconditions.checkNotNull(
metricProducer
, "
metricProducer
");
39
Set<
MetricProducer
> newMetricProducers = new LinkedHashSet<
MetricProducer
>(metricProducers);
40
if (!newMetricProducers.add(
metricProducer
)) {
[
all
...]
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/
MetricProducerManager.java
26
* Keeps a set of {@link
MetricProducer
} that is used by exporters to determine the metrics that
36
* Adds the {@link
MetricProducer
} to the manager if it is not already present.
38
* @param
metricProducer
the {@code
MetricProducer
} to be added to the manager.
41
public abstract void add(
MetricProducer
metricProducer
);
44
* Removes the {@link
MetricProducer
} to the manager if it is present.
46
* @param
metricProducer
the {@code
MetricProducer
} to be removed from the manager.
49
public abstract void remove(
MetricProducer
metricProducer)
[
all
...]
MetricProducer.java
31
public abstract class
MetricProducer
{
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
MetricProducerImpl.java
20
import io.opencensus.metrics.export.
MetricProducer
;
24
/** Implementation of {@link
MetricProducer
}. */
26
final class MetricProducerImpl extends
MetricProducer
{
StatsComponentImplBase.java
25
import io.opencensus.metrics.export.
MetricProducer
;
52
MetricProducer
metricProducer
= new MetricProducerImpl(statsManager);
53
Metrics.getExportComponent().getMetricProducerManager().add(
metricProducer
);
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/metrics/export/
MetricProducerManagerImplTest.java
21
import io.opencensus.metrics.export.
MetricProducer
;
38
@Mock private
MetricProducer
metricProducer
;
39
@Mock private
MetricProducer
metricProducerOther;
56
metricProducerManager.add(
metricProducer
);
57
assertThat(metricProducerManager.getAllMetricProducer()).containsExactly(
metricProducer
);
62
metricProducerManager.add(
metricProducer
);
63
Set<
MetricProducer
> metricProducerSet = metricProducerManager.getAllMetricProducer();
64
assertThat(metricProducerSet).containsExactly(
metricProducer
);
65
metricProducerManager.add(
metricProducer
);
[
all
...]
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/
MetricRegistryImpl.java
30
import io.opencensus.metrics.export.
MetricProducer
;
41
private final
MetricProducer
metricProducer
;
45
metricProducer
= new MetricProducerForRegistry(registeredMeters, clock);
129
private static final class MetricProducerForRegistry extends
MetricProducer
{
157
MetricProducer
getMetricProducer() {
158
return
metricProducer
;
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/
MetricProducerManagerTest.java
35
@Mock private
MetricProducer
metricProducer
;
52
metricProducerManager.add(
metricProducer
);
58
metricProducerManager.add(
metricProducer
);
60
metricProducerManager.remove(
metricProducer
);
72
metricProducerManager.remove(
metricProducer
);
/external/opencensus-java/contrib/dropwizard/src/main/java/io/opencensus/contrib/dropwizard/
DropWizardMetrics.java
34
import io.opencensus.metrics.export.
MetricProducer
;
52
* <p>A {@link io.opencensus.metrics.export.
MetricProducer
} that wraps a DropWizardMetrics.
56
public class DropWizardMetrics extends
MetricProducer
{
Completed in 383 milliseconds