Package org.apache.accumulo.core.fate
Class Fate<T>
- java.lang.Object
-
- org.apache.accumulo.core.fate.Fate<T>
-
public class Fate<T> extends Object
Fault tolerant executor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Fate.TxInfo
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel(long tid)
Attempts to cancel a running Fate transactionvoid
delete(long tid)
Exception
getException(long tid)
String
getReturn(long tid)
void
seedTransaction(String txName, long tid, Repo<T> repo, boolean autoCleanUp, String goalMessage)
void
shutdown()
Flags that FATE threadpool to clear out and end.long
startTransaction()
ReadOnlyTStore.TStatus
waitForCompletion(long tid)
-
-
-
Method Detail
-
startTransaction
public long startTransaction()
-
seedTransaction
public void seedTransaction(String txName, long tid, Repo<T> repo, boolean autoCleanUp, String goalMessage)
-
waitForCompletion
public ReadOnlyTStore.TStatus waitForCompletion(long tid)
-
cancel
public boolean cancel(long tid)
Attempts to cancel a running Fate transaction- Parameters:
tid
- transaction id- Returns:
- true if transaction transitioned to a failed state or already in a completed state, false otherwise
-
delete
public void delete(long tid)
-
getReturn
public String getReturn(long tid)
-
getException
public Exception getException(long tid)
-
shutdown
public void shutdown()
Flags that FATE threadpool to clear out and end. Does not actively stop running FATE processes.
-
-