fr.dgac.ivy

Class IvyClient

Known Direct Subclasses:

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

the peers on the bus.

Method Summary

public boolean CheckRegexp(String exp)
checks the "validity" of a regular expression.
protected void close(boolean notify)
protected int compareTo(IvyClient clnt)
protected void delRegexp(int id)
protected boolean equals(IvyClient clnt)
public String getApplicationName()
returns the name of the remote agent.
public String getHostName()
returns the host name of the remote agent.
public String getRegexpsArray()
allow an Ivy package class to access the list of regexps at a given time.
public Enumeration getRegexps()
allow an Ivy package class to access the list of regexps at a given time.
public void run()
public void sendDie(String message)
asks the remote client to leave the bus.
public void sendDirectMsg(int id, String message)
sends a direct message to the peer
protected int sendMsg(String message)
protected void sendRegexp(int id, String regexp)
public String toStringExt()
public String toString()

Method Details

CheckRegexp

public boolean CheckRegexp(String exp)

checks the "validity" of a regular expression.

Parameters:

exp - the string being a regular expression
Since:
1.2.4

close

protected void close(boolean notify)

Parameters:

notify

Throws:

IOException

compareTo

protected int compareTo(IvyClient clnt)

Parameters:

clnt

delRegexp

protected void delRegexp(int id)

Parameters:

id

equals

protected boolean equals(IvyClient clnt)

Parameters:

clnt

getApplicationName

public String getApplicationName()

returns the name of the remote agent.

getHostName

public String getHostName()

returns the host name of the remote agent.
Since:
1.2.7

getRegexpsArray

public String getRegexpsArray()

allow an Ivy package class to access the list of regexps at a given time.
Since:
1.2.4

getRegexps

public 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.

run

public void run()


sendDie

public void sendDie(String message)

asks the remote client to leave the bus.

Parameters:

message - the message that will be carried

sendDirectMsg

public void sendDirectMsg(int id, String message)

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

Throws:

IvyException

sendMsg

protected int sendMsg(String message)

Parameters:

message

sendRegexp

protected void sendRegexp(int id, String regexp)

Parameters:

id
regexp

toStringExt

public String toStringExt()


toString

public String toString()