@DefaultImplementation(value=MetricManagerMaster.class) public interface 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.
|
void onMetricMessageReceived(String metricKey, String metricValue)
metricKey
- a given key for the metric (ex. TaskGroup ID)metricValue
- the metric formatted as a string (ex. JSON).List<String> getMetricByKey(String metricKey)
metricKey
- to retrieve the metric forvoid terminate()
Copyright © 2018. All rights reserved.