diff options
author | jestin | 2000-08-11 09:15:47 +0000 |
---|---|---|
committer | jestin | 2000-08-11 09:15:47 +0000 |
commit | a5ca9fd3f54783b7f9371d69574660f29fe0d10f (patch) | |
tree | 850cbfec003efde7a1a39085bb91d451265e9603 /src/IvyApplicationListener.java | |
parent | edeec74732762754557b61219ef52d4e8b105759 (diff) | |
download | ivy-java-a5ca9fd3f54783b7f9371d69574660f29fe0d10f.zip ivy-java-a5ca9fd3f54783b7f9371d69574660f29fe0d10f.tar.gz ivy-java-a5ca9fd3f54783b7f9371d69574660f29fe0d10f.tar.bz2 ivy-java-a5ca9fd3f54783b7f9371d69574660f29fe0d10f.tar.xz |
Probe is the java implementation of ivyprobe(1). It supports
the same syntax.
Diffstat (limited to 'src/IvyApplicationListener.java')
-rwxr-xr-x | src/IvyApplicationListener.java | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/src/IvyApplicationListener.java b/src/IvyApplicationListener.java index 731f8a7..bdfb12c 100755 --- a/src/IvyApplicationListener.java +++ b/src/IvyApplicationListener.java @@ -1,9 +1,38 @@ package fr.dgac.ivy; -public interface IvyApplicationListener extends java.util.EventListener -{ - public abstract void connect(IvyClient client); - public abstract void disconnect(IvyClient client); - public abstract void die(IvyClient client, int id); - public abstract void directMessage( IvyClient client, int id,String msgarg ); +/** + * this interface specifies the methods of an ApplicationListener + * + * @author François-Régis Colin + * @author Yannick Jestin + * @author <a href="http://www.tls.cena.fr/products/ivy/">http://www.tls.cena.fr/products/ivy/</a> + * + * The ApplicatinListenr for receiving application level events on the Ivy + * bus: connexion, disconnexion, direct messages or requests to quit. + */ + +public interface IvyApplicationListener extends java.util.EventListener { + /** + * invoked when a Ivy Client has joined the bus + * @param client the peer + */ + public abstract void connect(IvyClient client); + /** + * invoked when a Ivy Client has left the bus + * @param client the peer + */ + public abstract void disconnect(IvyClient client); + /** + * invoked when a peer request us to leave the bus + * @param client the peer + */ + public abstract void die(IvyClient client, int id); + /** + * invoked when a peer sends us a direct message + * @param client the peer + * @param id + * @param msgarg the message itself + * this is not yet implemented in java. I believe it has no real use :) + */ + public abstract void directMessage( IvyClient client, int id,String msgarg ); } |