Github user abhishekagarwal87 commented on the pull request: https://github.com/apache/storm/pull/1147#issuecomment-188278662 PR is indeed quite large. StatsUtil file is too large right now. I think while we are porting from clojure, we should also shift from functional paradigm to Object oriented paradigm. In that spirit, many utility functions can go directly inside the classes on which they are invoked upon. e.g. ``` public static void emittedTuple(CommonStats stats, String stream) { stats.getEmitted().incBy(stream, stats.rate); } ``` can go to CommonStats itself ``` public void emittedTuple(String stream) { getEmitted().incBy(stream, rate); } ``` Similarly `public static Map renderStats(SpoutExecutorStats stats)` can go to SpoutExecutorStats class itself. These are few examples I could think of in a quick look. But I hope you got the gist of it. It would be good to get the opinion of the @revans2 and and other committers on this as well.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---