|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.rendezvous.RdvWalk
public abstract class RdvWalk
This abstract class must be extended by all rendezvous peer walking policies. A Walk policy implements a particular protocol/behavior for sending messages through the Rendezvous Peers. A rendezvous peer is responsible for instantiating a RdvWalk object, and starting a Greeter. Other peers, that want to send messages using a walk, are reponsible for instantiating a RdvWalk object, and getting a walker. Each walk is associated to a service name and a service param. Those are the name and optional parameter are those of the service that uses the RdvWalk.
LimitedRangeWalk
Field Summary | |
---|---|
protected PeerGroup |
group
|
protected PeerView |
rpv
|
protected String |
serviceName
|
protected String |
serviceParam
|
Constructor Summary | |
---|---|
RdvWalk(PeerGroup group,
String serviceName,
String serviceParam,
PeerView rpv)
Standard constructor |
Method Summary | |
---|---|
protected void |
finalize()
|
RdvGreeter |
getGreeter()
Get/Create a greeter to be used with this walk. |
PeerView |
getPeerView()
Return the Rendezvous peer PeerView used by this walk. |
String |
getServiceName()
Return the Service Name associated with this walk |
String |
getServiceParam()
Return the Service Param associated with this walk |
RdvWalker |
getWalker()
Get/Create a walker to be used with this walk. |
void |
stop()
Stop this walk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PeerView rpv
protected PeerGroup group
protected final String serviceName
protected final String serviceParam
Constructor Detail |
---|
public RdvWalk(PeerGroup group, String serviceName, String serviceParam, PeerView rpv)
group
- peergroup in which this walk is runningserviceName
- name used by the service (client) of this walk.serviceParam
- optional parameter used by the service (client) of this walk.rpv
- the rendezvous peer PeerView to be used by this walk.Method Detail |
---|
public RdvWalker getWalker()
public RdvGreeter getGreeter()
public PeerView getPeerView()
public String getServiceName()
public String getServiceParam()
public void stop()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |