|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TStore<T>
Transaction Store: a place to save transactions A transaction consists of a number of operations. To use, first create a transaction id, and then seed the transaction with an initial operation. An executor service can then execute the transaction's operation, possibly pushing more operations onto the transaction as each step successfully completes. If a step fails, the stack can be unwound, undoing each operation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.accumulo.fate.ReadOnlyTStore |
|---|
ReadOnlyTStore.TStatus |
| Method Summary | |
|---|---|
long |
create()
Create a new transaction id |
void |
delete(long tid)
Remove the transaction from the store. |
void |
pop(long tid)
Remove the last pushed operation from the given transaction. |
void |
push(long tid,
Repo<T> repo)
Update the given transaction with the next operation |
void |
setProperty(long tid,
String prop,
Serializable val)
|
void |
setStatus(long tid,
ReadOnlyTStore.TStatus status)
Update the state of a given transaction |
Repo<T> |
top(long tid)
Get the current operation for the given transaction id. |
| Methods inherited from interface org.apache.accumulo.fate.ReadOnlyTStore |
|---|
getProperty, getStatus, list, reserve, reserve, unreserve, waitForStatusChange |
| Method Detail |
|---|
long create()
Repo<T> top(long tid)
top in interface ReadOnlyTStore<T>tid - transaction id
void push(long tid,
Repo<T> repo)
throws StackOverflowException
tid - the transaction idrepo - the operation
StackOverflowExceptionvoid pop(long tid)
void setStatus(long tid,
ReadOnlyTStore.TStatus status)
tid - transaction idstatus - execution status
void setProperty(long tid,
String prop,
Serializable val)
void delete(long tid)
tid - the transaction id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||