3 import java.util.Scanner;
7 public static void main(String[] args) throws Exception {
10 System.out.println(Integer.parseInt(args[0]));
12 Table t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", Integer.parseInt(args[0]), -1);
17 IoTString ia = new IoTString(a);
18 t1.createNewKey(ia, 321);
22 IoTString iValueA = new IoTString(valueA);
25 String valueB = "off";
26 IoTString iValueB = new IoTString(valueB);
28 System.out.println("Starting System");
30 Scanner keyboard = new Scanner(System.in);
36 System.out.println("Enter 0 for off, 1 for on");
37 int myint = keyboard.nextInt();
41 t1.startTransaction();
42 t1.addKV(ia, iValueB);
43 t1.commitTransaction();
47 t1.startTransaction();
48 t1.addKV(ia, iValueA);
49 t1.commitTransaction();