From a5ca9fd3f54783b7f9371d69574660f29fe0d10f Mon Sep 17 00:00:00 2001 From: jestin Date: Fri, 11 Aug 2000 09:15:47 +0000 Subject: Probe is the java implementation of ivyprobe(1). It supports the same syntax. --- src/IvyApplicationListener.java | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) (limited to 'src/IvyApplicationListener.java') 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 http://www.tls.cena.fr/products/ivy/ + * + * 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 ); } -- cgit v1.1