Mercurial > hg > Database > Christie
view src/main/java/christie/test/Remote/StartRemoteTest.java @ 17:59fabebb67d8
delete cgmName as String, add cgmID as int
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 18 Jan 2018 16:49:54 +0900 |
parents | 186a86dc4c8a |
children |
line wrap: on
line source
package christie.test.Remote; import christie.codegear.CodeGearManager; import christie.codegear.StartCodeGear; import static java.lang.Thread.sleep; public class StartRemoteTest extends StartCodeGear{ public StartRemoteTest(CodeGearManager cgm) { super(cgm); } public static void main(String args[]){ CodeGearManager cgm = createCGM(10000); new StartRemoteTest(cgm); cgm.createRemoteDGM("remote", "localhost", 10001); cgm.setup(new CreateRemotePutTest( 2));//この時点でcgm"second"は作られていない→notifyAllで対処? CodeGearManager cgm2 = createCGM(10001); cgm2.createRemoteDGM("remote", "localhost", 10000); cgm2.setup(new CreateRemotePutTest(1)); } }