fr.dgac.ivy
Class IvyApplicationAdapter

java.lang.Object
  |
  +--fr.dgac.ivy.IvyApplicationAdapter
All Implemented Interfaces:
java.util.EventListener, IvyApplicationListener

public abstract class IvyApplicationAdapter
extends java.lang.Object
implements IvyApplicationListener


Constructor Summary
IvyApplicationAdapter()
           
 
Method Summary
 void connect(fr.dgac.ivy.IvyClient client)
          invoked when a Ivy Client has joined the bus
 void die(fr.dgac.ivy.IvyClient client, int id)
          invoked when a peer request us to leave the bus
 void directMessage(fr.dgac.ivy.IvyClient client, int id, java.lang.String msgarg)
          invoked when a peer sends us a direct message
 void disconnect(fr.dgac.ivy.IvyClient client)
          invoked when a Ivy Client has left the bus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IvyApplicationAdapter

public IvyApplicationAdapter()
Method Detail

connect

public void connect(fr.dgac.ivy.IvyClient client)
Description copied from interface: IvyApplicationListener
invoked when a Ivy Client has joined the bus

Specified by:
connect in interface IvyApplicationListener
Parameters:
client - the peer

disconnect

public void disconnect(fr.dgac.ivy.IvyClient client)
Description copied from interface: IvyApplicationListener
invoked when a Ivy Client has left the bus

Specified by:
disconnect in interface IvyApplicationListener
Parameters:
client - the peer

die

public void die(fr.dgac.ivy.IvyClient client,
                int id)
Description copied from interface: IvyApplicationListener
invoked when a peer request us to leave the bus

Specified by:
die in interface IvyApplicationListener
Parameters:
client - the peer

directMessage

public void directMessage(fr.dgac.ivy.IvyClient client,
                          int id,
                          java.lang.String msgarg)
Description copied from interface: IvyApplicationListener
invoked when a peer sends us a direct message

Specified by:
directMessage in interface IvyApplicationListener
Parameters:
client - the peer
id -
msgarg - the message itself this is not yet implemented in java. I believe it has no real use :)