public class DeleteResult extends Object
ReplicatedDHT.delete(String)
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DeleteResult(OtpErlangList list)
Creates a delete state object by converting the result list returned from
erlang.
|
Modifier and Type | Method and Description |
---|---|
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).
|
public int ok
public int locks_set
public int undef
public DeleteResult(OtpErlangList list) throws UnknownException
list
- the list to convertUnknownException
- is thrown if an unknown reason was encounteredpublic 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
degreeConnectionException
- 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