Mercurial > hg > Database > Christie
view src/main/java/christie/remoteTextEditor/StartRemotingTextEditor.java @ 234:665d56665b7e
add renew
author | ichikitakahiro <e165713@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 21 Jan 2020 19:05:04 +0900 |
parents | |
children |
line wrap: on
line source
package christie.remoteTextEditor; import christie.codegear.CodeGearManager; import christie.codegear.StartCodeGear; import christie.topology.manager.StartTopologyManager; import christie.topology.manager.TopologyManagerConfig; public class StartRemotingTextEditor extends StartCodeGear { public StartRemotingTextEditor(CodeGearManager cgm) { super(cgm); } public static void main(String[] args){ int TopologyManagerPort = 10000; int TopologyNodePort = 10001; String[] managerArg = {"--localPort", String.valueOf(TopologyManagerPort), "--confFile", "scripts/Log/star.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), }; RemoteNodeStart.main(nodeArg); } } }