|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.zib.scalaris.operations.CommitOp
public class CommitOp
An operation committing a transaction.
Constructor Summary | |
---|---|
CommitOp()
Constructor |
Method Summary | |
---|---|
OtpErlangObject |
getErlang(boolean compressed)
Gets the erlang representation of the operation. |
OtpErlangString |
getKey()
Gets the key the operation is working on (if available) |
OtpErlangObject |
getResult()
Gets the (raw Erlang) result set via Operation.setResult(OtpErlangObject, boolean) . |
boolean |
getResultCompressed()
Determines if the result set via Operation.setResult(OtpErlangObject, boolean) is compressed or not. |
static void |
processResult_commit(OtpErlangObject received_raw,
boolean compressed)
Processes the received_raw term from erlang interpreting it as a result from a commit operation. |
Object |
processResult()
Processes the result set by Operation.setResult(OtpErlangObject, boolean) . |
void |
setResult(OtpErlangObject resultRaw,
boolean compressed)
Sets the raw erlang result value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommitOp()
Method Detail |
---|
public OtpErlangObject getErlang(boolean compressed)
Operation
getErlang
in interface Operation
compressed
- whether the value part in the term should be encoded, i.e.
compressed into an Erlang binary, or not
public OtpErlangString getKey()
Operation
getKey
in interface Operation
public void setResult(OtpErlangObject resultRaw, boolean compressed)
Operation
Operation.processResult()
.
setResult
in interface Operation
resultRaw
- the resultcompressed
- whether the value inside the result is compressed or notpublic OtpErlangObject getResult()
Operation
Operation.setResult(OtpErlangObject, boolean)
.
getResult
in interface Operation
public boolean getResultCompressed()
Operation
Operation.setResult(OtpErlangObject, boolean)
is compressed or not.
getResultCompressed
in interface Operation
public Object processResult() throws AbortException, UnknownException
Operation
Operation.setResult(OtpErlangObject, boolean)
.
Note: the created value is not cached!
processResult
in interface Operation
AbortException
- if a commit failed
UnknownException
- if any other error occurspublic String toString()
toString
in class Object
public static final void processResult_commit(OtpErlangObject received_raw, boolean compressed) throws AbortException, UnknownException
received_raw
- the object to processcompressed
- whether the transfer of values is compressed or not
AbortException
- if the commit of the commit failed
UnknownException
- if any other error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |