Class StatusMetricsBolt
java.lang.Object
org.apache.storm.topology.base.BaseComponent
org.apache.storm.topology.base.BaseRichBolt
com.digitalpebble.stormcrawler.opensearch.metrics.StatusMetricsBolt
- All Implemented Interfaces:
Serializable,org.apache.storm.task.IBolt,org.apache.storm.topology.IComponent,org.apache.storm.topology.IRichBolt
public class StatusMetricsBolt
extends org.apache.storm.topology.base.BaseRichBolt
Queries the status index periodically to get the count of URLs per status. This bolt can be
connected to the output of any other bolt and will not produce anything as output.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()voiddeclareOutputFields(org.apache.storm.topology.OutputFieldsDeclarer declarer) voidexecute(org.apache.storm.tuple.Tuple input) voidprepare(Map<String, Object> stormConf, org.apache.storm.task.TopologyContext context, org.apache.storm.task.OutputCollector collector)
-
Constructor Details
-
StatusMetricsBolt
public StatusMetricsBolt()
-
-
Method Details
-
prepare
-
getComponentConfiguration
- Specified by:
getComponentConfigurationin interfaceorg.apache.storm.topology.IComponent- Overrides:
getComponentConfigurationin classorg.apache.storm.topology.base.BaseComponent
-
execute
public void execute(org.apache.storm.tuple.Tuple input) -
cleanup
public void cleanup()- Specified by:
cleanupin interfaceorg.apache.storm.task.IBolt- Overrides:
cleanupin classorg.apache.storm.topology.base.BaseRichBolt
-
declareOutputFields
public void declareOutputFields(org.apache.storm.topology.OutputFieldsDeclarer declarer)
-