use of com.datatorrent.stram.engine.TestAppDataQueryOperator in project apex-core by apache.
the class StreamingContainerManagerTest method setupAppDataSourceLogicalPlan.
private void setupAppDataSourceLogicalPlan(Class<? extends TestAppDataQueryOperator> qClass, Class<? extends TestAppDataSourceOperator> dsClass, Class<? extends TestAppDataResultOperator> rClass) {
TestGeneratorInputOperator o1 = dag.addOperator("o1", TestGeneratorInputOperator.class);
TestAppDataQueryOperator q = dag.addOperator("q", qClass);
TestAppDataResultOperator r = dag.addOperator("r", rClass);
TestAppDataSourceOperator ds = dag.addOperator("ds", dsClass);
q.setAppDataUrl("ws://123.123.123.123:9090/pubsub");
q.setTopic("xyz.query");
r.setAppDataUrl("ws://123.123.123.124:9090/pubsub");
r.setTopic("xyz.result");
dag.addStream("o1-to-ds", o1.outport, ds.inport1);
dag.addStream("q-to-ds", q.outport, ds.query);
dag.addStream("ds-to-r", ds.result, r.inport);
}
Aggregations