Search in sources :

Example 6 with BrokerStatsManager

use of org.apache.rocketmq.store.stats.BrokerStatsManager in project rocketmq by apache.

the class DefaultMessageStoreTest method buildMessageStore.

public MessageStore buildMessageStore() throws Exception {
    MessageStoreConfig messageStoreConfig = new MessageStoreConfig();
    messageStoreConfig.setMapedFileSizeCommitLog(1024 * 1024 * 10);
    messageStoreConfig.setMapedFileSizeConsumeQueue(1024 * 1024 * 10);
    messageStoreConfig.setMaxHashSlotNum(10000);
    messageStoreConfig.setMaxIndexNum(100 * 100);
    messageStoreConfig.setFlushDiskType(FlushDiskType.SYNC_FLUSH);
    return new DefaultMessageStore(messageStoreConfig, new BrokerStatsManager("simpleTest"), new MyMessageArrivingListener(), new BrokerConfig());
}
Also used : BrokerStatsManager(org.apache.rocketmq.store.stats.BrokerStatsManager) MessageStoreConfig(org.apache.rocketmq.store.config.MessageStoreConfig) BrokerConfig(org.apache.rocketmq.common.BrokerConfig)

Aggregations

BrokerConfig (org.apache.rocketmq.common.BrokerConfig)6 MessageStoreConfig (org.apache.rocketmq.store.config.MessageStoreConfig)6 BrokerStatsManager (org.apache.rocketmq.store.stats.BrokerStatsManager)6 CommitLogDispatcher (org.apache.rocketmq.store.CommitLogDispatcher)2 DefaultMessageStore (org.apache.rocketmq.store.DefaultMessageStore)2 DispatchRequest (org.apache.rocketmq.store.DispatchRequest)2 MessageArrivingListener (org.apache.rocketmq.store.MessageArrivingListener)2