Mercurial > hg > Applications > AliceVNC
comparison src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java @ 47:9354e8a1d03b
working AliceVNC
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 19 Oct 2015 23:48:18 +0900 |
parents | 47d6f7a76b86 |
children | 57ca704f86a3 |
comparison
equal
deleted
inserted
replaced
46:51e57371c620 | 47:9354e8a1d03b |
---|---|
1 package jp.ac.u_ryukyu.alicevnc; | 1 package jp.ac.u_ryukyu.alicevnc; |
2 | 2 |
3 import java.util.ArrayList; | 3 import java.util.ArrayList; |
4 | 4 |
5 import alice.daemon.AliceDaemon; | |
5 import alice.topology.node.TopologyNode; | 6 import alice.topology.node.TopologyNode; |
6 | 7 |
8 /** | |
9 * java -cp AliceVNC.jar alice.topology.manager.TopologyManager | |
10 * java -jar build/libs/AliceVNC.jar -host YuSugimoto-no-MacBook-Pro.local -p 21000 | |
11 */ | |
7 public class StartAliceVNC { | 12 public class StartAliceVNC { |
8 public static void main(String args[]){ | 13 public static void main(String args[]){ |
9 AliceVNCConfig conf = new AliceVNCConfig(args); | 14 AliceVNCConfig conf = new AliceVNCConfig(args); |
15 | |
16 AliceDaemon aliceDaemon = new AliceDaemon(conf); | |
17 | |
10 AliceVNC cs = new AliceVNC(conf); | 18 AliceVNC cs = new AliceVNC(conf); |
11 if (conf.debugMode()) { | 19 if (conf.debugMode()) { |
12 cs.ods.put("_CLIST", new ArrayList<String>()); | 20 cs.ods.put("_CLIST", new ArrayList<String>()); |
13 cs.ods.put("host", "node0"); | 21 cs.ods.put("host", "node0"); |
14 cs.execute(); | 22 cs.execute(aliceDaemon); |
15 return; | 23 return; |
16 } | 24 } |
17 | 25 |
18 if (conf.getManagerHostName() ==null){ | 26 if (conf.getManagerHostName() ==null){ |
19 conf.setManagerHostName("firefly.cr.ie.u-ryukyu.ac.jp"); | 27 conf.setManagerHostName("firefly.cr.ie.u-ryukyu.ac.jp"); |