public void tolog() {
Map<String/* topic@group */, ConcurrentHashMap<Integer, Long>> offsetTable =
brokerController.getConsumerOffsetManager().getOffsetTable();
DefaultMessageStore defaultMessageStore = (DefaultMessageStore) brokerController.getMessageStore();
for (String key : offsetTable.keySet()) {
String[] strs = key.split(TOPIC_GROUP_SEPARATOR);
String topic = strs[0];
String group = strs[1];
for (Integer queueId : offsetTable.get(key).keySet()) {
long maxoffsize = defaultMessageStore.getMaxOffsetInQuque(topic, queueId);
StringBuffer sb = new StringBuffer();
sb.append("Client Put And get Count").append(",");
sb.append("Topic[").append(topic).append("],");
sb.append("Mq[").append(brokerController.getBrokerConfig().getBrokerName() + "-" + queueId)
.append("],");