|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.zib.scalaris.examples.TransactionWriteExample
public class TransactionWriteExample
Provides an example for using the write
method of the
Transaction
class.
Constructor Summary | |
---|---|
TransactionWriteExample()
|
Method Summary | |
---|---|
static void |
main(String[] args)
Writes all key/value pairs given on the command line (given as "key1 value1 key2 value2 ...") with the Transaction.write(String, Object) and
Transaction.write(OtpErlangString, OtpErlangObject) methods
in a single transaction.If no key/value pair is given, the default pairs (key1, value1) ,
(key2, value2) and (key3, value3) are used. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionWriteExample()
Method Detail |
---|
public static void main(String[] args)
Transaction.write(String, Object)
and
Transaction.write(OtpErlangString, OtpErlangObject)
methods
in a single transaction.(key1, value1)
,
(key2, value2)
and (key3, value3)
are used.
args
- command line arguments (optional key/value pairs to store)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |