Mercurial > hg > Members > nobuyasu > jungle-network
comparison src/main/java/app/bbs/DistributeApp.java @ 192:3202a2a427b1
bug fix
author | tatsuki |
---|---|
date | Tue, 20 Jan 2015 09:30:59 +0900 |
parents | 5d0734fd859d |
children | 89c15aa2bc6d |
comparison
equal
deleted
inserted
replaced
191:5d0734fd859d | 192:3202a2a427b1 |
---|---|
1 package app.bbs; | 1 package app.bbs; |
2 | 2 |
3 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.TreeMapOrd; | |
4 import alice.jungle.remote.RemoteConfig; | 3 import alice.jungle.remote.RemoteConfig; |
5 import alice.topology.node.TopologyNode; | 4 import alice.topology.node.TopologyNode; |
6 import app.bbs.codesegment.StartBBSCodeSegment; | 5 import app.bbs.codesegment.StartBBSCodeSegment; |
7 | 6 |
8 public class DistributeApp { | 7 public class DistributeApp { |
9 public static void main(String[] args) throws Exception { | 8 public static void main(String[] args) throws Exception { |
10 RemoteConfig conf = new RemoteConfig(args); | 9 RemoteConfig conf = new RemoteConfig(args); |
10 System.out.println(System.getProperty("java.version")); | |
11 if (conf.getManagerHostName() == null) { | 11 if (conf.getManagerHostName() == null) { |
12 System.out.println(System.getProperty("java.version")); | |
13 // String localHostName ="localhost"; | 12 // String localHostName ="localhost"; |
14 // HostMessage host = new HostMessage(localHostName, conf.localPort); | 13 // HostMessage host = new HostMessage(localHostName, conf.localPort); |
15 StartBBSCodeSegment cs1 = new StartBBSCodeSegment(args, conf.bbsPort); | 14 StartBBSCodeSegment cs1 = new StartBBSCodeSegment(args, conf.bbsPort); |
16 cs1.ods.put("host", "node0"); | 15 cs1.ods.put("host", "node0"); |
17 } else { | 16 } else { |