|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.zib.scalaris.ResultList
public abstract class ResultList
Generic result list.
| Method Summary | |
|---|---|
Operation |
get(int index)
Returns the operation at the specified position for e.g. |
abstract void |
processAddDelOnListAt(int pos)
Processes the result at the given position which originated from a add_del_on_list request. |
abstract void |
processAddOnNrAt(int pos)
Processes the result at the given position which originated from an add_on_nr request. |
ErlangValue |
processReadAt(int pos)
Processes the result at the given position which originated from a read request and returns the value that has been read. |
abstract void |
processTestAndSetAt(int pos)
Processes the result at the given position which originated from a test_and_set request. |
abstract void |
processWriteAt(int pos)
Processes the result at the given position which originated from a write request. |
int |
size()
Gets the number of results in the list. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int size()
public Operation get(int index)
index - index of the operation/result to return
IndexOutOfBoundsException - if the index is out of range (
index < 0 || index >= size())
public ErlangValue processReadAt(int pos)
throws NotFoundException,
UnknownException
pos - the position in the result list (starting at 0)
NotFoundException - if the requested key does not exist
UnknownException - if any other error occurs
public abstract void processWriteAt(int pos)
throws AbortException,
UnknownException
pos - the position in the result list (starting at 0)
AbortException - if the commit of the write failed (if there was a commit)
UnknownException - if any other error occurs
public abstract void processAddDelOnListAt(int pos)
throws NotAListException,
AbortException,
UnknownException
pos - the position in the result list (starting at 0)
NotAListException - if the previously stored value was no list
AbortException - if the commit of the write failed (if there was a commit)
UnknownException - if any other error occurs
public abstract void processAddOnNrAt(int pos)
throws NotANumberException,
AbortException,
UnknownException
pos - the position in the result list (starting at 0)
NotANumberException - if the previously stored value was not a number
AbortException - if the commit of the write failed (if there was a commit)
UnknownException - if any other error occurs
public abstract void processTestAndSetAt(int pos)
throws NotFoundException,
KeyChangedException,
AbortException,
UnknownException
pos - the position in the result list (starting at 0)
NotFoundException - if the requested key does not exist
KeyChangedException - if the key did not match old_value
AbortException - if the commit of the write failed (if there was a commit)
UnknownException - if any other error occurspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||