|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fr.dgac.ivy.IvyClient
Constructor Summary | |
protected |
IvyClient(fr.dgac.ivy.Ivy bus,
java.lang.String appName,
java.util.Hashtable regexp_text)
|
Method Summary | |
protected void |
close(boolean notify)
|
protected void |
delRegexp(int id)
|
java.lang.String |
getApplicationName()
returns the name of the remote agent. |
protected int |
getAppPort()
|
protected java.lang.Integer |
getClientKey()
|
java.util.Enumeration |
getRegexps()
allow an Ivy package class to access the list of regexps at a given time. |
void |
run()
|
protected boolean |
sameClient(fr.dgac.ivy.IvyClient clnt)
|
void |
sendDie()
asks the remote client to leave the bus; no message is joined. |
void |
sendDie(java.lang.String message)
asks the remote client to leave the bus. |
void |
sendDirectMsg(int id,
java.lang.String message)
sends a direct message to the peer |
protected int |
sendMsg(java.lang.String message)
sends the substrings of a message to the peer for each matching regexp. |
protected void |
sendPing(java.lang.String s)
|
protected void |
sendPong(java.lang.String s)
|
protected void |
sendRegexp(int id,
java.lang.String regexp)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected IvyClient(fr.dgac.ivy.Ivy bus, java.lang.String appName, java.util.Hashtable regexp_text)
Method Detail |
public java.lang.String getApplicationName()
protected java.lang.Integer getClientKey()
public java.util.Enumeration getRegexps()
protected int getAppPort()
protected void sendRegexp(int id, java.lang.String regexp)
protected void delRegexp(int id)
public void sendDirectMsg(int id, java.lang.String message)
id
- the numeric value provided to the remote clientmessage
- the string that will be match-testedprotected void close(boolean notify) throws java.io.IOException
java.io.IOException
protected int sendMsg(java.lang.String message)
message
- the string that will be match-tested
protected boolean sameClient(fr.dgac.ivy.IvyClient clnt)
public void run()
run
in interface java.lang.Runnable
protected void sendPong(java.lang.String s)
protected void sendPing(java.lang.String s)
public void sendDie()
public void sendDie(java.lang.String message)
message
- the message that will be carriedpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |