|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.rendezvous.limited.LimitedRangeWalker
public class LimitedRangeWalker
The Limited Range Walker is designed to be used by Rendezvous Peer in order to propagate a message among them. A target destination peer is used in order to send the message to a primary peer. Then, depending on the TTL, the message is duplicated into two messages, each of them being sent in each "directions" of the RPV.
Constructor Summary | |
---|---|
LimitedRangeWalker(PeerGroup group,
LimitedRangeWalk walk)
Constructor. |
Method Summary | |
---|---|
void |
resendMessage(Message msg)
resend a message to other Rendezvous peers participating into the walk. |
void |
sendMessage(PeerID destination,
Message msg,
String srcSvcName,
String srcSvcParam,
int ttl,
RouteAdvertisement srcRouteAdv)
Send a message to other Rendezvous peers participating into the walk. |
void |
stop()
Stop the walker |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LimitedRangeWalker(PeerGroup group, LimitedRangeWalk walk)
group
- PeerGroup where this Walker is runningwalk
- parent walk.Method Detail |
---|
public void stop()
stop
in interface RdvWalker
public void resendMessage(Message msg) throws IOException
resendMessage
in interface RdvWalker
msg
- the message to be resent.
IOException
- when the message was not sent to any other
rendezvous peers.public void sendMessage(PeerID destination, Message msg, String srcSvcName, String srcSvcParam, int ttl, RouteAdvertisement srcRouteAdv) throws IOException
sendMessage
in interface RdvWalker
msg
- the message to be sent.
IOException
- when the message was not sent to any other
rendezvous peers.
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |