@Override
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (this.getClass() != obj.getClass()) {
            return false;
        }
        final BrokerInfo other = (BrokerInfo) obj;
        if (!this.host.equals(other.host)) {
            return false;
        }
        if (this.brokerId != other.brokerId) {
            return false;
        }
        if (this.port != other.port) {
            return false;
        }
        return true;
    }
The BrokerInfo hold basic info of an tube broker the brokerId, the broker host
and the port and so on.
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corebase/cluster/BrokerInfo.java