|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.rendezvous.RendezVousServiceInterface
public class RendezVousServiceInterface
This class implements the RendezVousService interface.
| Field Summary | |
|---|---|
(package private) RendezVousServiceImpl |
impl
|
| Fields inherited from interface net.jxta.rendezvous.RendezVousService |
|---|
DEFAULT_TTL |
| Fields inherited from interface net.jxta.platform.Module |
|---|
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK |
| Constructor Summary | |
|---|---|
RendezVousServiceInterface(RendezVousServiceImpl theRealThing)
The only authorized constructor. |
|
| Method Summary | |
|---|---|
void |
addListener(RendezvousListener listener)
|
boolean |
addPropagateListener(String name,
EndpointListener listener)
|
boolean |
addPropagateListener(String serviceName,
String serviceParam,
EndpointListener listener)
|
void |
challengeRendezVous(ID peer,
long delay)
|
void |
connectToRendezVous(EndpointAddress addr)
|
void |
connectToRendezVous(PeerAdvertisement adv)
|
void |
disconnectFromRendezVous(ID rendezVous)
|
Vector |
getConnectedPeerIDs()
|
Enumeration |
getConnectedPeers()
|
Enumeration |
getConnectedRendezVous()
|
Enumeration |
getDisconnectedRendezVous()
|
Advertisement |
getImplAdvertisement()
|
Service |
getInterface()
Since THIS is already such an object, it returns itself. |
Vector |
getLocalWalkView()
|
PeerView |
getPeerView()
Deprecated. This is private for debugging and diagnostics only. |
RendezVousServiceProvider |
getRendezvousProvider()
Deprecated. This is private for debugging and diagnostics only. |
RendezVousStatus |
getRendezVousStatus()
|
void |
init(PeerGroup pg,
ID assignedID,
Advertisement impl)
FIXME: This is meaningless for the interface object; it is there only to satisfy the requirements of the interface that we implement. |
boolean |
isConnectedToRendezVous()
|
boolean |
isRendezVous()
|
void |
propagate(Enumeration destPeerIDs,
Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
|
void |
propagate(Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
|
void |
propagateInGroup(Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
|
void |
propagateInGroup(Message msg,
String serviceName,
String serviceParam,
int defaultTTL,
String prunePeer)
|
void |
propagateToNeighbors(Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
|
void |
propagateToNeighbors(Message msg,
String serviceName,
String serviceParam,
int defaultTTL,
String prunePeer)
|
boolean |
removeListener(RendezvousListener listener)
|
EndpointListener |
removePropagateListener(String name,
EndpointListener listener)
|
EndpointListener |
removePropagateListener(String serviceName,
String serviceParam,
EndpointListener listener)
|
boolean |
setAutoStart(boolean auto)
|
boolean |
setAutoStart(boolean auto,
long period)
|
int |
startApp(String[] arg)
This is here for temporary class hierarchy reasons. |
void |
startRendezVous()
|
void |
stopApp()
This is here for temporary class hierarchy reasons. |
void |
stopRendezVous()
|
void |
walk(Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
|
void |
walk(Vector destPeerIDs,
Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
RendezVousServiceImpl impl
| Constructor Detail |
|---|
RendezVousServiceInterface(RendezVousServiceImpl theRealThing)
| Method Detail |
|---|
public Service getInterface()
getInterface in interface Servicepublic Advertisement getImplAdvertisement()
getImplAdvertisement in interface Service
public void init(PeerGroup pg,
ID assignedID,
Advertisement impl)
init in interface Modulepublic int startApp(String[] arg)
startApp in interface Modulepublic void stopApp()
stopApp in interface Module
public void connectToRendezVous(PeerAdvertisement adv)
throws IOException
connectToRendezVous in interface RendezVousServiceIOException
public void connectToRendezVous(EndpointAddress addr)
throws IOException
connectToRendezVous in interface RendezVousServiceIOException
public void challengeRendezVous(ID peer,
long delay)
challengeRendezVous in interface RendezVousServicepublic void disconnectFromRendezVous(ID rendezVous)
disconnectFromRendezVous in interface RendezVousServicepublic Enumeration getConnectedRendezVous()
getConnectedRendezVous in interface RendezVousServicepublic Enumeration getDisconnectedRendezVous()
getDisconnectedRendezVous in interface RendezVousServicepublic void startRendezVous()
startRendezVous in interface RendezVousServicepublic void stopRendezVous()
stopRendezVous in interface RendezVousServicepublic Enumeration getConnectedPeers()
getConnectedPeers in interface RendezVousServicepublic Vector getConnectedPeerIDs()
getConnectedPeerIDs in interface RendezVousService
public boolean addPropagateListener(String name,
EndpointListener listener)
addPropagateListener in interface RendezVousService
public EndpointListener removePropagateListener(String name,
EndpointListener listener)
removePropagateListener in interface RendezVousService
public boolean addPropagateListener(String serviceName,
String serviceParam,
EndpointListener listener)
addPropagateListener in interface RendezVousService
public EndpointListener removePropagateListener(String serviceName,
String serviceParam,
EndpointListener listener)
removePropagateListener in interface RendezVousServicepublic void addListener(RendezvousListener listener)
addListener in interface RendezVousServicepublic boolean removeListener(RendezvousListener listener)
removeListener in interface RendezVousService
public void propagate(Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
throws IOException
propagate in interface RendezVousServiceIOException
public void propagate(Enumeration destPeerIDs,
Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
throws IOException
propagate in interface RendezVousServiceIOException
public void walk(Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
throws IOException
walk in interface RendezVousServiceIOException
public void walk(Vector destPeerIDs,
Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
throws IOException
walk in interface RendezVousServiceIOExceptionpublic Vector getLocalWalkView()
getLocalWalkView in interface RendezVousService
public void propagateToNeighbors(Message msg,
String serviceName,
String serviceParam,
int defaultTTL,
String prunePeer)
throws IOException
propagateToNeighbors in interface RendezVousServiceIOException
public void propagateToNeighbors(Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
throws IOException
propagateToNeighbors in interface RendezVousServiceIOException
public void propagateInGroup(Message msg,
String serviceName,
String serviceParam,
int defaultTTL,
String prunePeer)
throws IOException
propagateInGroup in interface RendezVousServiceIOException
public void propagateInGroup(Message msg,
String serviceName,
String serviceParam,
int defaultTTL)
throws IOException
propagateInGroup in interface RendezVousServiceIOExceptionpublic boolean isConnectedToRendezVous()
isConnectedToRendezVous in interface RendezVousServicepublic boolean isRendezVous()
isRendezVous in interface RendezVousServicepublic RendezVousStatus getRendezVousStatus()
getRendezVousStatus in interface RendezVousServicepublic boolean setAutoStart(boolean auto)
setAutoStart in interface RendezVousService
public boolean setAutoStart(boolean auto,
long period)
setAutoStart in interface RendezVousServicepublic PeerView getPeerView()
public RendezVousServiceProvider getRendezvousProvider()
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||