view src/main/java/app/bbs/DistributeApp.java @ 175:ac7d1070f449

sanitizing
author tatsuki
date Wed, 30 Jul 2014 22:17:23 +0900
parents cd4d64249931
children 5d0734fd859d
line wrap: on
line source

package app.bbs;

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