Deviceless Benchmark
[iotcloud.git] / version2 / src / java / light_fan_embed_fake_benchmark / Filler2.java
diff --git a/version2/src/java/light_fan_embed_fake_benchmark/Filler2.java b/version2/src/java/light_fan_embed_fake_benchmark/Filler2.java
new file mode 100644 (file)
index 0000000..0e84979
--- /dev/null
@@ -0,0 +1,44 @@
+
+
+
+import java.util.Scanner;
+import iotcloud.*;
+
+import java.util.Scanner;
+import iotcloud.*;
+class Filler2 {
+    public static void main(String[] args) throws Exception {
+
+
+        Table t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 400, -1);
+        t1.rebuild(); // update
+
+        String valueA = "on";
+        String valueB = "off";
+        IoTString iValueA = new IoTString(valueA);
+        IoTString iValueB = new IoTString(valueB);
+
+
+        System.out.println("Starting System");
+        String a1 = "bulb1";
+        IoTString ia1 = new IoTString(a1);
+
+
+        while (true) {
+
+
+
+            // t1.update();
+            t1.startTransaction();
+            t1.addKV(ia1, iValueB);
+            t1.commitTransaction();
+
+            try {
+                Thread.sleep(500);
+            } catch (Exception e) {
+
+            }
+
+        }
+    }
+}
\ No newline at end of file