|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.rendezvous.RendezVousInterface
This class implements the RendezVous interface.
Constructor Summary | |
RendezVousInterface(RendezVousImpl theRealThing)
The only authorized constructor. |
Method Summary | |
void |
connectRendezVous(net.jxta.endpoint.EndpointAddress addr)
Add a peer as a new RendezVous point. |
void |
connectRendezVous(net.jxta.protocol.PeerGroupAdvertisement adv)
Add a peer as a new RendezVous point. |
net.jxta.document.Advertisement |
getAdvertisement()
Returns the advertisment for that service. |
java.util.Enumeration |
getConnectedPeers()
Returns an Enumeration of PeerID of the peers that are currentely connected. |
net.jxta.service.Service |
getInterface()
returns an interface object that permits to use this service without having access to the real object. |
void |
init(net.jxta.peergroup.PeerGroup pg,
net.jxta.document.Advertisement a)
Initialize the application FIXME: This is meaningless for the interface object; it is there only to satisfy the requirements of the interface that we implement. |
java.util.Enumeration |
listRendezVous()
Returns an Enumeration of the PeerID all the RendezVous on which this Peer is currentely connected. |
void |
removeRendezVous(net.jxta.peer.PeerID rendezVous)
Remove a RendezVous point. |
void |
sendRendezVousAdv(net.jxta.protocol.PeerAdvertisement destPeer,
net.jxta.protocol.PeerAdvertisement rendezVous)
Sends advertisement about other RendezVous to a given peer |
net.jxta.rendezvous.RendezVousMonitor |
setMonitor(net.jxta.rendezvous.RendezVousMonitor handler)
Register a notification handler that is called each time a RendezVous peer is not reachable anymore. |
int |
startApp(java.lang.String[] arg)
This is here for temporary class hierarchy reasons. |
void |
startRendezVous(net.jxta.rendezvous.RendezVousManager handler)
Start the local peer as a RendezVous peer. |
void |
stopApp()
This is here for temporary class hierarchy reasons. |
void |
stopRendezVous()
Stop the RendezVous function on the local Peer. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RendezVousInterface(RendezVousImpl theRealThing)
Method Detail |
public net.jxta.service.Service getInterface()
public net.jxta.document.Advertisement getAdvertisement()
public void init(net.jxta.peergroup.PeerGroup pg, net.jxta.document.Advertisement a)
g
- PeerGroup this application is started frompublic int startApp(java.lang.String[] arg)
arg
- A table of strings arguments.public void stopApp()
public void connectRendezVous(net.jxta.protocol.PeerGroupAdvertisement adv) throws java.io.IOException
adv
- the advertisement of the RendezVous peerpublic void connectRendezVous(net.jxta.endpoint.EndpointAddress addr) throws java.io.IOException
addr
- EndpointAddress of the rendezvous peerpublic void removeRendezVous(net.jxta.peer.PeerID rendezVous)
rendezVous
- the PeerId of the RendezVous point to removepublic net.jxta.rendezvous.RendezVousMonitor setMonitor(net.jxta.rendezvous.RendezVousMonitor handler)
handler
- a handler that is called each time a RendezVous peer is
is not reachable anymore.public java.util.Enumeration listRendezVous()
public void startRendezVous(net.jxta.rendezvous.RendezVousManager handler) throws java.io.IOException
handler
- is the RendezVousManager that will be invoked each
time a new Peer request to be connected.public void stopRendezVous()
public java.util.Enumeration getConnectedPeers()
public void sendRendezVousAdv(net.jxta.protocol.PeerAdvertisement destPeer, net.jxta.protocol.PeerAdvertisement rendezVous)
destPeer
- is the advertisement of the peer to which to
send the RendezVous advertisement.rendezVous
- is the advertisment of a RendezVous peer
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |