Permalink
Browse files

add metrics methods to IMetricsContext

  • Loading branch information...
1 parent e2f041e commit e64ac0c07ab8c09007399cf2c569dc3d82cb0f28 @nathanmarz committed Dec 7, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/jvm/backtype/storm/task/IMetricsContext.java
@@ -1,6 +1,14 @@
package backtype.storm.task;
+import backtype.storm.metric.api.CombinedMetric;
+import backtype.storm.metric.api.ICombiner;
+import backtype.storm.metric.api.IMetric;
+import backtype.storm.metric.api.IReducer;
+import backtype.storm.metric.api.ReducedMetric;
+
public interface IMetricsContext {
-
+ <T extends IMetric> T registerMetric(String name, T metric, int timeBucketSizeInSecs);
+ ReducedMetric registerMetric(String name, IReducer reducer, int timeBucketSizeInSecs);
+ CombinedMetric registerMetric(String name, ICombiner combiner, int timeBucketSizeInSecs);
}

0 comments on commit e64ac0c

Please sign in to comment.