view src/main/java/jp/ac/u_ryukyu/ie/cr/bbs/network/DistributeApp.java @ 4:5acde010c6db

add jungle browsing system
author tatsuki
date Tue, 28 Jun 2016 19:45:55 +0900
parents f3d30646c863
children
line wrap: on
line source

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

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));
        }
    }
}