From e854a58a81ec90e419a4b3effa5a83caac05df90 Mon Sep 17 00:00:00 2001 From: jestin Date: Sun, 13 May 2012 08:54:38 +0000 Subject: Modified the tests to remove bus.getDomain(null) make Waiter and WaiterClient sons of WaitFor Added a few tests into svn --- src/ProxyClient.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/ProxyClient.java') diff --git a/src/ProxyClient.java b/src/ProxyClient.java index 1fd7b75..92f2c75 100644 --- a/src/ProxyClient.java +++ b/src/ProxyClient.java @@ -21,7 +21,9 @@ package fr.dgac.ivy ; import java.io.*; import java.net.*; -import java.util.* ; +import java.util.HashMap ; +import java.util.Map ; +import java.util.Properties ; import gnu.getopt.Getopt; import java.util.regex.*; @@ -32,9 +34,9 @@ class ProxyClient extends Ivy { private BufferedReader in; private static boolean debug = (System.getProperty("IVY_DEBUG")!=null) ; private volatile Thread clientThread; // volatile to ensure the quick communication - private Hashtable id=new Hashtable(); - private Hashtableghosts = new Hashtable(); - private Hashtable puppets =new Hashtable(); // key=id value=Puppet + private Map id=new HashMap(); + private Mapghosts = new HashMap(); + private Map puppets =new HashMap(); // key=id value=Puppet String domain=null; public static final int DEFAULT_SERVICE_PORT = 3456 ; @@ -48,7 +50,7 @@ class ProxyClient extends Ivy { int c; int servicePort = DEFAULT_SERVICE_PORT; boolean quiet = false; - String domain=Ivy.getDomain(null); + String domain=null; while ((c = opt.getopt()) != -1) switch (c) { case 'n': name=opt.getOptarg(); -- cgit v1.1