comparison src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java @ 38:08a14d094d02

add debug option
author sugi
date Mon, 08 Dec 2014 16:00:27 +0900
parents e6e5b45c921d
children 47d6f7a76b86
comparison
equal deleted inserted replaced
37:5e20f680d6d0 38:08a14d094d02
6 6
7 public class StartAliceVNC { 7 public class StartAliceVNC {
8 public static void main(String args[]){ 8 public static void main(String args[]){
9 AliceVNCConfig conf = new AliceVNCConfig(args); 9 AliceVNCConfig conf = new AliceVNCConfig(args);
10 AliceVNC cs = new AliceVNC(conf); 10 AliceVNC cs = new AliceVNC(conf);
11 if (conf.getManagerHostName() !=null){ 11 if (conf.debugMode()) {
12 new TopologyNode(conf, cs);
13 } else {
14 cs.ods.put("_CLIST", new ArrayList<String>()); 12 cs.ods.put("_CLIST", new ArrayList<String>());
15 cs.ods.put("host", "node0"); 13 cs.ods.put("host", "node0");
16 cs.execute(); 14 cs.execute();
15 return;
17 } 16 }
17
18 if (conf.getManagerHostName() ==null){
19 conf.setManagerHostName("firefly.cr.ie.u-ryukyu.ac.jp");
20 }
21
22 new TopologyNode(conf, cs);
18 } 23 }
19 24
20 } 25 }