8
|
1 package jp.ac.u_ryukyu.ie.cr.bbs.network.bbs;
|
2
|
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 StartBBSCodeSegment cs1 = new StartBBSCodeSegment(args, conf.bbsPort);
|
|
13 cs1.ods.put("host", "node0");
|
|
14 } else {
|
|
15 new TopologyNode(conf, new StartBBSCodeSegment(args, conf.bbsPort));
|
|
16 }
|
|
17 }
|
|
18 }
|