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)
MetricMessageHandleronMetricMessageReceived in interface MetricMessageHandlermetricKey - a given key for the metric (ex. TaskGroup ID)metricValue - the metric formatted as a string (ex. JSON).public List<String> getMetricByKey(String metricKey)
MetricMessageHandlergetMetricByKey in interface MetricMessageHandlermetricKey - to retrieve the metric forpublic void terminate()
MetricMessageHandlerterminate in interface MetricMessageHandlerCopyright © 2018. All rights reserved.