public class TransactionServiceThriftHandler extends Object implements TTransactionServer.Iface, RPCServiceHandler
| Constructor and Description |
|---|
TransactionServiceThriftHandler(TransactionManager txManager,
TransactionPruningService pruningService) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortTx(TTransaction tx) |
void |
canCommitOrThrow(long txId,
Set<ByteBuffer> changes) |
TBoolean |
canCommitTx(TTransaction tx,
Set<ByteBuffer> changes) |
TTransaction |
checkpoint(TTransaction originalTx) |
void |
commitOrThrow(long txId,
long wp) |
TBoolean |
commitTx(TTransaction tx) |
void |
destroy() |
ByteBuffer |
getSnapshot() |
void |
init() |
boolean |
invalidateTx(long tx) |
int |
invalidTxSize() |
void |
pruneNow() |
void |
resetState() |
TTransaction |
startLong() |
TTransaction |
startLongClientId(String clientId) |
TTransaction |
startShort() |
TTransaction |
startShortClientId(String clientId) |
TTransaction |
startShortTimeout(int timeout) |
TTransaction |
startShortWithClientIdAndTimeOut(String clientId,
int timeout) |
TTransaction |
startShortWithTimeout(int timeout) |
String |
status() |
TBoolean |
truncateInvalidTx(Set<Long> txns) |
TBoolean |
truncateInvalidTxBefore(long time) |
public TransactionServiceThriftHandler(TransactionManager txManager, TransactionPruningService pruningService)
public TTransaction startLong() throws org.apache.thrift.TException
startLong in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TTransaction startShort() throws org.apache.thrift.TException
startShort in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TTransaction startLongClientId(String clientId) throws org.apache.thrift.TException
startLongClientId in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TTransaction startShortTimeout(int timeout) throws org.apache.thrift.TException
startShortTimeout in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TTransaction startShortClientId(String clientId) throws org.apache.thrift.TException
startShortClientId in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TTransaction startShortWithClientIdAndTimeOut(String clientId, int timeout) throws org.apache.thrift.TException
startShortWithClientIdAndTimeOut in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TTransaction startShortWithTimeout(int timeout) throws org.apache.thrift.TException
startShortWithTimeout in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TBoolean canCommitTx(TTransaction tx, Set<ByteBuffer> changes) throws org.apache.thrift.TException
canCommitTx in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic void canCommitOrThrow(long txId,
Set<ByteBuffer> changes)
throws org.apache.thrift.TException
canCommitOrThrow in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TBoolean commitTx(TTransaction tx) throws org.apache.thrift.TException
commitTx in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic void commitOrThrow(long txId,
long wp)
throws org.apache.thrift.TException
commitOrThrow in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic void abortTx(TTransaction tx) throws org.apache.thrift.TException
abortTx in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic boolean invalidateTx(long tx)
throws org.apache.thrift.TException
invalidateTx in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic ByteBuffer getSnapshot() throws org.apache.thrift.TException
getSnapshot in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic void resetState()
throws org.apache.thrift.TException
resetState in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic String status() throws org.apache.thrift.TException
status in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TBoolean truncateInvalidTx(Set<Long> txns) throws org.apache.thrift.TException
truncateInvalidTx in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TBoolean truncateInvalidTxBefore(long time) throws org.apache.thrift.TException
truncateInvalidTxBefore in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic int invalidTxSize()
throws org.apache.thrift.TException
invalidTxSize in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic TTransaction checkpoint(TTransaction originalTx) throws org.apache.thrift.TException
checkpoint in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic void pruneNow()
throws org.apache.thrift.TException
pruneNow in interface TTransactionServer.Ifaceorg.apache.thrift.TExceptionpublic void init()
throws Exception
init in interface RPCServiceHandlerExceptionpublic void destroy()
throws Exception
destroy in interface RPCServiceHandlerExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.