use of org.apache.heron.integration_topology_test.core.TopologyTestTopologyBuilder in project heron by twitter.
the class AbstractTestTopology method submit.
public final void submit(Config userConf) throws AlreadyAliveException, InvalidTopologyException {
Config conf = buildConfig(new BasicConfig());
if (userConf != null) {
conf.putAll(userConf);
}
if (this.httpServerResultsUrl == null) {
TopologyBuilder builder = new TopologyBuilder();
HeronSubmitter.submitTopology(topologyName, conf, buildTopology(builder).createTopology());
} else {
TopologyTestTopologyBuilder builder = new TopologyTestTopologyBuilder(httpServerResultsUrl);
conf.setTopologyReliabilityMode(Config.TopologyReliabilityMode.EFFECTIVELY_ONCE);
conf.setTopologyStatefulCheckpointIntervalSecs(CHECKPOINT_INTERVAL);
HeronSubmitter.submitTopology(topologyName, conf, buildStatefulTopology(builder).createTopology());
}
}
Aggregations