use of org.apache.apex.malhar.contrib.nifi.NiFiSinglePortInputOperator in project apex-malhar by apache.
the class TestNiFiInputApplication method populateDAG.
@Override
public void populateDAG(DAG dag, Configuration conf) {
final SiteToSiteClientConfig clientConfig = new SiteToSiteClient.Builder().url("http://localhost:8080/nifi").portName("Apex").requestBatchCount(5).buildConfig();
final SiteToSiteClient.Builder builder = new SiteToSiteClient.Builder().fromConfig(clientConfig);
final WindowDataManager windowDataManager = new WindowDataManager.NoopWindowDataManager();
NiFiSinglePortInputOperator nifi = dag.addOperator("nifi", new NiFiSinglePortInputOperator(builder, windowDataManager));
ConsoleOutputOperator console = dag.addOperator("console", new ConsoleOutputOperator());
dag.addStream("nifi_console", nifi.outputPort, console.input).setLocality(null);
}
Aggregations