public String getOnlineBrokerAddress() {
        if (CollectionUtils.isEmpty(data)) {
            return null;
        }

        String brokerAddress = null;
        for (BrokerInfo brokerInfo : data) {
            if (brokerInfo.isBrokerOnline()) {
                brokerAddress = brokerInfo.getBrokerIp() + InlongConstants.COLON + brokerInfo.getBrokerWebPort();
                break;
            }
        }

        return brokerAddress;
    }
Get one online broker address of TubeMQ.
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/queue/tubemq/TubeBrokerInfo.java