private void getStatsValue(boolean isWriting,
            MsgStoreStatsItemSet statsSet,
            Map<String, Long> statsMap) {
        statsMap.put(statsSet.resetTime.getFullName(),
                statsSet.resetTime.getSinceTime());
        statsMap.put("isClosed", (isStatsClosed() ? 1L : 0L));
        // for memory store
        statsSet.msgAppendSizeStats.getValue(statsMap, false);
        statsSet.msgAppendDurStats.getValue(statsMap, false);
        statsMap.put(statsSet.msgAppendFailCnt.getFullName(),
                statsSet.msgAppendFailCnt.getValue());
        statsMap.put(statsSet.cacheDataSizeFullCnt.getFullName(),
                statsSet.cacheDataSizeFullCnt.getValue());
        statsMap.put(statsSet.cacheIndexSizeFullCnt.getFullName(),
                statsSet.cacheIndexSizeFullCnt.getValue());
        statsMap.put(statsSet.cacheMsgCountFullCnt.getFullName(),
                statsSet.cacheMsgCountFullCnt.getValue());
        statsMap.put(statsSet.cacheTimeFullCnt.getFullName(),
                statsSet.cacheTimeFullCnt.getValue());
        statsMap.put(statsSet.cacheFlushPendingCnt.getFullName(),
                statsSet.cacheFlushPendingCnt.getValue());
        statsMap.put(statsSet.cacheReAllocCnt.getFullName(),
                statsSet.cacheReAllocCnt.getValue());
        // for file store
        statsMap.put(statsSet.fileAccumMsgCnt.getFullName(),
                statsSet.fileAccumMsgCnt.getValue());
        statsMap.put(statsSet.fileAccumMsgDataSize.getFullName(),
                statsSet.fileAccumMsgDataSize.getValue());
        statsMap.put(statsSet.fileAccumMsgIndexSize.getFullName(),
                statsSet.fileAccumMsgIndexSize.getValue());
        statsSet.fileFlusheDurStats.getValue(statsMap, false);
        statsSet.fileFlushedDataSize.getValue(statsMap, false);
        statsSet.fileFlushedMsgCnt.getValue(statsMap, false);
        statsMap.put(statsSet.fileDataSegAddCnt.getFullName(),
                statsSet.fileDataSegAddCnt.getValue());
        statsMap.put(statsSet.fileIndexSegAddCnt.getFullName(),
                statsSet.fileIndexSegAddCnt.getValue());
        statsMap.put(statsSet.fileMetaFlushCnt.getFullName(),
                statsSet.fileMetaFlushCnt.getValue());
        statsMap.put(statsSet.fileDataSizeFullCnt.getFullName(),
                statsSet.fileDataSizeFullCnt.getValue());
        statsMap.put(statsSet.fileMsgCountFullCnt.getFullName(),
                statsSet.fileMsgCountFullCnt.getValue());
        statsMap.put(statsSet.fileCachedTimeFullCnt.getFullName(),
                statsSet.fileCachedTimeFullCnt.getValue());
        if (isWriting) {
            statsMap.put(statsSet.snapShotTime.getFullName(),
                    System.currentTimeMillis());
        } else {
            statsMap.put(statsSet.snapShotTime.getFullName(),
                    statsSet.snapShotTime.getSinceTime());
        }
    }
Read metric block data into map.

@param isWriting    the metric block is writing
@param statsSet     the metric block need to read
@param statsMap     the read result
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/stats/MsgStoreStatsHolder.java