[
https://issues.apache.org/jira/browse/STORM-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15184891#comment-15184891
]
ASF GitHub Bot commented on STORM-1252:
---------------------------------------
Github user unsleepy22 commented on the pull request:
https://github.com/apache/storm/pull/1147#issuecomment-193779382
@revans2 I've changed according to your opinion, still, the code in
StatsUtil might be quite rough and clojure-way, I just want to make sure it's
the right move, hope you can take a quick look.
My changes are:
1. changed executor heartbeat structure to java HashMap instead of clojure
map (and yes there's still a Map anyway)
2. moved update-heartbeat-cache method into StatsUtil.java, because of the
change to clojure structure to HashMap, they should be moved back when
translating nimbus.clj, I added TODO in methods.
3. because the HashMap structure is quite mixed, e.g., it may store "rate"
of stats which is a double, and store "emitted" which is a HashMap, so in many
methods, I used Map<String, Object>.
4. for structures like "executor->host+port", I still used the original
clojure structure because I think they might be used somewhere else, I only
want to change stats related with this PR
BTW. about your test last time, it's actually a bug of my code, I fixed
this, sorry for the confusion.
> port backtype.storm.stats to java
> ---------------------------------
>
> Key: STORM-1252
> URL: https://issues.apache.org/jira/browse/STORM-1252
> Project: Apache Storm
> Issue Type: New Feature
> Components: storm-core
> Reporter: Robert Joseph Evans
> Assignee: Cody
> Labels: java-migration, jstorm-merger
>
> clojure methods for getting/setting built-in statistics. Mostly wrappers
> around some java classes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)