fr.dgac.ivy
Class IvyClient

java.lang.Object
  |
  +--fr.dgac.ivy.IvyClient
All Implemented Interfaces:
java.lang.Runnable

public class IvyClient
extends java.lang.Object
implements java.lang.Runnable


Method Summary
 boolean CheckRegexp(java.lang.String exp)
          checks the "validity" of a regular expression.
protected  void close(boolean notify)
           
protected  int compareTo(fr.dgac.ivy.IvyClient clnt)
           
protected  void delRegexp(int id)
           
protected  boolean equals(fr.dgac.ivy.IvyClient clnt)
           
 java.lang.String getApplicationName()
          returns the name of the remote agent.
 java.util.Enumeration getRegexps()
          allow an Ivy package class to access the list of regexps at a given time.
 java.lang.String[] getRegexpsArray()
          allow an Ivy package class to access the list of regexps at a given time.
 void run()
           
 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)
           
protected  void sendRegexp(int id, java.lang.String regexp)
           
 java.lang.String toString()
           
 java.lang.String toStringExt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toStringExt

public java.lang.String toStringExt()

getApplicationName

public java.lang.String getApplicationName()
returns the name of the remote agent.


getRegexps

public java.util.Enumeration getRegexps()
allow an Ivy package class to access the list of regexps at a given time. perhaps we should implement a new IvyApplicationListener method to allow the notification of regexp addition and deletion The content is not modifyable because String are not mutable, and cannot be modified once they are create.

See Also:
getRegexpsArray to get a String[] result

getRegexpsArray

public java.lang.String[] getRegexpsArray()
allow an Ivy package class to access the list of regexps at a given time.

Since:
1.2.4

sendDirectMsg

public void sendDirectMsg(int id,
                          java.lang.String message)
                   throws IvyException
sends a direct message to the peer

Parameters:
id - the numeric value provided to the remote client
message - the string that will be match-tested
IvyException

close

protected void close(boolean notify)
              throws java.io.IOException
java.io.IOException

sendDie

public void sendDie(java.lang.String message)
asks the remote client to leave the bus.

Parameters:
message - the message that will be carried

CheckRegexp

public boolean CheckRegexp(java.lang.String exp)
checks the "validity" of a regular expression.

Parameters:
exp - the string being a regular expression
Returns:
true if the regexp is valid
Since:
1.2.4

sendRegexp

protected void sendRegexp(int id,
                          java.lang.String regexp)

delRegexp

protected void delRegexp(int id)

sendMsg

protected int sendMsg(java.lang.String message)

compareTo

protected int compareTo(fr.dgac.ivy.IvyClient clnt)

equals

protected boolean equals(fr.dgac.ivy.IvyClient clnt)

run

public void run()
Specified by:
run in interface java.lang.Runnable