[ https://issues.apache.org/jira/browse/STORM-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15132575#comment-15132575 ]
ASF GitHub Bot commented on STORM-1524: --------------------------------------- Github user d2r commented on a diff in the pull request: https://github.com/apache/storm/pull/1075#discussion_r51901856 --- Diff: storm-core/src/jvm/org/apache/storm/daemon/metrics/reporters/PreparableReporter.java --- @@ -0,0 +1,32 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.storm.daemon.metrics.reporters; + +import com.codahale.metrics.MetricRegistry; +import com.codahale.metrics.Reporter; + +import java.io.Closeable; +import java.util.Map; + + +public interface PreparableReporter<T extends Reporter & Closeable> { + public void prepare(MetricRegistry metricsRegistry, Map stormConf); + public void start(); + public void stop(); --- End diff -- minor: `public` could be removed > Make Storm daemon function statistics reporter pluggable > -------------------------------------------------------- > > Key: STORM-1524 > URL: https://issues.apache.org/jira/browse/STORM-1524 > Project: Apache Storm > Issue Type: New Feature > Components: storm-core > Affects Versions: 0.10.0, 1.0.0, 0.10.1 > Reporter: Kishor Patil > Assignee: Kishor Patil > > We use codahale, metrics-clojure to gather daemon side stats, but currently > the we have only three reporters available which use builder pattern. So it > would be useful to have ability to plugin different reporters that can use > configuration instead of builder pattern. -- This message was sent by Atlassian JIRA (v6.3.4#6332)