|
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 Service
public Advertisement getImplAdvertisement()
getImplAdvertisement
in interface Service
public void init(PeerGroup pg, ID assignedID, Advertisement impl)
init
in interface Module
public int startApp(String[] arg)
startApp
in interface Module
public void stopApp()
stopApp
in interface Module
public void connectToRendezVous(PeerAdvertisement adv) throws IOException
connectToRendezVous
in interface RendezVousService
IOException
public void connectToRendezVous(EndpointAddress addr) throws IOException
connectToRendezVous
in interface RendezVousService
IOException
public void challengeRendezVous(ID peer, long delay)
challengeRendezVous
in interface RendezVousService
public void disconnectFromRendezVous(ID rendezVous)
disconnectFromRendezVous
in interface RendezVousService
public Enumeration getConnectedRendezVous()
getConnectedRendezVous
in interface RendezVousService
public Enumeration getDisconnectedRendezVous()
getDisconnectedRendezVous
in interface RendezVousService
public void startRendezVous()
startRendezVous
in interface RendezVousService
public void stopRendezVous()
stopRendezVous
in interface RendezVousService
public Enumeration getConnectedPeers()
getConnectedPeers
in interface RendezVousService
public 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 RendezVousService
public void addListener(RendezvousListener listener)
addListener
in interface RendezVousService
public boolean removeListener(RendezvousListener listener)
removeListener
in interface RendezVousService
public void propagate(Message msg, String serviceName, String serviceParam, int defaultTTL) throws IOException
propagate
in interface RendezVousService
IOException
public void propagate(Enumeration destPeerIDs, Message msg, String serviceName, String serviceParam, int defaultTTL) throws IOException
propagate
in interface RendezVousService
IOException
public void walk(Message msg, String serviceName, String serviceParam, int defaultTTL) throws IOException
walk
in interface RendezVousService
IOException
public void walk(Vector destPeerIDs, Message msg, String serviceName, String serviceParam, int defaultTTL) throws IOException
walk
in interface RendezVousService
IOException
public Vector getLocalWalkView()
getLocalWalkView
in interface RendezVousService
public void propagateToNeighbors(Message msg, String serviceName, String serviceParam, int defaultTTL, String prunePeer) throws IOException
propagateToNeighbors
in interface RendezVousService
IOException
public void propagateToNeighbors(Message msg, String serviceName, String serviceParam, int defaultTTL) throws IOException
propagateToNeighbors
in interface RendezVousService
IOException
public void propagateInGroup(Message msg, String serviceName, String serviceParam, int defaultTTL, String prunePeer) throws IOException
propagateInGroup
in interface RendezVousService
IOException
public void propagateInGroup(Message msg, String serviceName, String serviceParam, int defaultTTL) throws IOException
propagateInGroup
in interface RendezVousService
IOException
public boolean isConnectedToRendezVous()
isConnectedToRendezVous
in interface RendezVousService
public boolean isRendezVous()
isRendezVous
in interface RendezVousService
public RendezVousStatus getRendezVousStatus()
getRendezVousStatus
in interface RendezVousService
public boolean setAutoStart(boolean auto)
setAutoStart
in interface RendezVousService
public boolean setAutoStart(boolean auto, long period)
setAutoStart
in interface RendezVousService
public PeerView getPeerView()
public RendezVousServiceProvider getRendezvousProvider()
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |