Package org.apache.storm.testing
Class ForwardingMetricsConsumer
java.lang.Object
org.apache.storm.testing.ForwardingMetricsConsumer
- All Implemented Interfaces:
IMetricsConsumer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.storm.metric.api.IMetricsConsumer
IMetricsConsumer.DataPoint, IMetricsConsumer.TaskInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
void
handleDataPoints
(IMetricsConsumer.TaskInfo taskInfo, Collection<IMetricsConsumer.DataPoint> dataPoints) void
prepare
(Map<String, Object> topoConf, Object registrationArgument, TopologyContext context, IErrorReporter errorReporter)
-
Constructor Details
-
ForwardingMetricsConsumer
public ForwardingMetricsConsumer()
-
-
Method Details
-
prepare
public void prepare(Map<String, Object> topoConf, Object registrationArgument, TopologyContext context, IErrorReporter errorReporter) - Specified by:
prepare
in interfaceIMetricsConsumer
-
handleDataPoints
public void handleDataPoints(IMetricsConsumer.TaskInfo taskInfo, Collection<IMetricsConsumer.DataPoint> dataPoints) - Specified by:
handleDataPoints
in interfaceIMetricsConsumer
-
cleanup
public void cleanup()- Specified by:
cleanup
in interfaceIMetricsConsumer
-