public class TransactionServiceThriftClient extends Object
| Constructor and Description |
|---|
TransactionServiceThriftClient(org.apache.thrift.transport.TTransport transport)
Constructor from an existing, connected thrift transport.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Transaction tx) |
boolean |
canCommit(Transaction tx,
Collection<byte[]> changeIds) |
Transaction |
checkpoint(Transaction tx) |
void |
close()
close this client.
|
boolean |
commit(Transaction tx) |
int |
getInvalidSize() |
InputStream |
getSnapshotStream() |
boolean |
invalidate(long tx) |
boolean |
isValid() |
void |
resetState() |
Transaction |
startLong() |
Transaction |
startShort() |
Transaction |
startShort(int timeout) |
String |
status() |
boolean |
truncateInvalidTx(Set<Long> invalidTxIds) |
boolean |
truncateInvalidTxBefore(long time) |
public TransactionServiceThriftClient(org.apache.thrift.transport.TTransport transport)
transport - the thrift transport layer. It must already be connectedpublic void close()
public Transaction startLong() throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic Transaction startShort() throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic Transaction startShort(int timeout) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean canCommit(Transaction tx, Collection<byte[]> changeIds) throws org.apache.thrift.TException, TransactionNotInProgressException
org.apache.thrift.TExceptionTransactionNotInProgressExceptionpublic boolean commit(Transaction tx) throws org.apache.thrift.TException, TransactionNotInProgressException
org.apache.thrift.TExceptionTransactionNotInProgressExceptionpublic void abort(Transaction tx) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean invalidate(long tx)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic Transaction checkpoint(Transaction tx) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic InputStream getSnapshotStream() throws org.apache.thrift.TException, TransactionCouldNotTakeSnapshotException
org.apache.thrift.TExceptionTransactionCouldNotTakeSnapshotExceptionpublic String status() throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void resetState()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean truncateInvalidTx(Set<Long> invalidTxIds) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean truncateInvalidTxBefore(long time)
throws org.apache.thrift.TException,
InvalidTruncateTimeException
org.apache.thrift.TExceptionInvalidTruncateTimeExceptionpublic int getInvalidSize()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean isValid()
Copyright © 2017 The Apache Software Foundation. All rights reserved.