diff options
Diffstat (limited to 'src/Ivy.java')
-rwxr-xr-x | src/Ivy.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/Ivy.java b/src/Ivy.java index fc0a613..08f3c6c 100755 --- a/src/Ivy.java +++ b/src/Ivy.java @@ -21,6 +21,11 @@ import java.util.Hashtable; *bus.bindMsg("(.*)",myMessageListener); *bus.start(null); *</pre> + * + * CHANGELOG: + * 1.0.12: + * - removed the close() disconnect(IvyClient c). Fixes a big badaboum bug + * - getDomain becomes public */ public class Ivy implements Runnable, IvyApplicationListener { @@ -41,9 +46,10 @@ public class Ivy implements Runnable, IvyApplicationListener { */ public static final String DEFAULT_DOMAIN = "127.255.255.255:"+DEFAULT_PORT; /** - * the library version + * the library version, useful for development purposes only, when java is + * invoked with -DIVY_DEBUG */ - public static String libVersion ="1.0.11"; + public static final String libVersion ="1.0.12"; private boolean debug; private static int serial=0; /* an unique ID for each regexp */ @@ -139,7 +145,7 @@ public class Ivy implements Runnable, IvyApplicationListener { */ public int sendMsg( String message ) { int count = 0; - // TODO ? an alternate implementation is one sender thread per client + // an alternate implementation would one sender thread per client // instead of one for all the clients. It might be a performance issue for ( int i = 0 ; i < clients.size(); i++ ) { IvyClient client = (IvyClient)clients.elementAt(i); @@ -230,7 +236,6 @@ public class Ivy implements Runnable, IvyApplicationListener { for ( int i = 0 ; i < ivyApplicationListenerList.size(); i++ ) { ((IvyApplicationListener)ivyApplicationListenerList.elementAt(i)).disconnect(client); } - stop(); } /* invokes the application listeners upon death of an Ivy client @@ -296,7 +301,7 @@ public class Ivy implements Runnable, IvyApplicationListener { } - static String getDomain(String domainbus) throws IvyException { + public static String getDomain(String domainbus) throws IvyException { if ( domainbus == null ) domainbus = System.getProperty("IVYBUS"); if ( domainbus == null ) domainbus = DEFAULT_DOMAIN; return domainbus; @@ -318,7 +323,7 @@ public class Ivy implements Runnable, IvyApplicationListener { } /* - * TODO prevents two clients from connecting to each other at the same time + * prevents two clients from connecting to each other at the same time * there might still be a lingering bug here, that we could avoid with the * SchizoToken. */ @@ -358,12 +363,7 @@ public class Ivy implements Runnable, IvyApplicationListener { private void traceDebug(String s){ if (debug) System.out.println("-->ivy<-- "+s); } - - // TODO find out if this is useful or not ... - private void classes( String msg_classes[] ) { - messages_classes = msg_classes; - } - + } // class Ivy /* EOF */ |