|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.taobao.metamorphosis.server.transaction.store.JournalTransactionStore
public class JournalTransactionStore
事务存储引擎
嵌套类摘要 | |
---|---|
static class |
JournalTransactionStore.AddMsgLocation
添加消息到store的位置和checksum |
static class |
JournalTransactionStore.AddMsgOperation
|
static class |
JournalTransactionStore.Tx
事务内存对象,保存操作轨迹 |
static interface |
JournalTransactionStore.TxOperation
事务操作接口 |
构造方法摘要 | |
---|---|
JournalTransactionStore(String dataPath,
MessageStoreManager storeManager,
MetaConfig metaConfig)
|
方法摘要 | |
---|---|
void |
addMessage(MessageStore store,
long msgId,
PutCommand putCmd,
JournalLocation location)
添加消息,为了保证添加顺序,这里不得不加锁 |
JournalLocation |
checkpoint()
|
void |
commit(TransactionId txid,
boolean wasPrepared)
|
void |
dispose()
|
int |
getActiveTransactionCount()
返回当前活跃事务数 |
JournalTransactionStore.Tx |
getInflyTx(Object txid)
|
JournalStore |
getJournalStore()
|
JournalTransactionStore.Tx |
getTx(Object txid,
JournalLocation location)
|
void |
init()
|
boolean |
isDoingRecover()
|
void |
makeCheckpoint()
执行checkpoint |
void |
prepare(TransactionId txid)
|
void |
recover(TransactionRecoveryListener listener)
|
JournalTransactionStore.Tx |
replayCommit(TransactionId txid,
boolean wasPrepared)
|
void |
replayPrepare(TransactionId txid)
|
void |
replayRollback(TransactionId txid)
|
void |
rollback(TransactionId txid)
|
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public JournalTransactionStore(String dataPath, MessageStoreManager storeManager, MetaConfig metaConfig) throws Exception
Exception
方法详细信息 |
---|
public void prepare(TransactionId txid) throws IOException
TransactionStore
中的 prepare
IOException
public JournalStore getJournalStore()
public void replayPrepare(TransactionId txid) throws IOException
IOException
public JournalTransactionStore.Tx getInflyTx(Object txid)
public int getActiveTransactionCount()
JournalTransactionStoreMBean
复制的描述
JournalTransactionStoreMBean
中的 getActiveTransactionCount
public JournalTransactionStore.Tx getTx(Object txid, JournalLocation location)
public void commit(TransactionId txid, boolean wasPrepared) throws IOException
TransactionStore
中的 commit
IOException
public JournalTransactionStore.Tx replayCommit(TransactionId txid, boolean wasPrepared) throws IOException
IOException
public void rollback(TransactionId txid) throws IOException
TransactionStore
中的 rollback
IOException
public void replayRollback(TransactionId txid) throws IOException
IOException
public void init()
Service
中的 init
public void dispose()
Service
中的 dispose
public void recover(TransactionRecoveryListener listener) throws IOException
TransactionStore
中的 recover
IOException
public void addMessage(MessageStore store, long msgId, PutCommand putCmd, JournalLocation location) throws IOException
TransactionStore
中的 addMessage
IOException
public void makeCheckpoint() throws Exception
JournalTransactionStoreMBean
复制的描述
JournalTransactionStoreMBean
中的 makeCheckpoint
Exception
public JournalLocation checkpoint() throws IOException
IOException
public boolean isDoingRecover()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |