view 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
line wrap: on
line source

package app.bbs;

import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.TreeMapOrd;
import alice.jungle.remote.RemoteConfig;
import alice.topology.node.TopologyNode;
import app.bbs.codesegment.StartBBSCodeSegment;

public class DistributeApp {
    public static void main(String[] args) throws Exception {
        RemoteConfig conf = new RemoteConfig(args);
        if (conf.getManagerHostName() == null) {
          System.out.println(System.getProperty("java.version"));
            // String localHostName ="localhost";
            // HostMessage host = new HostMessage(localHostName, conf.localPort);
            StartBBSCodeSegment cs1 = new StartBBSCodeSegment(args, conf.bbsPort);
            cs1.ods.put("host", "node0");
        } else {
            new TopologyNode(conf, new StartBBSCodeSegment(args, conf.bbsPort));
        }
    }
}