Interface MetricFetcher
- All Known Implementing Classes:
MetricFetcherImpl,VoidMetricFetcher
public interface MetricFetcher
The 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
Modifier and TypeMethodDescriptionlongGetMetricStorewhich contains all currently fetched metrics.voidupdate()Trigger fetching of metrics.
-
Method Details
-
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.
-