Mercurial > hg > Database > Christie
comparison src/test/java/christie/example/RemoteTake/StartRemoteTake.java @ 253:9b0ad65ae5c0
RemoteTake object example worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 25 Jan 2020 18:55:14 +0900 |
parents | e8f6c35e6b69 |
children |
comparison
equal
deleted
inserted
replaced
252:be7063c0684b | 253:9b0ad65ae5c0 |
---|---|
1 package christie.example.RemoteTake; | 1 package christie.example.RemoteTake; |
2 | 2 |
3 import christie.codegear.CodeGearManager; | 3 import christie.codegear.CodeGearManager; |
4 import christie.codegear.StartCodeGear; | 4 import christie.codegear.StartCodeGear; |
5 | 5 |
6 public class StartRemoteTake extends StartCodeGear{ | 6 public class StartRemoteTake extends StartCodeGear { |
7 | 7 |
8 public StartRemoteTake(CodeGearManager cgm) { | 8 public StartRemoteTake(CodeGearManager cgm) { |
9 super(cgm); | 9 super(cgm); |
10 } | 10 } |
11 | 11 |
12 public static void main(String args[]) { | 12 public static void main(String args[]) { |
13 CodeGearManager cgm = createCGM(10000); | 13 CodeGearManager cgm = createCGM(10001); |
14 new StartRemoteTake(cgm); | 14 cgm.createRemoteDGM("remote", "localhost", 10001); |
15 cgm.createRemoteDGM("remote", "localhost", 10000); | |
16 cgm.setup(new CreateRemoteTakeTest()); | 15 cgm.setup(new CreateRemoteTakeTest()); |
16 cgm.setup(new FinishRemoteTake()); | |
17 RTCommand cmd = new RTCommand("insert","line",0); | 17 RTCommand cmd = new RTCommand("insert","line",0); |
18 cgm.getDGM("remote").put("command",cmd); | 18 cgm.getDGM("remote").put("command",cmd); |
19 } | 19 } |
20 } | 20 } |