Interface MetricFetcher
-
- All Known Implementing Classes:
MetricFetcherImpl,VoidMetricFetcher
public interface MetricFetcherThe MetricFetcher can be used to fetch metrics from the JobManager and all registered TaskManagers.Metrics will only be fetched when
update()is called, provided that a sufficient time since the last call has passed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLastUpdateTime()MetricStoregetMetricStore()GetMetricStorewhich contains all currently fetched metrics.voidupdate()Trigger fetching of metrics.
-
-
-
Method Detail
-
getMetricStore
MetricStore getMetricStore()
GetMetricStorewhich contains all currently fetched metrics.- Returns:
MetricStorewith all fetched metrics
-
update
void update()
Trigger fetching of metrics.
-
getLastUpdateTime
long getLastUpdateTime()
- Returns:
- timestamp of the last update.
-
-