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,
org.apache.flink.api.common.time.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, org.apache.flink.api.common.time.Time timeout)
public MetricStore getMetricStore()
public void update()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.