Mercurial > hg > Database > Christie
view src/main/java/christie/remotingTextEditor/StartManToManSession.java @ 229:87f7afd6cbd9
tweak from one
author | one@firefly.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 27 Dec 2019 18:39:19 +0900 |
parents | 0c74d9168aff |
children | c8c8c447b2b3 |
line wrap: on
line source
package christie.remotingTextEditor; import christie.codegear.CodeGearManager; import christie.codegear.StartCodeGear; import christie.topology.manager.StartTopologyManager; import christie.topology.manager.TopologyManagerConfig; public class StartManToManSession extends StartCodeGear { public StartManToManSession(CodeGearManager cgm) { super(cgm); } public static void main(String[] args){ //ポート番号10000~1000xはone上では他のライブラリに使われている。(Net.javaにつかわれている?) int TopologyManagerPort = 10100; int TopologyNodePort = 10101; String[] managerArg = {"--localPort", String.valueOf(TopologyManagerPort), "--confFile", "scripts/Log/manToMan.dot"}; TopologyManagerConfig topologyManagerConfig = new TopologyManagerConfig(managerArg); new StartTopologyManager(topologyManagerConfig); for (int i = 0; i <= 1; i++){ String[] nodeArg = {"--managerPort", String.valueOf(TopologyManagerPort), "--managerHost", "localhost", "--localPort", String.valueOf(TopologyNodePort + i), }; NodeStart.main(nodeArg); } } }