Mercurial > hg > Database > Christie
changeset 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 | be7063c0684b |
children | de4962913f24 |
files | build.gradle src/test/java/christie/example/RemoteTake/RTCommand.java src/test/java/christie/example/RemoteTake/StartRemoteTake.java |
diffstat | 3 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/build.gradle Sat Jan 25 15:14:38 2020 +0900 +++ b/build.gradle Sat Jan 25 18:55:14 2020 +0900 @@ -16,6 +16,7 @@ dependencies { compile fileTree(dir: 'lib', include: '*.jar') testCompile('org.junit.jupiter:junit-jupiter-api:5.2.0') + compile group: 'org.javassist', name: 'javassist', version: '3.23.1-GA' //compile group: 'org.msgpack', name: 'msgpack-core', version: '0.8.20' //compile group: 'org.msgpack', name: 'jackson-dataformat-msgpack', version: '0.8.16' compile group: 'org.msgpack', name: 'msgpack', version: '0.6.12'
--- a/src/test/java/christie/example/RemoteTake/RTCommand.java Sat Jan 25 15:14:38 2020 +0900 +++ b/src/test/java/christie/example/RemoteTake/RTCommand.java Sat Jan 25 18:55:14 2020 +0900 @@ -4,9 +4,11 @@ @Message class RTCommand { - private final String line; - String cmd; - int offset; + public String line; + public String cmd; + public int offset; + + public RTCommand () {} public RTCommand(String cmd, String line, int i) { this.cmd = cmd;
--- a/src/test/java/christie/example/RemoteTake/StartRemoteTake.java Sat Jan 25 15:14:38 2020 +0900 +++ b/src/test/java/christie/example/RemoteTake/StartRemoteTake.java Sat Jan 25 18:55:14 2020 +0900 @@ -3,17 +3,17 @@ import christie.codegear.CodeGearManager; import christie.codegear.StartCodeGear; -public class StartRemoteTake extends StartCodeGear{ +public class StartRemoteTake extends StartCodeGear { public StartRemoteTake(CodeGearManager cgm) { super(cgm); } public static void main(String args[]) { - CodeGearManager cgm = createCGM(10000); - new StartRemoteTake(cgm); - cgm.createRemoteDGM("remote", "localhost", 10000); + CodeGearManager cgm = createCGM(10001); + cgm.createRemoteDGM("remote", "localhost", 10001); cgm.setup(new CreateRemoteTakeTest()); + cgm.setup(new FinishRemoteTake()); RTCommand cmd = new RTCommand("insert","line",0); cgm.getDGM("remote").put("command",cmd); }