private void checkServiceStatus() throws TubeClientException {
        if (nodeStatus.get() < 0) {
            throw new TubeClientException("Status error: please call start function first!");
        }
        if (nodeStatus.get() > 0) {
            throw new TubeClientException("Status error: producer service has been shutdown!");
        }
    }
Get partitions of the given topic.

@param topic topic name
@return partition map
inlong-tubemq/tubemq-client/src/main/java/org/apache/inlong/tubemq/client/producer/ProducerManager.java