You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Aljoscha Krettek (JIRA)" <ji...@apache.org> on 2016/06/13 12:40:21 UTC

[jira] [Commented] (FLINK-4064) Allow calling MetricGroup methods multiple times

    [ https://issues.apache.org/jira/browse/FLINK-4064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327273#comment-15327273 ] 

Aljoscha Krettek commented on FLINK-4064:
-----------------------------------------

[~Zentol] Do you think this is alright? I think we just need to check the map when calling the method, correct?

> Allow calling MetricGroup methods multiple times
> ------------------------------------------------
>
>                 Key: FLINK-4064
>                 URL: https://issues.apache.org/jira/browse/FLINK-4064
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Metrics
>    Affects Versions: 1.1.0
>            Reporter: Aljoscha Krettek
>
> Right now, the methods on {{MetricGroup}} can only be called once, i.e. I have to keep the result of {{MetricGroup.counter(name)}} and use that to report metrics. For some cases, such as adding metrics support in triggers, it is necessary to allow calling a method multiple times and return the same metric object. On the first call, a new metric object would be created, subsequent calls would return that metric object.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)