comparison src/main/java/jp/ac/u_ryukyu/ie/cr/bbs/network/DistributeApp.java @ 2:3c188a5b69ef

add network bbs
author tatsuki
date Mon, 27 Jun 2016 05:06:19 +0900
parents
children f3d30646c863
comparison
equal deleted inserted replaced
1:64a72a7a0491 2:3c188a5b69ef
1 package jp.ac.u_ryukyu.ie.cr.bbs.network;
2
3 import alice.topology.node.TopologyNode;
4 import jp.ac.u_ryukyu.ie.cr.jungleNetwork.bbs.codesegment.StartBBSCodeSegment;
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 }