Mercurial > hg > Database > Christie
view src/main/java/christie/test/Remote/StartRemotePut.java @ 24:0930b0554299
use DataGears
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 25 Jan 2018 23:02:02 +0900 |
parents | 695705dba324 |
children | 76fac42a840e |
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 StartRemotePut extends StartCodeGear{ public StartRemotePut(CodeGearManager cgm) { super(cgm); } public static void main(String args[]){ CodeGearManager cgm = createCGM(10000); new StartRemotePut(cgm); cgm.createRemoteDGM("remote", "localhost", 10001); cgm.setup(new CreateRemotePutTest());//この時点でcgm"second"は作られていない→notifyAllで対処? CodeGearManager cgm2 = createCGM(10001); cgm2.createRemoteDGM("remote", "localhost", 10000); cgm2.setup(new CreateRemotePutTest()); } }