|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.zib.scalaris.executor.ScalarisOpExecutor
public abstract class ScalarisOpExecutor
Executes multiple ScalarisOp
operations in multiple phases only
sending requests to Scalaris once per work phase.
Constructor Summary | |
---|---|
ScalarisOpExecutor()
|
Method Summary | |
---|---|
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) . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScalarisOpExecutor()
Method Detail |
---|
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
operations
UnknownException
- if an error occurred verifying a result from previous
operationspublic int getWorkPhases()
public ArrayList<ScalarisOp> getOps()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |