@Override
    public void configure(Context context) {
        // LOG.info(context.toString());
        String masters = context.getString(MASTER_CHANNEL);
        String transfer = context.getString(TRANSFER_CHANNEL);
        String fileMertic = context.getString(FILE_METRIC_CHANNEL);
        String slaMetric = context.getString(SLA_METRIC_CHANNEL);
        String orderMetric = context.getString(ORDER_CHANNEL);
        if (StringUtils.isEmpty(masters)) {
            throw new FlumeException("master channel is null!");
        }
        List<String> masterList = splitChannelName(masters);
        List<String> transferList = splitChannelName(transfer);
        List<String> fileMetricList = splitChannelName(fileMertic);
        List<String> slaMetricList = splitChannelName(slaMetric);
        List<String> orderMetricList = splitChannelName(orderMetric);

        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 if (transferList.contains(channelName)) {
                this.transferChannels.add(channel);
            } else if (fileMetricList.contains(channelName)) {
                this.agentFileMetricChannels.add(channel);
            } else if (slaMetricList.contains(channelName)) {
                this.slaMetricChannels.add(channel);
            } else if (orderMetricList.contains(channelName)) {
                this.orderChannels.add(channel);
            } else {
                this.slaveChannels.add(channel);
            }
        }
        LOG.info(
                "Configure channels, masters={}, orders={}, slaves={}, transfers={}, agentFileMetrics={}, slaMetrics={}",
                this.masterChannels, this.orderChannels, this.slaveChannels,
                this.transferChannels, this.agentFileMetricChannels, this.slaMetricChannels);
    }
split channel name into name list.

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