use of org.apache.heron.api.HeronTopology in project heron by twitter.
the class HeronExecutorTaskTest method createTestTopology.
Topology createTestTopology(String name) {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("spout-1", new TestSpout(), 2);
builder.setBolt("bolt-1", new TestBolt(), 1).shuffleGrouping("spout-1");
HeronTopology topology = builder.createTopology();
org.apache.heron.api.Config config = new org.apache.heron.api.Config();
return topology.setName(name).setConfig(config).setState(TopologyState.RUNNING).getTopology();
}
Aggregations