Mercurial > hg > Members > tatsuki > bbs
view 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 |
line wrap: on
line source
package jp.ac.u_ryukyu.ie.cr.bbs.network; import alice.topology.node.TopologyNode; import jp.ac.u_ryukyu.ie.cr.jungleNetwork.bbs.codesegment.StartBBSCodeSegment; import jp.ac.u_ryukyu.ie.cr.jungleNetwork.remote.RemoteConfig; public class DistributeApp { public static void main(String[] args) throws Exception { RemoteConfig conf = new RemoteConfig(args); System.out.println("test"); if (conf.getManagerHostName() == null) { // String localHostName ="localhost"; // HostMessage host = new HostMessage(localHostName, conf.localPort); StartBBSCodeSegment cs1 = new StartBBSCodeSegment(args, conf.bbsPort); cs1.ods.put("host", "node0"); } else { new TopologyNode(conf, new StartBBSCodeSegment(args, conf.bbsPort)); } } }