public synchronized void destroyAllPublishedService() throws Exception {
        for (Integer serverId : servers.keySet()) {
            if (serverId == null) {
                continue;
            }
            ServiceRpcServer serviceServer = servers.remove(serverId);
            if (serviceServer == null) {
                continue;
            }
            serviceServer.removeAllService(RpcProtocol.RPC_PROTOCOL_TCP);
            serviceServer.removeAllService(RpcProtocol.RPC_PROTOCOL_TLS);
            serviceServer.stop();
        }
    }
start an tube netty server

@param clazz             the class object
@param serviceInstance   the service instance
@param listenPort        the listen port
@param threadPool        the thread pool
@param config            the configure
@throws Exception        the excepition while processing
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corerpc/RpcServiceFactory.java