Mercurial > hg > Members > nobuyasu > jungle-network
annotate src/main/java/app/bbs/DistributeApp.java @ 193:89c15aa2bc6d
change transaction
author | tatsuki |
---|---|
date | Fri, 20 Mar 2015 16:18:42 +0900 |
parents | 3202a2a427b1 |
children |
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); | |
193 | 10 System.out.println("test"); |
153 | 11 if (conf.getManagerHostName() == null) { |
158 | 12 // String localHostName ="localhost"; |
13 // HostMessage host = new HostMessage(localHostName, conf.localPort); | |
153 | 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 } | |
38 | 19 } |
20 } |