Mercurial > hg > FederatedLinda
changeset 29:7a74d7396d65
*** empty log message ***
author | kono |
---|---|
date | Thu, 21 Aug 2008 10:04:21 +0900 |
parents | 132c9bc28d6b |
children | fca6eec8016f |
files | src/fdl/ComDebug_Client.java src/fdl/test/TestMetaLinda.java src/fdl/test/TestMonitor.java |
diffstat | 3 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fdl/ComDebug_Client.java Wed Aug 20 18:11:30 2008 +0900 +++ b/src/fdl/ComDebug_Client.java Thu Aug 21 10:04:21 2008 +0900 @@ -40,10 +40,7 @@ if("-h".equals(args[i])) { hosts.add(args[++i]); System.err.println("host = "+hosts.getLast()); - } else { - System.err.println(usages); return; - } - if("-p".equals(args[i])) { + } else if("-p".equals(args[i])) { ports.add(Integer.parseInt(args[++i])); System.err.println("port = "+ports.getLast()); } else {
--- a/src/fdl/test/TestMetaLinda.java Wed Aug 20 18:11:30 2008 +0900 +++ b/src/fdl/test/TestMetaLinda.java Thu Aug 21 10:04:21 2008 +0900 @@ -58,15 +58,15 @@ System.out.println("Connected."); ByteBuffer data = ByteBuffer.allocate(10); + r = psx.in(1); for(int i=0;i<10;i++) { data.clear(); data.putInt(i); data.flip(); psx.out(1,data); - r = psx.in(1); if (r.ready()) { - System.out.println("Get:"+r.data); + System.err.println("Get:"+r.data.getInt()); r = psx.in(1); } psx.sync(100);
--- a/src/fdl/test/TestMonitor.java Wed Aug 20 18:11:30 2008 +0900 +++ b/src/fdl/test/TestMonitor.java Thu Aug 21 10:04:21 2008 +0900 @@ -17,6 +17,7 @@ class Server implements Runnable { public void run() { String[] args = {"-p",Integer.toString(PORT)}; + System.out.println("Linda server start."); FDLindaServ.main(args); } } @@ -25,6 +26,7 @@ public void run() { String[] args = {}; sleep(4000); + System.err.println("Client start."); TestMetaLinda.main(args); } public synchronized void sleep(int time) { @@ -40,6 +42,7 @@ public void run() { String[] args = {"-h",localhost,"-p",Integer.toString(PORT)}; sleep(2000); + System.err.println("Monitor start."); ComDebug_Client.main(args); } public synchronized void sleep(int time) { @@ -52,7 +55,7 @@ } public static void main(String[] arg) { - TestLindaServer me = new TestLindaServer(); + TestMonitor me = new TestMonitor(); me.test1(); } @@ -62,6 +65,7 @@ } catch (UnknownHostException e) { return; } + System.err.println("Monitor Test start."); Server s = new Server(); Client c = new Client(); Monitor m = new Monitor();