Changes
[iotcloud.git] / version2 / src / java / light_fan_embed_benchmark / Filler.java
1
2
3 import java.util.Scanner;
4 import iotcloud.*;
5 class Filler {
6     public static void main(String[] args) throws Exception {
7
8
9         Table t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 400, -1);
10         t1.rebuild(); // update
11
12         String valueA = "on";
13         String valueB = "off";
14         IoTString iValueA = new IoTString(valueA);
15         IoTString iValueB = new IoTString(valueB);
16
17
18         System.out.println("Starting System");
19         Scanner keyboard = new Scanner(System.in);
20
21         for (int i = 0; i < 10; i++) {
22
23
24             String a1 = "bulb" + (i % 100);
25             IoTString ia1 = new IoTString(a1);
26
27
28
29             t1.update();
30             t1.startTransaction();
31             t1.addKV(ia1, iValueB);
32             t1.commitTransaction();
33
34
35
36         }
37     }
38 }