Adding test files to test changes.
[iotcloud.git] / version2 / src / java / simple_test / Controller2.java
1 import iotcloud.*;
2
3 class Controller2 {
4     public static void main(String[] args) throws Exception {
5
6
7         Table t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 260, -1);
8         // t1.initTable();
9         t1.rebuild();
10
11         String a = "bulb";
12         IoTString ia = new IoTString(a);
13         t1.createNewKey(ia, 260);
14
15         t1.update();
16
17         String valueB = "off";
18         IoTString iValueB = new IoTString(valueB);
19
20         t1.startTransaction();
21         t1.addKV(ia, iValueB);
22         t1.commitTransaction();
23         
24
25         t1.update();
26     }
27
28 }