|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.zib.scalaris.DeleteResult
public class DeleteResult
Stores the result of a delete operation.
ReplicatedDHT.delete(String)
Field Summary | |
---|---|
int |
locks_set
Skipped replicas because locks were set. |
int |
ok
Number of successfully deleted replicas. |
int |
undef
Skipped replicas because they did not exist. |
Constructor Summary | |
---|---|
DeleteResult(OtpErlangList list)
Creates a delete state object by converting the result list returned from erlang. |
Method Summary | |
---|---|
boolean |
hasDeletedAll(Connection conn)
Checks whether the delete operation has successfully deleted all replicas (replicas which did not exist are counted as successfully deleted as well). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int ok
public int locks_set
public int undef
Constructor Detail |
---|
public DeleteResult(OtpErlangList list) throws UnknownException
list
- the list to convert
UnknownException
- is thrown if an unknown reason was encounteredMethod Detail |
---|
public boolean hasDeletedAll(Connection conn) throws ConnectionException
ReplicatedDHT.delete(com.ericsson.otp.erlang.OtpErlangString, int)
.
conn
- a connection to Scalaris to find out the current replication
degree
ConnectionException
- if the connection is not active or a communication error
occurs or an exit signal was received or the remote node
sends a message containing an invalid cookie
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |