Package org.apache.accumulo.fate
Class Fate<T>
- java.lang.Object
-
- org.apache.accumulo.fate.Fate<T>
-
public class Fate<T> extends Object
Fault tolerant executor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(long tid)
Exception
getException(long tid)
String
getReturn(long tid)
void
seedTransaction(long tid, Repo<T> repo, boolean autoCleanUp)
void
shutdown()
Flags that FATE threadpool to clear out and end.long
startTransaction()
void
startTransactionRunners(int numThreads)
Launches the specified number of worker threads.ReadOnlyTStore.TStatus
waitForCompletion(long tid)
-
-
-
Constructor Detail
-
Fate
public Fate(T environment, TStore<T> store)
Creates a Fault-tolerant executor.Note: Users of this class should call
startTransactionRunners(int)
to launch the worker threads after creating a Fate object.
-
-
Method Detail
-
startTransactionRunners
public void startTransactionRunners(int numThreads)
Launches the specified number of worker threads.
-
startTransaction
public long startTransaction()
-
waitForCompletion
public ReadOnlyTStore.TStatus waitForCompletion(long tid)
-
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.
-
-