view src/main/java/jp/ac/u_ryukyu/ie/cr/bbs/network/bbs/DistributeApp.java @ 8:766f7668521f

commit
author tatsuki
date Thu, 02 Feb 2017 23:05:59 +0900
parents src/main/java/jp/ac/u_ryukyu/ie/cr/bbs/network/DistributeApp.java@5acde010c6db
children
line wrap: on
line source

package jp.ac.u_ryukyu.ie.cr.bbs.network.bbs;

import alice.topology.node.TopologyNode;
import jp.ac.u_ryukyu.ie.cr.bbs.network.codesegment.StartBBSCodeSegment;
import jp.ac.u_ryukyu.ie.cr.jungleNetwork.remote.RemoteConfig;

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