comparison src/main/java/app/bbs/DistributeApp.java @ 191:5d0734fd859d

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