10 public static void main(String[] args) {
11 if (args[0].equals("2")) {
17 Table t1 = new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
19 Table t2 = new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
22 for (int i = 0; i < 600; i++) {
25 IoTString ia = new IoTString(a);
26 IoTString ib = new IoTString(b);
29 t1.createNewKey(ia, 321);
30 t2.createNewKey(ib, 351);
32 t1.startTransaction();
34 t1.commitTransaction();
36 t2.startTransaction();
38 t2.commitTransaction();
45 for (int i = 0; i < 600; i++) {
48 IoTString ia = new IoTString(a);
49 IoTString ib = new IoTString(b);
51 System.out.println(ib + "->" + t1.getCommitted(ib));
52 System.out.println(ia + "->" + t2.getCommitted(ia));