From 55f376e0acf3a6dea0da68f480c945afa7952abb Mon Sep 17 00:00:00 2001 From: jestin Date: Fri, 27 Sep 2002 17:26:26 +0000 Subject: see TODO for details. Mostly bugfixes. --- src/Ivy.java | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 10 deletions(-) (limited to 'src/Ivy.java') diff --git a/src/Ivy.java b/src/Ivy.java index 15926bc..5e149ec 100755 --- a/src/Ivy.java +++ b/src/Ivy.java @@ -22,7 +22,12 @@ import java.util.*; * * * CHANGELOG: - * 1.0.12: + * 1.2.1: + * - bus.start(null) now starts on DEFAULT_DOMAIN + * - added the getDomains in order to correctly display the domain list + * - checks if the serverThread exists before interrupting it + * - no has unBindMsg(String) + * 1.2.0: * - setSoTimeout is back on the server socket * - added a regression test main() * - clients is now a Hashtable. the deletion now works better @@ -55,7 +60,7 @@ public class Ivy implements Runnable { * the library version, useful for development purposes only, when java is * invoked with -DIVY_DEBUG */ - public static final String libVersion ="1.2.0"; + public static final String libVersion ="1.2.1"; private boolean debug; private static int serial=0; /* an unique ID for each regexp */ @@ -107,6 +112,7 @@ public class Ivy implements Runnable { * */ public void start(String domainbus) throws IvyException { + if (domainbus==null) domainbus=DEFAULT_DOMAIN; try { app = new ServerSocket(0); app.setSoTimeout(TIMEOUTLENGTH); @@ -117,13 +123,10 @@ public class Ivy implements Runnable { traceDebug("lib: "+libVersion+" protocol: "+PROCOCOLVERSION+" TCP service open on port "+applicationPort); watchers = new Vector(); + Domain[] d = parseDomains(domainbus); // readies the rendezvous : an IvyWatcher (thread) per domain bus - StringTokenizer st = new StringTokenizer(domainbus,","); - while ( st.hasMoreTokens()) { - String s = st.nextToken() ; - String domainaddr=IvyWatcher.getDomain(s); - int port=IvyWatcher.getPort(s); - IvyWatcher watcher =new IvyWatcher(this,domainaddr,port); + for (int index=0;index