de.zib.scalaris.examples
Class TransactionWriteExample

java.lang.Object
  extended by de.zib.scalaris.examples.TransactionWriteExample

public class TransactionWriteExample
extends Object

Provides an example for using the write method of the Transaction class.

Since:
2.0
Version:
2.0
Author:
Nico Kruber, kruber@zib.de

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

TransactionWriteExample

public TransactionWriteExample()
Method Detail

main

public 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.

Parameters:
args - command line arguments (optional key/value pairs to store)