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); }
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); }
public BrokerStatisticInfo GetBrokerStatisticInfo() { var statisticInfo = new BrokerStatisticInfo(); statisticInfo.BrokerInfo = Setting.BrokerInfo; statisticInfo.TopicCount = _queueStore.GetAllTopics().Count(); statisticInfo.QueueCount = _queueStore.GetAllQueueCount(); statisticInfo.TotalUnConsumedMessageCount = _queueStore.GetTotalUnConusmedMessageCount(); statisticInfo.ConsumerGroupCount = _consumeOffsetStore.GetConsumerGroupCount(); statisticInfo.ProducerCount = _producerManager.GetProducerCount(); statisticInfo.ConsumerCount = _consumerManager.GetAllConsumerCount(); statisticInfo.MessageChunkCount = _messageStore.ChunkCount; statisticInfo.MessageMinChunkNum = _messageStore.MinChunkNum; statisticInfo.MessageMaxChunkNum = _messageStore.MaxChunkNum; statisticInfo.TotalSendThroughput = _tpsStatisticService.GetTotalSendThroughput(); statisticInfo.TotalConsumeThroughput = _tpsStatisticService.GetTotalConsumeThroughput(); return(statisticInfo); }