tabbing
[iotcloud.git] / version2 / src / java / light_fan_embed_fake_benchmark / Filler2.java
1
2
3
4 import java.util.Scanner;
5 import iotcloud.*;
6
7 import java.util.Scanner;
8 import iotcloud.*;
9 class Filler2 {
10     public static void main(String[] args) throws Exception {
11
12
13         Table t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 400, -1);
14         t1.rebuild(); // update
15
16         String valueA = "on";
17         String valueB = "off";
18         IoTString iValueA = new IoTString(valueA);
19         IoTString iValueB = new IoTString(valueB);
20
21
22         System.out.println("Starting System");
23         String a1 = "bulb1";
24         IoTString ia1 = new IoTString(a1);
25
26
27         while (true) {
28
29
30
31             // t1.update();
32             t1.startTransaction();
33             t1.addKV(ia1, iValueB);
34             t1.commitTransaction();
35
36             try {
37                 Thread.sleep(500);
38             } catch (Exception e) {
39
40             }
41
42         }
43     }
44 }