view src/main/java/app/bbs/DistributeApp.java @ 193:89c15aa2bc6d

change transaction
author tatsuki
date Fri, 20 Mar 2015 16:18:42 +0900
parents 3202a2a427b1
children
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);
        System.out.println("test");
        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));
        }
    }
}