public BrokerStatisticInfo GetBrokerStatisticInfo()
 {
     var statisticInfo = new BrokerStatisticInfo();
     statisticInfo.TopicCount = _queueService.GetAllTopics().Count();
     statisticInfo.QueueCount = _queueService.GetAllQueueCount();
     statisticInfo.UnConsumedQueueMessageCount = _queueService.GetAllQueueUnConusmedMessageCount();
     statisticInfo.InMemoryQueueMessageCount = _queueService.GetAllQueueIndexCount();
     statisticInfo.CurrentMessageOffset = _messageStore.CurrentMessageOffset;
     statisticInfo.PersistedMessageOffset = _messageStore.PersistedMessageOffset;
     statisticInfo.MinMessageOffset = _queueService.GetQueueMinMessageOffset();
     statisticInfo.ConsumerGroupCount = _offsetManager.GetConsumerGroupCount();
     return statisticInfo;
 }
Exemple #2
0
 public BrokerStatisticInfo GetBrokerStatisticInfo()
 {
     var statisticInfo = new BrokerStatisticInfo();
     statisticInfo.TopicCount = _queueStore.GetAllTopics().Count();
     statisticInfo.QueueCount = _queueStore.GetAllQueueCount();
     statisticInfo.TotalUnConsumedMessageCount = _queueStore.GetTotalUnConusmedMessageCount();
     statisticInfo.ConsumerGroupCount = _consumerManager.GetConsumerGroupCount();
     statisticInfo.ConsumerCount = _consumerManager.GetConsumerCount();
     statisticInfo.MessageChunkCount = _messageStore.ChunkCount;
     statisticInfo.MessageMinChunkNum = _messageStore.MinChunkNum;
     statisticInfo.MessageMaxChunkNum = _messageStore.MaxChunkNum;
     return statisticInfo;
 }