org.tomdz.storm.esper
Class EsperBolt

java.lang.Object
  extended by org.tomdz.storm.esper.EsperBolt
All Implemented Interfaces:
backtype.storm.task.IBolt, backtype.storm.topology.IComponent, backtype.storm.topology.IRichBolt, com.espertech.esper.client.UpdateListener, Serializable

public class EsperBolt
extends Object
implements backtype.storm.topology.IRichBolt, com.espertech.esper.client.UpdateListener

See Also:
Serialized Form

Nested Class Summary
static class EsperBolt.Builder
           
 
Method Summary
 void cleanup()
           
 void declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer)
           
 void execute(backtype.storm.tuple.Tuple tuple)
           
 String getEventTypeForStreamId(int streamId)
           
 List<String> getEventTypes()
           
 backtype.storm.tuple.Fields getFieldsForEventType(String eventType)
           
 Integer getStreamIdForEventType(String eventType)
           
 void prepare(Map conf, backtype.storm.task.TopologyContext context, backtype.storm.task.OutputCollector collector)
           
 void update(com.espertech.esper.client.EventBean[] newEvents, com.espertech.esper.client.EventBean[] oldEvents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEventTypes

public List<String> getEventTypes()

getFieldsForEventType

public backtype.storm.tuple.Fields getFieldsForEventType(String eventType)

getStreamIdForEventType

public Integer getStreamIdForEventType(String eventType)

getEventTypeForStreamId

public String getEventTypeForStreamId(int streamId)

declareOutputFields

public void declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer)
Specified by:
declareOutputFields in interface backtype.storm.topology.IComponent

prepare

public void prepare(Map conf,
                    backtype.storm.task.TopologyContext context,
                    backtype.storm.task.OutputCollector collector)
Specified by:
prepare in interface backtype.storm.task.IBolt

execute

public void execute(backtype.storm.tuple.Tuple tuple)
Specified by:
execute in interface backtype.storm.task.IBolt

update

public void update(com.espertech.esper.client.EventBean[] newEvents,
                   com.espertech.esper.client.EventBean[] oldEvents)
Specified by:
update in interface com.espertech.esper.client.UpdateListener

cleanup

public void cleanup()
Specified by:
cleanup in interface backtype.storm.task.IBolt


Copyright © 2011. All Rights Reserved.