com.taobao.metamorphosis.gregor.master
类 SamsaCommandProcessor
java.lang.Object
com.taobao.metamorphosis.server.assembly.BrokerCommandProcessor
com.taobao.metamorphosis.gregor.master.SamsaCommandProcessor
- 所有已实现的接口:
- CommandProcessor, Service
public class SamsaCommandProcessor
- extends BrokerCommandProcessor
Master的broker command processor,暂不支持所有事务操作
- 作者:
- boyan(boyan@taobao.com)
构造方法摘要 |
SamsaCommandProcessor()
|
SamsaCommandProcessor(MessageStoreManager storeManager,
ExecutorsManager executorsManager,
StatsManager statsManager,
com.taobao.gecko.service.RemotingServer remotingServer,
MetaConfig metaConfig,
IdWorker idWorker,
BrokerZooKeeper brokerZooKeeper,
com.taobao.gecko.service.RemotingClient remotingClient,
ConsumerFilterManager consumerFilterManager,
String slave,
int callbackThreadCount,
long sendToSlaveTimeoutInMills,
long checkSlaveIntervalInMills,
int slaveContinuousFailureThreshold)
|
从类 com.taobao.metamorphosis.server.assembly.BrokerCommandProcessor 继承的方法 |
beginTransaction, commitTransaction, dispose, forgetTransaction, genErrorMessage, genPutResultString, getBrokerZooKeeper, getConsumerFilterManager, getExecutorsManager, getIdWorker, getMetaConfig, getPartition, getPreparedTransactions, getRemotingServer, getStatsManager, getStoreManager, getTransaction, init, prepareTransaction, processGetCommand, processGetCommand, processOffsetCommand, processQuitCommand, processStatCommand, processVesionCommand, removeTransaction, rollbackTransaction, setBrokerZooKeeper, setConsumerFilterManager, setExecutorsManager, setIdWorker, setMetaConfig, setRemotingServer, setStatsManager, setStoreManager |
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SamsaCommandProcessor
public SamsaCommandProcessor()
SamsaCommandProcessor
public SamsaCommandProcessor(MessageStoreManager storeManager,
ExecutorsManager executorsManager,
StatsManager statsManager,
com.taobao.gecko.service.RemotingServer remotingServer,
MetaConfig metaConfig,
IdWorker idWorker,
BrokerZooKeeper brokerZooKeeper,
com.taobao.gecko.service.RemotingClient remotingClient,
ConsumerFilterManager consumerFilterManager,
String slave,
int callbackThreadCount,
long sendToSlaveTimeoutInMills,
long checkSlaveIntervalInMills,
int slaveContinuousFailureThreshold)
throws com.taobao.gecko.service.exception.NotifyRemotingException,
InterruptedException
- 抛出:
com.taobao.gecko.service.exception.NotifyRemotingException
InterruptedException
getRemotingClient
public com.taobao.gecko.service.RemotingClient getRemotingClient()
getSlaveUrl
public String getSlaveUrl()
processPutCommand
public void processPutCommand(PutCommand request,
SessionContext sessionContext,
PutCallback cb)
- 处理put请求,只有当master/slave全部写入成功的时候才认为写入成功
- 指定者:
- 接口
CommandProcessor
中的 processPutCommand
- 覆盖:
- 类
BrokerCommandProcessor
中的 processPutCommand
Copyright © 2010–2013. All rights reserved.