com.alibaba.rocketmq.store.ha
类 HAService
java.lang.Object
com.alibaba.rocketmq.store.ha.HAService
public class HAService
- extends Object
HA服务,负责同步双写,异步复制功能
- 从以下版本开始:
- 2013-7-21
- 作者:
- shijia.wxr
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HAService
public HAService(DefaultMessageStore defaultMessageStore)
throws IOException
- 抛出:
IOException
updateMasterAddress
public void updateMasterAddress(String newAddr)
putRequest
public void putRequest(CommitLog.GroupCommitRequest request)
isSlaveOK
public boolean isSlaveOK(long masterPutWhere)
- 判断主从之间数据传输是否正常
- 返回:
notifyTransferSome
public void notifyTransferSome(long offset)
- 通知复制了部分数据
getConnectionCount
public AtomicInteger getConnectionCount()
start
public void start()
addConnection
public void addConnection(HAConnection conn)
removeConnection
public void removeConnection(HAConnection conn)
shutdown
public void shutdown()
destroyConnections
public void destroyConnections()
getDefaultMessageStore
public DefaultMessageStore getDefaultMessageStore()
getWaitNotifyObject
public WaitNotifyObject getWaitNotifyObject()
getPush2SlaveMaxOffset
public AtomicLong getPush2SlaveMaxOffset()
Copyright © 2012–2015. All rights reserved.