public static void setReadWriteServiceStatus(boolean isReadStop,
            boolean isWriteStop,
            String caller) {
        if (isReadStopped.get() != isReadStop) {
            isReadStopped.set(isReadStop);
            if (isReadStop) {
                logger.warn(new StringBuilder(256)
                        .append("[Service Status]: global-read stopped by caller ")
                        .append(caller).toString());
            } else {
                if (isPauseRead.get()) {
                    isPauseRead.set(false);
                    curReadIOExcptCnt.set(0);
                    lastReadStatsTime.set(System.currentTimeMillis());
                }
                logger.warn(new StringBuilder(256)
                        .append("[Service Status]: global-read opened by caller ")
                        .append(caller).toString());
            }
        }
        if (isWriteStopped.get() != isWriteStop) {
            isWriteStopped.set(isWriteStop);
            if (isWriteStop) {
                logger.warn(new StringBuilder(256)
                        .append("[Service Status]: global-write stopped by caller ")
                        .append(caller).toString());
            } else {
                if (isPauseWrite.get()) {
                    isPauseWrite.set(false);
                    curWriteIOExcptCnt.set(0);
                    lastWriteStatsTime.set(System.currentTimeMillis());
                }
                logger.warn(new StringBuilder(256)
                        .append("[Service Status]: global-write opened by caller ")
                        .append(caller).toString());
            }
        }
    }
Set the read and write service status

@param isReadStop      whether stop read service
@param isWriteStop     whether stop write service
@param caller          the caller
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corebase/utils/ServiceStatusHolder.java