use of org.apache.heron.streamlet.impl.BuilderImpl in project heron by twitter.
the class SimulatorRunner method run.
/**
* Runs the computation
* @param name The name of the topology
* @param config Any config that is passed to the topology
* @param builder The builder used to keep track of the sources.
*/
public void run(String name, Config config, Builder builder) {
BuilderImpl bldr = (BuilderImpl) builder;
TopologyBuilder topologyBuilder = bldr.build();
Simulator simulator = new Simulator();
simulator.submitTopology(name, config.getHeronConfig(), topologyBuilder.createTopology());
}
Aggregations