Mercurial > hg > Database > jungle-network
view src/main/java/app/bbs/thinks/MatrixApp.java @ 190:269bada9eedc
add
author | tatsuki |
---|---|
date | Fri, 17 Oct 2014 15:16:56 +0900 |
parents | |
children |
line wrap: on
line source
package app.bbs.thinks; import alice.jungle.remote.RemoteConfig; import alice.topology.node.TopologyNode; import app.bbs.codesegment.StartBBSCodeSegment; import app.bbs.codesegment.StartmaTrixBBSCodeSegment; public class MatrixApp { 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); StartmaTrixBBSCodeSegment cs1 = new StartmaTrixBBSCodeSegment(args, conf.bbsPort); cs1.ods.put("host", "node0"); } else { new TopologyNode(conf, new StartBBSCodeSegment(args, conf.bbsPort)); } } }