Mercurial > hg > Database > jungle-network
annotate src/main/java/app/bbs/DistributeApp.java @ 158:cd4d64249931
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 12 Jul 2014 15:58:48 +0900 |
parents | 69b5565c4a63 |
children | 5d0734fd859d |
rev | line source |
---|---|
112 | 1 package app.bbs; |
38 | 2 |
105 | 3 import alice.jungle.remote.RemoteConfig; |
106
f42f2e6b31de
Removed project reference and Added dependency in pom.xml
one
parents:
105
diff
changeset
|
4 import alice.topology.node.TopologyNode; |
112 | 5 import app.bbs.codesegment.StartBBSCodeSegment; |
39 | 6 |
153 | 7 public class DistributeApp { |
8 public static void main(String[] args) throws Exception { | |
9 RemoteConfig conf = new RemoteConfig(args); | |
10 if (conf.getManagerHostName() == null) { | |
158 | 11 // String localHostName ="localhost"; |
12 // HostMessage host = new HostMessage(localHostName, conf.localPort); | |
153 | 13 StartBBSCodeSegment cs1 = new StartBBSCodeSegment(args, conf.bbsPort); |
14 cs1.ods.put("host", "node0"); | |
15 } else { | |
16 new TopologyNode(conf, new StartBBSCodeSegment(args, conf.bbsPort)); | |
17 } | |
38 | 18 } |
19 } |