com.taobao.metamorphosis.server.store
类 MessageStoreManager
java.lang.Object
com.taobao.metamorphosis.server.store.MessageStoreManager
- 所有已实现的接口:
- Service
public class MessageStoreManager
- extends Object
- implements Service
消息存储管理器
- 作者:
- boyan, wuhua
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HALF_DAY
public static final int HALF_DAY
- 另请参见:
- 常量字段值
MessageStoreManager
public MessageStoreManager(MetaConfig metaConfig,
DeletePolicy deletePolicy)
getMessageStores
public Map<String,ConcurrentHashMap<Integer,MessageStore>> getMessageStores()
getTotalMessagesCount
public long getTotalMessagesCount()
getTopicCount
public int getTopicCount()
chooseRandomPartition
public int chooseRandomPartition(String topic)
getNumPartitions
public int getNumPartitions(String topic)
dispose
public void dispose()
- 指定者:
- 接口
Service
中的 dispose
init
public void init()
- 指定者:
- 接口
Service
中的 init
getAllTopics
public Set<String> getAllTopics()
getMessageStore
public MessageStore getMessageStore(String topic,
int partition)
getOrCreateMessageStore
public MessageStore getOrCreateMessageStore(String topic,
int partition)
throws IOException
- 抛出:
IOException
getOrCreateMessageStore
public MessageStore getOrCreateMessageStore(String topic,
int partition,
long offsetIfCreate)
throws IOException
- 抛出:
IOException
Copyright © 2010–2013. All rights reserved.