public class MetricFetcher<T extends RestfulGateway> extends Object
Metrics will only be fetched when update()
is called, provided that a sufficient time since
the last call has passed.
Constructor and Description |
---|
MetricFetcher(GatewayRetriever<T> retriever,
MetricQueryServiceRetriever queryServiceRetriever,
Executor executor,
Time timeout) |
Modifier and Type | Method and Description |
---|---|
MetricStore |
getMetricStore()
Returns the MetricStore containing all stored metrics.
|
void |
update()
This method can be used to signal this MetricFetcher that the metrics are still in use and should be updated.
|
public MetricFetcher(GatewayRetriever<T> retriever, MetricQueryServiceRetriever queryServiceRetriever, Executor executor, Time timeout)
public MetricStore getMetricStore()
public void update()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.