4 public static void main(String[] args) throws Exception {
7 Table t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 399, -1);
12 IoTString ia = new IoTString(a);
13 t1.createNewKey(ia, 399);
20 IoTString iValueA = new IoTString(valueA);
23 IoTString testValA1 = t1.getCommitted(ia);
25 if ((testValA1 != null) && (testValA1.equals(iValueA) == true)) {
26 System.out.println("Is True");
28 System.out.println("Is False or Null");
33 t1.startTransaction();
34 t1.addKV(ia, iValueA);
35 t1.commitTransaction();
38 testValA1 = t1.getCommitted(ia);
40 if ((testValA1 != null) && (testValA1.equals(iValueA) == true)) {
41 System.out.println("Is True");
43 System.out.println("Is False or Null");