Class EsIndexTopology.UserDataSpout
java.lang.Object
org.apache.storm.topology.base.BaseComponent
org.apache.storm.topology.base.BaseRichSpout
org.apache.storm.elasticsearch.bolt.EsIndexTopology.UserDataSpout
- All Implemented Interfaces:
Serializable,ISpout,IComponent,IRichSpout
- Enclosing class:
- EsIndexTopology
The user data spout.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAcknowledges the message with idmsgId.voiddeclareOutputFields(OutputFieldsDeclarer declarer) Declaressource,index,typeandid.voidMarks the message with idmsgIdas failed.voidMakes the spout emit the next tuple, if any.voidopen(Map<String, Object> config, TopologyContext context, SpoutOutputCollector collectorArg) Acquirescollectorand initializespending.Methods inherited from class org.apache.storm.topology.base.BaseRichSpout
activate, close, deactivateMethods inherited from class org.apache.storm.topology.base.BaseComponent
getComponentConfigurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.storm.topology.IComponent
getComponentConfiguration
-
Constructor Details
-
UserDataSpout
public UserDataSpout()
-
-
Method Details
-
declareOutputFields
Declaressource,index,typeandid.- Parameters:
declarer- the declarer to pass to
-
open
public void open(Map<String, Object> config, TopologyContext context, SpoutOutputCollector collectorArg) Acquirescollectorand initializespending.- Parameters:
config- unusedcontext- unusedcollectorArg- the collector to acquire
-
nextTuple
public void nextTuple()Makes the spout emit the next tuple, if any. -
ack
Acknowledges the message with idmsgId.- Specified by:
ackin interfaceISpout- Overrides:
ackin classBaseRichSpout- Parameters:
msgId- the message id
-
fail
Marks the message with idmsgIdas failed.- Specified by:
failin interfaceISpout- Overrides:
failin classBaseRichSpout- Parameters:
msgId- the message id
-