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) |
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 comnnectedpublic 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
org.apache.thrift.TExceptionpublic boolean commit(Transaction tx) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic 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
org.apache.thrift.TExceptionpublic 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
org.apache.thrift.TExceptionpublic int getInvalidSize()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2015. All Rights Reserved.