de.zib.scalaris.examples
Class TransactionReadExample
java.lang.Object
de.zib.scalaris.examples.TransactionReadExample
public class TransactionReadExample
- extends Object
Provides an example for using the read
method of the
Transaction
class.
- Since:
- 2.0
- Version:
- 2.0
- Author:
- Nico Kruber, kruber@zib.de
TransactionReadExample
public TransactionReadExample()
main
public static void main(String[] args)
- Reads all keys given on the command line (given as "key1 key2 ...") with
the
AbstractTransaction.read(String)
and
AbstractTransaction.read(OtpErlangString)
methods in a single
transaction.
If no keys are given, the default keys "key1"
, "key2"
,
"key3"
are used.
- Parameters:
args
- command line arguments (optional keys to look up)