Mercurial > hg > Applications > AliceVNC
annotate 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 |
rev | line source |
---|---|
0 | 1 package jp.ac.u_ryukyu.alicevnc; |
2 | |
5
c05d3b89b446
Send DecodeInfo to Children Nodes. but occur ArrayIndexOutOfBoundsException.
YU
parents:
1
diff
changeset
|
3 import java.util.ArrayList; |
c05d3b89b446
Send DecodeInfo to Children Nodes. but occur ArrayIndexOutOfBoundsException.
YU
parents:
1
diff
changeset
|
4 |
47 | 5 import alice.daemon.AliceDaemon; |
1 | 6 import alice.topology.node.TopologyNode; |
0 | 7 |
47 | 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 */ | |
0 | 12 public class StartAliceVNC { |
13 public static void main(String args[]){ | |
1 | 14 AliceVNCConfig conf = new AliceVNCConfig(args); |
47 | 15 |
16 AliceDaemon aliceDaemon = new AliceDaemon(conf); | |
17 | |
1 | 18 AliceVNC cs = new AliceVNC(conf); |
38 | 19 if (conf.debugMode()) { |
5
c05d3b89b446
Send DecodeInfo to Children Nodes. but occur ArrayIndexOutOfBoundsException.
YU
parents:
1
diff
changeset
|
20 cs.ods.put("_CLIST", new ArrayList<String>()); |
20 | 21 cs.ods.put("host", "node0"); |
47 | 22 cs.execute(aliceDaemon); |
38 | 23 return; |
1 | 24 } |
38 | 25 |
26 if (conf.getManagerHostName() ==null){ | |
27 conf.setManagerHostName("firefly.cr.ie.u-ryukyu.ac.jp"); | |
40 | 28 conf.setManagerPort(10000); |
38 | 29 } |
30 | |
31 new TopologyNode(conf, cs); | |
0 | 32 } |
33 | |
34 } |