2
|
1 package jp.ac.u_ryukyu.ie.cr.bbs.network;
|
|
2
|
|
3 import alice.topology.node.TopologyNode;
|
3
|
4 import jp.ac.u_ryukyu.ie.cr.bbs.network.codesegment.StartBBSCodeSegment;
|
2
|
5 import jp.ac.u_ryukyu.ie.cr.jungleNetwork.remote.RemoteConfig;
|
|
6
|
|
7 public class DistributeApp {
|
|
8 public static void main(String[] args) throws Exception {
|
|
9 RemoteConfig conf = new RemoteConfig(args);
|
|
10 System.out.println("test");
|
|
11 if (conf.getManagerHostName() == null) {
|
|
12 // String localHostName ="localhost";
|
|
13 // HostMessage host = new HostMessage(localHostName, conf.localPort);
|
|
14 StartBBSCodeSegment cs1 = new StartBBSCodeSegment(args, conf.bbsPort);
|
|
15 cs1.ods.put("host", "node0");
|
|
16 } else {
|
|
17 new TopologyNode(conf, new StartBBSCodeSegment(args, conf.bbsPort));
|
|
18 }
|
|
19 }
|
|
20 }
|