public class TransactionServiceThriftHandler extends Object implements TTransactionServer.Iface, RPCServiceHandler
| Constructor and Description |
|---|
TransactionServiceThriftHandler(TransactionManager txManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortTx(TTransaction tx) |
TBoolean |
canCommitTx(TTransaction tx,
Set<ByteBuffer> changes) |
TTransaction |
checkpoint(TTransaction originalTx) |
TBoolean |
commitTx(TTransaction tx) |
void |
destroy() |
ByteBuffer |
getSnapshot() |
void |
init() |
boolean |
invalidateTx(long tx) |
int |
invalidTxSize() |
void |
resetState() |
TTransaction |
startLong() |
TTransaction |
startShort() |
TTransaction |
startShortTimeout(int timeout) |
String |
status() |
TBoolean |
truncateInvalidTx(Set<Long> txns) |
TBoolean |
truncateInvalidTxBefore(long time) |
public TransactionServiceThriftHandler(TransactionManager txManager)
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 startShortTimeout(int timeout) throws org.apache.thrift.TException
startShortTimeout 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 TBoolean commitTx(TTransaction tx) throws org.apache.thrift.TException
commitTx 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 init()
throws Exception
init in interface RPCServiceHandlerExceptionpublic void destroy()
throws Exception
destroy in interface RPCServiceHandlerExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.