4 public static void main(String[] args) {
5 if (args[0].equals("1"))
7 else if(args[0].equals("2"))
9 else if(args[0].equals("3"))
11 else if(args[0].equals("4"))
16 static Thread buildThread(String prefix, Table t) {
19 for(int i=0; i<600; i++) {
21 IoTString ia=new IoTString(a);
23 System.out.println(ia+"->"+t.get(ia));
30 Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
31 Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
34 Thread thr1=buildThread("p1", t1);
35 Thread thr2=buildThread("p2", t2);
41 } catch (Exception e) {
47 Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
48 Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
51 for(int i=0; i<600; i++) {
54 IoTString ia=new IoTString(a);
55 IoTString ib=new IoTString(b);
59 System.out.println(ib+"->"+t1.get(ib));
60 System.out.println(ia+"->"+t2.get(ia));
65 Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
67 Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
69 for(int i=0; i<600; i++) {
72 IoTString ia=new IoTString(a);
73 IoTString ib=new IoTString(b);
77 System.out.println(ib+"->"+t1.get(ib));
78 System.out.println(ia+"->"+t2.get(ia));
83 TestCloudComm cc=new TestCloudComm();
84 Table t1=new Table(cc, 6513);
86 Table t2=new Table(cc, 6512);
88 for(int i=0; i<600; i++) {
91 IoTString ia=new IoTString(a);
92 IoTString ib=new IoTString(b);
96 System.out.println(ib+"->"+t1.get(ib));
97 System.out.println(ia+"->"+t2.get(ia));
99 for(int i=0; i<600; i++) {
102 IoTString ia=new IoTString(a);
103 IoTString ib=new IoTString(b);
104 System.out.println(ib+"->"+t1.get(ib));
105 System.out.println(ia+"->"+t2.get(ia));
106 System.out.println(ib+"->"+t2.get(ib));
107 System.out.println(ia+"->"+t1.get(ia));