annotate src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java @ 68:95beb204b60e

update Alice using String ip in HostMessage
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Mon, 23 Nov 2015 19:53:37 +0900
parents 57ca704f86a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9973439e03ad first commit
YU
parents:
diff changeset
1 package jp.ac.u_ryukyu.alicevnc;
9973439e03ad first commit
YU
parents:
diff changeset
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
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
5 import alice.daemon.AliceDaemon;
1
a73b8a20e233 create another viewer window
one
parents: 0
diff changeset
6 import alice.topology.node.TopologyNode;
0
9973439e03ad first commit
YU
parents:
diff changeset
7
47
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
8 /**
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
9 * java -cp AliceVNC.jar alice.topology.manager.TopologyManager
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
10 * java -jar build/libs/AliceVNC.jar -host YuSugimoto-no-MacBook-Pro.local -p 21000
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
11 */
0
9973439e03ad first commit
YU
parents:
diff changeset
12 public class StartAliceVNC {
9973439e03ad first commit
YU
parents:
diff changeset
13 public static void main(String args[]){
1
a73b8a20e233 create another viewer window
one
parents: 0
diff changeset
14 AliceVNCConfig conf = new AliceVNCConfig(args);
47
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
15
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
16 AliceDaemon aliceDaemon = new AliceDaemon(conf);
9354e8a1d03b working AliceVNC
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
17
1
a73b8a20e233 create another viewer window
one
parents: 0
diff changeset
18 AliceVNC cs = new AliceVNC(conf);
38
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
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
15398aebb0ef refactor
sugi
parents: 5
diff changeset
21 cs.ods.put("host", "node0");
52
57ca704f86a3 back version Alice tag:work-compressedDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 47
diff changeset
22 cs.execute();
38
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
23 return;
1
a73b8a20e233 create another viewer window
one
parents: 0
diff changeset
24 }
38
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
25
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
26 if (conf.getManagerHostName() ==null){
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
27 conf.setManagerHostName("firefly.cr.ie.u-ryukyu.ac.jp");
68
95beb204b60e update Alice using String ip in HostMessage
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 52
diff changeset
28 //conf.setManagerHostIP("10.0.3.63");
40
47d6f7a76b86 for measurement
sugi
parents: 38
diff changeset
29 conf.setManagerPort(10000);
38
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
30 }
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
31
08a14d094d02 add debug option
sugi
parents: 36
diff changeset
32 new TopologyNode(conf, cs);
0
9973439e03ad first commit
YU
parents:
diff changeset
33 }
9973439e03ad first commit
YU
parents:
diff changeset
34 }