|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.client.transactional.HBaseBackedTransactionLogger
public class HBaseBackedTransactionLogger
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.client.transactional.TransactionLogger |
---|
TransactionLogger.TransactionStatus |
Field Summary | |
---|---|
static String |
TABLE_NAME
The name of the transaction status table. |
Constructor Summary | |
---|---|
HBaseBackedTransactionLogger()
|
Method Summary | |
---|---|
long |
createNewTransactionLog()
Create a new transaction log. |
static void |
createTable()
Create the table. |
void |
forgetTransaction(long transactionId)
This transaction's state is no longer needed. |
TransactionLogger.TransactionStatus |
getStatusForTransaction(long transactionId)
Get the status of a transaction. |
void |
setStatusForTransaction(long transactionId,
TransactionLogger.TransactionStatus status)
Set the status for a transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TABLE_NAME
Constructor Detail |
---|
public HBaseBackedTransactionLogger() throws IOException
IOException
Method Detail |
---|
public static void createTable() throws IOException
IOException
public long createNewTransactionLog()
TransactionLogger
createNewTransactionLog
in interface TransactionLogger
public TransactionLogger.TransactionStatus getStatusForTransaction(long transactionId)
TransactionLogger
getStatusForTransaction
in interface TransactionLogger
public void setStatusForTransaction(long transactionId, TransactionLogger.TransactionStatus status)
TransactionLogger
setStatusForTransaction
in interface TransactionLogger
public void forgetTransaction(long transactionId)
TransactionLogger
forgetTransaction
in interface TransactionLogger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |