|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fr.dgac.ivy.Probe
Field Summary | |
static java.lang.String |
helpCommands
|
static java.lang.String |
helpmsg
|
Constructor Summary | |
Probe(java.io.BufferedReader in,
boolean timestamp,
boolean quiet,
boolean debug)
|
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 arg)
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 |
static void |
main(java.lang.String[] args)
|
void |
receive(fr.dgac.ivy.IvyClient client,
java.lang.String[] args)
this callback is invoked when a message has been received |
void |
run()
|
void |
setExitOnDie(boolean b)
|
void |
start(fr.dgac.ivy.Ivy bus)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String helpCommands
public static final java.lang.String helpmsg
Constructor Detail |
public Probe(java.io.BufferedReader in, boolean timestamp, boolean quiet, boolean debug)
Method Detail |
public static void main(java.lang.String[] args) throws IvyException
IvyException
public void start(fr.dgac.ivy.Ivy bus) throws IvyException
IvyException
public void setExitOnDie(boolean b)
public void run()
run
in interface java.lang.Runnable
public void connect(fr.dgac.ivy.IvyClient client)
IvyApplicationListener
connect
in interface IvyApplicationListener
client
- the peerpublic void disconnect(fr.dgac.ivy.IvyClient client)
IvyApplicationListener
disconnect
in interface IvyApplicationListener
client
- the peerpublic void die(fr.dgac.ivy.IvyClient client, int id)
IvyApplicationListener
die
in interface IvyApplicationListener
client
- the peerpublic void directMessage(fr.dgac.ivy.IvyClient client, int id, java.lang.String arg)
IvyApplicationListener
directMessage
in interface IvyApplicationListener
client
- the peerid
- arg
- the message itself
this is not yet implemented in java. I believe it has no real use :)public void receive(fr.dgac.ivy.IvyClient client, java.lang.String[] args)
IvyMessageListener
receive
in interface IvyMessageListener
client
- the peer who sent the messageargs
- the array of string, on string for each subregexp
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |