--- /dev/null
+
+
+
+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
+ // Table t2 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 400, -1);
+ // t2.rebuild();
+
while (true) {
String pingTimer = Long.toString(System.currentTimeMillis());
IoTString ipingTimer = new IoTString(pingTimer);
- t1.update();
+ // t1.update();
t1.startTransaction();
t1.addKV(ipingTimerKey, ipingTimer);
t1.commitTransaction();
+ // // t2.update();
+ // t2.startTransaction();
+ // t2.addKV(ipingTimerKey, ipingTimer);
+ // t2.commitTransaction();
+