use of org.apache.storm.perf.spout.ConstSpout in project storm by apache.
the class ConstSpoutOnlyTopo method getTopology.
static StormTopology getTopology() {
// 1 - Setup Const Spout --------
ConstSpout spout = new ConstSpout("some data").withOutputFields("str");
// 2 - Setup Topology --------
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout(SPOUT_ID, spout, 1);
return builder.createTopology();
}
Aggregations