use of org.apache.inlong.manager.workflow.event.EventSelector in project incubator-inlong by apache.
the class ServiceTaskListenerFactory method acceptPlugin.
@Override
public void acceptPlugin(Plugin plugin) {
if (!(plugin instanceof ProcessPlugin)) {
return;
}
ProcessPlugin processPlugin = (ProcessPlugin) plugin;
Map<DataSourceOperateListener, EventSelector> pluginDsOperateListeners = processPlugin.createSourceOperateListeners();
if (MapUtils.isNotEmpty(pluginDsOperateListeners)) {
sourceOperateListeners.putAll(processPlugin.createSourceOperateListeners());
}
Map<SinkOperateListener, EventSelector> pluginSinkOperateListeners = processPlugin.createSinkOperateListeners();
if (MapUtils.isNotEmpty(pluginSinkOperateListeners)) {
sinkOperateListeners.putAll(pluginSinkOperateListeners);
}
Map<QueueOperateListener, EventSelector> pluginQueueOperateListeners = processPlugin.createQueueOperateListeners();
if (MapUtils.isNotEmpty(pluginQueueOperateListeners)) {
queueOperateListeners.putAll(pluginQueueOperateListeners);
}
Map<SortOperateListener, EventSelector> pluginSortOperateListeners = processPlugin.createSortOperateListeners();
if (MapUtils.isNotEmpty(pluginSortOperateListeners)) {
sortOperateListeners.putAll(pluginSortOperateListeners);
}
}
Aggregations