public class Twister2Spout extends java.lang.Object implements ISource, Twister2StormNode
Constructor and Description |
---|
Twister2Spout(java.lang.String id,
IRichSpout stormSpout) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute without an incoming message
|
java.lang.String |
getId() |
Fields |
getOutFieldsForEdge(java.lang.String edge) |
java.lang.Integer |
getParallelism() |
Twister2SpoutDeclarer |
getSpoutDeclarer() |
void |
prepare(Config cfg,
TaskContext context)
Prepare the task to be executed
|
void |
setKeyedOutEdges(java.lang.String edge,
Fields keys) |
void |
setParallelism(java.lang.Integer parallelism) |
public Twister2Spout(java.lang.String id, IRichSpout stormSpout)
public void setParallelism(java.lang.Integer parallelism)
public java.lang.Integer getParallelism()
public Twister2SpoutDeclarer getSpoutDeclarer()
public Fields getOutFieldsForEdge(java.lang.String edge)
getOutFieldsForEdge
in interface Twister2StormNode
public void setKeyedOutEdges(java.lang.String edge, Fields keys)
setKeyedOutEdges
in interface Twister2StormNode
public java.lang.String getId()
getId
in interface Twister2StormNode
public void execute()
ISource
public void prepare(Config cfg, TaskContext context)
INode