Enum VoidMetricFetcher
java.lang.Object
java.lang.Enum<VoidMetricFetcher>
org.apache.flink.runtime.rest.handler.legacy.metrics.VoidMetricFetcher
- All Implemented Interfaces:
Serializable,Comparable<VoidMetricFetcher>,MetricFetcher
No-op implementation of the
MetricFetcher.-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionlongGetMetricStorewhich contains all currently fetched metrics.voidupdate()Trigger fetching of metrics.static VoidMetricFetcherReturns the enum constant of this type with the specified name.static VoidMetricFetcher[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getMetricStore
Description copied from interface:MetricFetcherGetMetricStorewhich contains all currently fetched metrics.- Specified by:
getMetricStorein interfaceMetricFetcher- Returns:
MetricStorewith all fetched metrics
-
update
public void update()Description copied from interface:MetricFetcherTrigger fetching of metrics.- Specified by:
updatein interfaceMetricFetcher
-
getLastUpdateTime
public long getLastUpdateTime()- Specified by:
getLastUpdateTimein interfaceMetricFetcher- Returns:
- timestamp of the last update.
-