10 public static void main(String[] args) {
11 if (args[0].equals("1"))
13 else if(args[0].equals("2"))
15 else if(args[0].equals("3"))
17 else if(args[0].equals("4"))
22 static Thread buildThread(String prefix, Table t) {
25 for(int i=0; i<600; i++) {
27 IoTString ia=new IoTString(a);
29 System.out.println(ia+"->"+t.get(ia));
36 Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
37 Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
40 Thread thr1=buildThread("p1", t1);
41 Thread thr2=buildThread("p2", t2);
47 } catch (Exception e) {
53 Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
54 Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
57 for(int i=0; i<600; i++) {
60 IoTString ia=new IoTString(a);
61 IoTString ib=new IoTString(b);
65 System.out.println(ib+"->"+t1.get(ib));
66 System.out.println(ia+"->"+t2.get(ia));
71 Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
73 Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
75 for(int i=0; i<600; i++) {
78 IoTString ia=new IoTString(a);
79 IoTString ib=new IoTString(b);
83 System.out.println(ib+"->"+t1.get(ib));
84 System.out.println(ia+"->"+t2.get(ia));
89 TestCloudComm cc=new TestCloudComm();
90 Table t1=new Table(cc, 6513);
92 Table t2=new Table(cc, 6512);
94 for(int i=0; i<600; i++) {
97 IoTString ia=new IoTString(a);
98 IoTString ib=new IoTString(b);
102 System.out.println(ib+"->"+t1.get(ib));
103 System.out.println(ia+"->"+t2.get(ia));
105 for(int i=0; i<600; i++) {
108 IoTString ia=new IoTString(a);
109 IoTString ib=new IoTString(b);
110 System.out.println(ib+"->"+t1.get(ib));
111 System.out.println(ia+"->"+t2.get(ia));
112 System.out.println(ib+"->"+t2.get(ib));
113 System.out.println(ia+"->"+t1.get(ia));