public final class MetricManagerMaster extends Object implements MetricMessageHandler
Modifier and Type | Method and Description |
---|---|
List<String> |
getMetricByKey(String metricKey)
Retrieves the string form of metric given the metric key.
|
void |
onMetricMessageReceived(String metricKey,
String metricValue)
Handle the received metric message.
|
void |
terminate()
Cleans up and terminates this handler.
|
public void onMetricMessageReceived(String metricKey, String metricValue)
MetricMessageHandler
onMetricMessageReceived
in interface MetricMessageHandler
metricKey
- a given key for the metric (ex. TaskGroup ID)metricValue
- the metric formatted as a string (ex. JSON).public List<String> getMetricByKey(String metricKey)
MetricMessageHandler
getMetricByKey
in interface MetricMessageHandler
metricKey
- to retrieve the metric forpublic void terminate()
MetricMessageHandler
terminate
in interface MetricMessageHandler
Copyright © 2018. All rights reserved.