use of org.apache.heron.api.exception.AlreadyAliveException in project heron by twitter.
the class Runner 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();
try {
HeronSubmitter.submitTopology(name, config.getHeronConfig(), topologyBuilder.createTopology());
} catch (AlreadyAliveException | InvalidTopologyException e) {
e.printStackTrace();
}
}
Aggregations