Search in sources :

Example 1 with PulsarEventSelector

use of org.apache.inlong.manager.service.thirdparty.mq.PulsarEventSelector in project incubator-inlong by apache.

the class ServiceTaskListenerFactory method init.

@PostConstruct
public void init() {
    sourceOperateListeners = new LinkedHashMap<>();
    sourceOperateListeners.put(sourceStopListener, new SourceStopEventSelector());
    sourceOperateListeners.put(sourceDeleteListener, new SourceDeleteEventSelector());
    sourceOperateListeners.put(sourceRestartListener, new SourceRestartEventSelector());
    sinkOperateListeners = new LinkedHashMap<>();
    sinkOperateListeners.put(createHiveTableListener, createHiveTableEventSelector);
    queueOperateListeners = new LinkedHashMap<>();
    queueOperateListeners.put(createTubeTopicTaskListener, new TubeEventSelector());
    queueOperateListeners.put(createTubeGroupTaskListener, new TubeEventSelector());
    queueOperateListeners.put(createPulsarResourceTaskListener, new PulsarEventSelector());
    queueOperateListeners.put(createPulsarGroupTaskListener, new PulsarEventSelector());
    sortOperateListeners = new LinkedHashMap<>();
    sortOperateListeners.put(pushSortConfigListener, zkEnabledEventSelector);
    sortOperateListeners.put(createSortConfigListener, zkDisabledEventSelector);
}
Also used : TubeEventSelector(org.apache.inlong.manager.service.thirdparty.mq.TubeEventSelector) SourceDeleteEventSelector(org.apache.inlong.manager.service.source.listener.SourceDeleteEventSelector) SourceRestartEventSelector(org.apache.inlong.manager.service.source.listener.SourceRestartEventSelector) SourceStopEventSelector(org.apache.inlong.manager.service.source.listener.SourceStopEventSelector) PulsarEventSelector(org.apache.inlong.manager.service.thirdparty.mq.PulsarEventSelector) PostConstruct(javax.annotation.PostConstruct)

Aggregations

PostConstruct (javax.annotation.PostConstruct)1 SourceDeleteEventSelector (org.apache.inlong.manager.service.source.listener.SourceDeleteEventSelector)1 SourceRestartEventSelector (org.apache.inlong.manager.service.source.listener.SourceRestartEventSelector)1 SourceStopEventSelector (org.apache.inlong.manager.service.source.listener.SourceStopEventSelector)1 PulsarEventSelector (org.apache.inlong.manager.service.thirdparty.mq.PulsarEventSelector)1 TubeEventSelector (org.apache.inlong.manager.service.thirdparty.mq.TubeEventSelector)1