|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dgac.ivy.IvyApplicationAdapter
public abstract class IvyApplicationAdapter
Constructor Summary | |
---|---|
IvyApplicationAdapter()
|
Method Summary | |
---|---|
void |
connect(IvyClient client)
invoked when a Ivy Client has joined the bus |
void |
die(IvyClient client,
int id,
java.lang.String msgarg)
invoked when a peer request us to leave the bus |
void |
directMessage(IvyClient client,
int id,
java.lang.String msgarg)
invoked when a peer sends us a direct message |
void |
disconnect(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 |
---|
public IvyApplicationAdapter()
Method Detail |
---|
public void connect(IvyClient client)
IvyApplicationListener
connect
in interface IvyApplicationListener
client
- the peerpublic void disconnect(IvyClient client)
IvyApplicationListener
disconnect
in interface IvyApplicationListener
client
- the peerpublic void die(IvyClient client, int id, java.lang.String msgarg)
IvyApplicationListener
die
in interface IvyApplicationListener
client
- the peerpublic void directMessage(IvyClient client, int id, java.lang.String msgarg)
IvyApplicationListener
directMessage
in interface IvyApplicationListener
client
- the peermsgarg
- the message itself
there is no need to use a bus close() or stop() operation within a die()
method, it will be called automatically. Furthermore, it is considered
poor style to enforce the end of a program with System.exit(), you should
consider terminating all threads ( AWT, etc )
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |