Changes
authorAli Younis <ayounis@uci.edu>
Thu, 18 May 2017 18:26:42 +0000 (11:26 -0700)
committerAli Younis <ayounis@uci.edu>
Thu, 18 May 2017 18:26:42 +0000 (11:26 -0700)
version2/src/java/light_fan_embed_benchmark/Setup.java

index 6fdc27a..f32c70a 100644 (file)
@@ -9,68 +9,68 @@ class Setup {
         t1.initTable();
 
 
-        for ( int i = 0; i < 150; i++) {
+        // for ( int i = 0; i < 150; i++) {
             
-            System.out.println(i);
+        //     System.out.println(i);
 
-            String a1 = "bulb" + i;
-            IoTString ia1 = new IoTString(a1);
-            t1.createNewKey(ia1, 321);
-            t1.update();
+        //     String a1 = "bulb" + i;
+        //     IoTString ia1 = new IoTString(a1);
+        //     t1.createNewKey(ia1, 321);
+        //     t1.update();
 
 
-            // t1.update();
-            // t1.startTransaction();
-            // t1.addKV(ia1, ia1);
-            // t1.commitTransaction();
+        //     // t1.update();
+        //     // t1.startTransaction();
+        //     // t1.addKV(ia1, ia1);
+        //     // t1.commitTransaction();
 
-        }
+        // }
 
 
-        // String a1 = "bulb1";
-        // String a2 = "bulb2";
-        // String a3 = "bulb3";
-        // IoTString ia1 = new IoTString(a1);
-        // IoTString ia2 = new IoTString(a2);
-        // IoTString ia3 = new IoTString(a3);
+        String a1 = "bulb1";
+        String a2 = "bulb2";
+        String a3 = "bulb3";
+        IoTString ia1 = new IoTString(a1);
+        IoTString ia2 = new IoTString(a2);
+        IoTString ia3 = new IoTString(a3);
 
 
 
-        // String b1 = "wemo1";
-        // String b2 = "wemo2";
-        // IoTString ib1 = new IoTString(b1);
-        // IoTString ib2 = new IoTString(b2);
+        String b1 = "wemo1";
+        String b2 = "wemo2";
+        IoTString ib1 = new IoTString(b1);
+        IoTString ib2 = new IoTString(b2);
 
 
-        // String c1 = "sensor";
-        // IoTString ic1 = new IoTString(c1);
+        String c1 = "sensor";
+        IoTString ic1 = new IoTString(c1);
 
 
-        // String pingTimerKey = "bulbController";
-        // IoTString ipingTimerKey = new IoTString(pingTimerKey);
+        String pingTimerKey = "bulbController";
+        IoTString ipingTimerKey = new IoTString(pingTimerKey);
 
 
-        // String pingTimerKey2 = "wemoController";
-        // IoTString ipingTimerKey2 = new IoTString(pingTimerKey2);
+        String pingTimerKey2 = "wemoController";
+        IoTString ipingTimerKey2 = new IoTString(pingTimerKey2);
 
 
-        // String pingTimerKey3 = "sensorController";
-        // IoTString ipingTimerKey3 = new IoTString(pingTimerKey3);
+        String pingTimerKey3 = "sensorController";
+        IoTString ipingTimerKey3 = new IoTString(pingTimerKey3);
 
 
-        // t1.createNewKey(ia1, 321);
-        // t1.createNewKey(ia2, 321);
-        // t1.createNewKey(ia3, 321);
-        // t1.createNewKey(ipingTimerKey, 321);
+        t1.createNewKey(ia1, 321);
+        t1.createNewKey(ia2, 321);
+        t1.createNewKey(ia3, 321);
+        t1.createNewKey(ipingTimerKey, 321);
 
-        // t1.createNewKey(ib1, 351);
-        // t1.createNewKey(ib2, 351);
-        // t1.createNewKey(ipingTimerKey2, 351);
+        t1.createNewKey(ib1, 351);
+        t1.createNewKey(ib2, 351);
+        t1.createNewKey(ipingTimerKey2, 351);
 
 
-        // t1.createNewKey(ic1, 361);
-        // t1.createNewKey(ipingTimerKey3, 361);
+        t1.createNewKey(ic1, 361);
+        t1.createNewKey(ipingTimerKey3, 361);
 
-        // t1.update();
+        t1.update();
     }
 }
\ No newline at end of file