|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.rendezvous.RdvWalk
net.jxta.impl.rendezvous.limited.LimitedRangeWalk
public class LimitedRangeWalk
This class is the Limited Walk Policy.
LimitedRangeWalker
,
LimitedRangeGreeter
Field Summary | |
---|---|
static String |
ELEMENTNAME
The name of the message element in which we will store our information. |
static String |
SERVICENAME
The prefix we will use for service name we use for messaging. |
Fields inherited from class net.jxta.impl.rendezvous.RdvWalk |
---|
group, listener, srcServiceName, srcServiceParam |
Constructor Summary | |
---|---|
LimitedRangeWalk(PeerGroup group,
EndpointListener listener,
String srcServiceName,
String srcServiceParam,
PeerView rpv)
Standard constructor |
Method Summary | |
---|---|
LimitedRangeGreeter |
getGreeter()
Get/Create a greeter to be used with this walk. |
(package private) PeerView |
getPeerView()
Return the Rendezvous peer PeerView used by this walk. |
(package private) static LimitedRangeRdvMsg |
getRdvMessage(Message msg)
Returns the parsed LimitedRangeRdvMsg from the provided message or null if the message did not contain an appropriate element or
the element couldn't be parsed. |
LimitedRangeWalker |
getWalker()
Get/Create a walker to be used with this walk. |
(package private) String |
getWalkServiceName()
Return the Service Name used by listener of this walk. |
(package private) String |
getWalkServiceParam()
Return the Service Param used by listener of this walk. |
void |
stop()
Stop the walk. |
Methods inherited from class net.jxta.impl.rendezvous.RdvWalk |
---|
getListener, getPeerGroup, getServiceName, getServiceParam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SERVICENAME
public static final String ELEMENTNAME
Constructor Detail |
---|
public LimitedRangeWalk(PeerGroup group, EndpointListener listener, String srcServiceName, String srcServiceParam, PeerView rpv)
group
- Peergroup in which this walk is running.listener
- Intended recipient of messages received as part of this walk.srcServiceName
- Service name used by the client of this walk.srcServiceParam
- Optional service parameter used by the client of this walk.rpv
- the rendezvous peer PeerView to be used by this walk.Method Detail |
---|
static LimitedRangeRdvMsg getRdvMessage(Message msg)
null
if the message did not contain an appropriate element or
the element couldn't be parsed.
msg
- the Message which must contain the LimitedRangeRdvMsg.
null
.PeerView getPeerView()
String getWalkServiceName()
String getWalkServiceParam()
public LimitedRangeWalker getWalker()
getWalker
in class RdvWalk
null
is returned if
no greeter is available or the walk has been stopped.public LimitedRangeGreeter getGreeter()
getGreeter
in class RdvWalk
null
is returned if
no greeter is available or the walk has been stopped.public void stop()
stop
in class RdvWalk
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |