use of org.apache.apex.engine.plugin.DefaultApexPluginDispatcher in project apex-core by apache.
the class StreamingAppMasterService method initApexPluginDispatcher.
private void initApexPluginDispatcher() {
PluginLocator<DAGExecutionPlugin> locator = new ChainedPluginLocator<>(new ServiceLoaderBasedPluginLocator<>(DAGExecutionPlugin.class), new PropertyBasedPluginLocator<>(DAGExecutionPlugin.class, PLUGINS_CONF_KEY));
apexPluginDispatcher = new DefaultApexPluginDispatcher(locator, appContext, dnmgr, stats);
dnmgr.apexPluginDispatcher = apexPluginDispatcher;
addService(apexPluginDispatcher);
apexPluginDispatcher.dispatch(new ApexPluginDispatcher.DAGChangeEvent(dnmgr.getLogicalPlan()));
}
Aggregations