use of com.datatorrent.api.DAG in project apex-malhar by apache.
the class WindowedOperatorBenchmarkAppTest method test.
@Test
public void test() throws Exception {
Configuration conf = new Configuration(false);
LocalMode lma = LocalMode.newInstance();
DAG dag = lma.getDAG();
super.populateDAG(dag, conf);
StreamingApplication app = new StreamingApplication() {
@Override
public void populateDAG(DAG dag, Configuration conf) {
}
};
lma.prepareDAG(app, conf);
// Create local cluster
final LocalMode.Controller lc = lma.getController();
lc.run(3000000);
lc.shutdown();
}
Aggregations