Search in sources :

Example 1 with DefaultApexPluginDispatcher

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()));
}
Also used : ChainedPluginLocator(org.apache.apex.engine.plugin.loaders.ChainedPluginLocator) ApexPluginDispatcher(org.apache.apex.engine.plugin.ApexPluginDispatcher) DefaultApexPluginDispatcher(org.apache.apex.engine.plugin.DefaultApexPluginDispatcher) DefaultApexPluginDispatcher(org.apache.apex.engine.plugin.DefaultApexPluginDispatcher) DAGExecutionPlugin(org.apache.apex.engine.api.plugin.DAGExecutionPlugin)

Aggregations

DAGExecutionPlugin (org.apache.apex.engine.api.plugin.DAGExecutionPlugin)1 ApexPluginDispatcher (org.apache.apex.engine.plugin.ApexPluginDispatcher)1 DefaultApexPluginDispatcher (org.apache.apex.engine.plugin.DefaultApexPluginDispatcher)1 ChainedPluginLocator (org.apache.apex.engine.plugin.loaders.ChainedPluginLocator)1