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 Details

    • StatusMetricsBolt

      public StatusMetricsBolt()
  • Method Details

    • prepare

      public void prepare(Map<String,Object> stormConf, org.apache.storm.task.TopologyContext context, org.apache.storm.task.OutputCollector collector)
    • getComponentConfiguration

      public Map<String,Object> getComponentConfiguration()
      Specified by:
      getComponentConfiguration in interface org.apache.storm.topology.IComponent
      Overrides:
      getComponentConfiguration in class org.apache.storm.topology.base.BaseComponent
    • execute

      public void execute(org.apache.storm.tuple.Tuple input)
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface org.apache.storm.task.IBolt
      Overrides:
      cleanup in class org.apache.storm.topology.base.BaseRichBolt
    • declareOutputFields

      public void declareOutputFields(org.apache.storm.topology.OutputFieldsDeclarer declarer)