public void addDiscoverySyncDataListener(final DiscoveryHandlerDTO discoveryHandlerDTO, final ProxySelectorDTO proxySelectorDTO) {
        final DataChangedEventListener changedEventListener = this.getChangedEventListener(discoveryHandlerDTO.getDiscoveryId());
        if (Objects.nonNull(changedEventListener)) {
            DiscoverySyncData discoverySyncData = new DiscoverySyncData();
            discoverySyncData.setPluginName(proxySelectorDTO.getPluginName());
            discoverySyncData.setSelectorName(proxySelectorDTO.getName());
            discoverySyncData.setSelectorId(proxySelectorDTO.getId());
            discoverySyncData.setNamespaceId(proxySelectorDTO.getNamespaceId());
            discoverySyncData.setDiscoveryHandlerId(discoveryHandlerDTO.getId());
            changedEventListener.addListener(discoverySyncData);
        }
    }
addDiscoverySyncDataListener.

@param discoveryHandlerDTO discoveryHandlerDTO
@param proxySelectorDTO proxySelectorDTO
shenyu-admin/src/main/java/org/apache/shenyu/admin/discovery/AbstractDiscoveryProcessor.java