comparison 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
comparison
equal deleted inserted replaced
157:47ca5d48c30f 158:cd4d64249931
1 package app.bbs; 1 package app.bbs;
2 2
3 import java.util.HashMap;
4 import java.util.LinkedList;
5
6 import alice.jungle.remote.RemoteConfig; 3 import alice.jungle.remote.RemoteConfig;
7 import alice.topology.HostMessage;
8 import alice.topology.manager.IncomingHosts;
9 import alice.topology.manager.NodeInfo;
10 import alice.topology.node.TopologyNode; 4 import alice.topology.node.TopologyNode;
11 import app.bbs.codesegment.StartBBSCodeSegment; 5 import app.bbs.codesegment.StartBBSCodeSegment;
12 6
13 public class DistributeApp { 7 public class DistributeApp {
14 public static void main(String[] args) throws Exception { 8 public static void main(String[] args) throws Exception {
15 RemoteConfig conf = new RemoteConfig(args); 9 RemoteConfig conf = new RemoteConfig(args);
16 if (conf.getManagerHostName() == null) { 10 if (conf.getManagerHostName() == null) {
17 String localHostName ="localhost"; 11 // String localHostName ="localhost";
18 HostMessage host = new HostMessage(localHostName, conf.localPort); 12 // HostMessage host = new HostMessage(localHostName, conf.localPort);
19 StartBBSCodeSegment cs1 = new StartBBSCodeSegment(args, conf.bbsPort); 13 StartBBSCodeSegment cs1 = new StartBBSCodeSegment(args, conf.bbsPort);
20 cs1.ods.put("host", "node0"); 14 cs1.ods.put("host", "node0");
21 } else { 15 } else {
22 new TopologyNode(conf, new StartBBSCodeSegment(args, conf.bbsPort)); 16 new TopologyNode(conf, new StartBBSCodeSegment(args, conf.bbsPort));
23 } 17 }