public abstract class ScalarisOpExecutor extends Object
ScalarisOp operations in multiple phases only
sending requests to Scalaris once per work phase.| Constructor and Description |
|---|
ScalarisOpExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOp(ScalarisOp op)
Adds the given operation to be executed.
|
ArrayList<ScalarisOp> |
getOps()
Gets the current list of operations.
|
int |
getWorkPhases() |
void |
reset()
Re-sets the executor as if created from scratch.
|
void |
run()
Executes all operations previously added with
addOp(ScalarisOp). |
public void addOp(ScalarisOp op)
op - the operation to addpublic void reset()
public void run()
throws OtpErlangException,
UnknownException
addOp(ScalarisOp).OtpErlangException - if an error occurred verifying a result from previous
operationsUnknownException - if an error occurred verifying a result from previous
operationspublic int getWorkPhases()
public ArrayList<ScalarisOp> getOps()