Adding test files to test changes.
[iotcloud.git] / version2 / src / java / simple_test / Controller.java
1 import iotcloud.*;
2
3 class Controller {
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
12         String a = "bulb";
13         IoTString ia = new IoTString(a);
14         t1.createNewKey(ia, 260);
15
16         t1.update();
17
18         String valueA = "on";
19         IoTString iValueA = new IoTString(valueA);
20         IoTString testValA1 = t1.getCommitted(ia);
21
22         t1.startTransaction();
23         t1.addKV(ia, iValueA);
24         t1.commitTransaction();
25         
26         t1.update();
27     }
28
29 }