Updating files for the bug fix (sequence number starts from 1, not 0); adding a local...
[iotcloud.git] / version2 / src / java / light_fan_embed_benchmark_2bulbs / Setup.java
1 import iotcloud.*;
2 import java.util.*;
3
4 class Setup {
5
6     public static void main(String[] args) throws Exception {
7
8         Table t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 400, -1);
9         t1.initTable();
10
11                 String a = "bulb";
12         IoTString ia = new IoTString(a);
13
14         t1.createNewKey(ia, 400);
15
16         String valueA = "on";
17         IoTString iValueA = new IoTString(valueA);
18         IoTString testValA1 = t1.getCommitted(ia);
19         
20         t1.startTransaction();
21         t1.addKV(ia, iValueA);
22         t1.commitTransaction();
23
24         t1.update();
25     }
26 }