GitHub user zentol opened a pull request:

    https://github.com/apache/flink/pull/2615

    [FLINK-4772] [FLINK-4775] Metric Store enhancements

    This PR changes a few things about the MetricStore class to make it easier 
to work with.
    
    * metrics are now stored as strings (Map<String, Object> => Map<String, 
String>) since the differentiation only leads to cumbersome casts.
    * sub-structures are no longer accessed directly but through helper 
methods. This allows traversing several layers with a single call.
    * finally, a simple getMetric(name, defaultValue) was added to easier 
handle metrics that weren't updated yet (and potentially never will) and thus 
would return null

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zentol/flink 4772_4775_metric_store

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/2615.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2615
    
----
commit a350abb5a16b35a11664f254574f6b192c6dca83
Author: zentol <[email protected]>
Date:   2016-10-07T08:11:31Z

    [FLINK-4772] [metrics] Store metrics as strings in MetricStore

commit b9940c15bed2cb4fbe92be259826fa4ab560f629
Author: zentol <[email protected]>
Date:   2016-10-07T08:16:49Z

    [FLINK-4775] [metrics] Simplify MetricStore access

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to