|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.zib.scalaris.CommonErlangObjects
public final class CommonErlangObjects
Contains some often used objects as static objects as static members in order to avoid re-creating them each time they are needed.
Field Summary | |
---|---|
static OtpErlangAtom |
abortAtom
|
static OtpErlangAtom |
addDelOnListAtom
|
static OtpErlangAtom |
addOnNrAtom
|
static OtpErlangAtom |
arrayAtom
|
static OtpErlangTuple |
commitTupleAtom
|
static OtpErlangAtom |
emptyListAtom
|
static OtpErlangAtom |
failAtom
|
static OtpErlangAtom |
falseAtom
|
static OtpErlangAtom |
keyChangedAtom
|
static OtpErlangAtom |
notAListAtom
|
static OtpErlangAtom |
notANumberAtom
|
static OtpErlangAtom |
notFoundAtom
|
static OtpErlangAtom |
nullAtom
|
static OtpErlangAtom |
okAtom
|
static OtpErlangTuple |
okTupleAtom
|
static OtpErlangAtom |
randomFromListAtom
|
static OtpErlangAtom |
readAtom
|
static OtpErlangAtom |
structAtom
|
static OtpErlangAtom |
sublistAtom
|
static OtpErlangAtom |
testAndSetAtom
|
static OtpErlangAtom |
timeoutAtom
|
static OtpErlangAtom |
trueAtom
|
static OtpErlangAtom |
writeAtom
|
Constructor Summary | |
---|---|
CommonErlangObjects()
|
Method Summary | |
---|---|
static void |
checkResult_failAbort(OtpErlangObject received_raw,
boolean compressed)
Processes the received_raw term from erlang and if it is a {fail, abort, KeyList}, issues an AbortException . |
static void |
checkResult_failAbort(OtpErlangTuple received,
boolean compressed)
Processes the received_raw term from erlang and if it is a {fail, abort, KeyList}, issues an AbortException . |
static OtpErlangObject |
decode(OtpErlangObject value)
Decodes the given Erlang object from a binary to the according OtpErlangObject the same way as rdht_tx:decode_value/1. |
static OtpErlangObject |
encode(OtpErlangObject value)
Encoded the given erlang object to a binary the same way as rdht_tx:encode_value/1. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final OtpErlangAtom readAtom
public static final OtpErlangAtom writeAtom
public static final OtpErlangAtom addDelOnListAtom
public static final OtpErlangAtom testAndSetAtom
public static final OtpErlangAtom addOnNrAtom
public static final OtpErlangAtom okAtom
public static final OtpErlangAtom failAtom
public static final OtpErlangAtom abortAtom
public static final OtpErlangAtom timeoutAtom
public static final OtpErlangAtom notFoundAtom
public static final OtpErlangAtom keyChangedAtom
public static final OtpErlangAtom notAListAtom
public static final OtpErlangAtom notANumberAtom
public static final OtpErlangAtom emptyListAtom
public static final OtpErlangTuple okTupleAtom
public static final OtpErlangTuple commitTupleAtom
public static final OtpErlangAtom sublistAtom
public static final OtpErlangAtom randomFromListAtom
public static final OtpErlangAtom structAtom
public static final OtpErlangAtom arrayAtom
public static final OtpErlangAtom trueAtom
public static final OtpErlangAtom falseAtom
public static final OtpErlangAtom nullAtom
Constructor Detail |
---|
public CommonErlangObjects()
Method Detail |
---|
public static OtpErlangObject encode(OtpErlangObject value)
value
- the decoded value
public static OtpErlangObject decode(OtpErlangObject value) throws OtpErlangDecodeException
OtpErlangObject
the same way as rdht_tx:decode_value/1.
value
- the encoded value
OtpErlangDecodeException
- if decoding failspublic static final void checkResult_failAbort(OtpErlangObject received_raw, boolean compressed) throws AbortException, UnknownException
AbortException
.
NOTE: this method should not be called manually by an application and may
change without prior notice!
received_raw
- the object to processcompressed
- whether the transfer of values is compressed or not
AbortException
- if the commit of the write failed
UnknownException
- if any other error occurspublic static final void checkResult_failAbort(OtpErlangTuple received, boolean compressed) throws AbortException, UnknownException
AbortException
.
NOTE: this method should not be called manually by an application and may
change without prior notice!
received
- the object to processcompressed
- whether the transfer of values is compressed or not
AbortException
- if the commit of the write failed
UnknownException
- if any other error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |