|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.zib.scalaris.executor.ScalarisReadOp
public class ScalarisReadOp
Implements a read operation (tolerates "not found" and in this case contains null).
| Constructor Summary | |
|---|---|
ScalarisReadOp(String key)
Creates a read operation. |
|
| Method Summary | |
|---|---|
int |
doPhase(int phase,
int firstOp,
ResultList results,
RequestList requests)
Executes the given phase. |
String |
getKey()
Gets the key to read from. |
ErlangValue |
getValue()
Gets the value from the read. |
String |
toString()
|
int |
workPhases()
Gets the number of work phases needed by this operation (not including the final result verification phase). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScalarisReadOp(String key)
key - the key to read from| Method Detail |
|---|
public int workPhases()
ScalarisOp
workPhases in interface ScalarisOp
public final int doPhase(int phase,
int firstOp,
ResultList results,
RequestList requests)
throws OtpErlangException,
UnknownException,
IllegalArgumentException
ScalarisOp
doPhase in interface ScalarisOpphase - the number of the current phasefirstOp - the current operation's index in the result listresults - the results from the previous operations
(may be null if there was none)requests - the requests for the next operations
(may be null if there are none, i.e. in the
verification phase)
OtpErlangException - if an error occured verifying a result from previous
operations
UnknownException - if an error occured verifying a result from previous
operations
IllegalArgumentException - if the given work phase is not supportedScalarisOp.workPhases()public String toString()
toString in interface ScalarisOptoString in class Objectpublic String getKey()
public ErlangValue getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||