@Override
    public void configure(Context context) {
        String masters = context.getString(MASTER_CHANNEL);
        if (StringUtils.isEmpty(masters)) {
            throw new FlumeException("master channel is null!");
        }
        List<String> masterList = splitChannelName(masters);

        for (Map.Entry<String, Channel> entry : getChannelNameMap().entrySet()) {
            String channelName = entry.getKey();
            Channel channel = entry.getValue();
            if (masterList.contains(channelName)) {
                this.masterChannels.add(channel);
            } else {
                this.slaveChannels.add(channel);
            }
        }
        LOG.info("masters:" + this.masterChannels);
        LOG.info("slaves:" + this.slaveChannels);
    }
split channel name into name list.

@param channelName - channel name
@return - name list
inlong-audit/audit-proxy/src/main/java/org/apache/inlong/audit/channel/FailoverChannelSelector.java