JXTA

net.jxta.impl.endpoint.relay
Class RelayReferralSeedingManager

java.lang.Object
  extended by net.jxta.impl.util.ACLSeedingManager
      extended by net.jxta.impl.util.RdvAdvSeedingManager
          extended by net.jxta.impl.util.URISeedingManager
              extended by net.jxta.impl.endpoint.relay.RelayReferralSeedingManager
All Implemented Interfaces:
SeedingManager

public class RelayReferralSeedingManager
extends URISeedingManager

Extends the URI Seeding Manager by supplementing the list of active seeds with the active relay peers.


Field Summary
 
Fields inherited from class net.jxta.impl.util.ACLSeedingManager
acl
 
Constructor Summary
RelayReferralSeedingManager(URI aclLocation, boolean allowOnlySeeds, PeerGroup group, String serviceName)
          Get an instance of RelayReferralSeedingManager.
 
Method Summary
 RouteAdvertisement[] getActiveSeedRoutes()
          Returns the route advertisements of the active seed peers.
 URI[] getActiveSeedURIs()
          Returns the URI of the endpoint addresses of the active seed peers.
 
Methods inherited from class net.jxta.impl.util.URISeedingManager
addSeed, addSeed, addSeedingURI, isAcceptablePeer, isAcceptablePeer, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelayReferralSeedingManager

public RelayReferralSeedingManager(URI aclLocation,
                                   boolean allowOnlySeeds,
                                   PeerGroup group,
                                   String serviceName)
Get an instance of RelayReferralSeedingManager.

Parameters:
aclLocation - acl URI
allowOnlySeeds - if true allow only seeds
group - the peer group
serviceName - Service name
Method Detail

getActiveSeedURIs

public URI[] getActiveSeedURIs()
Returns the URI of the endpoint addresses of the active seed peers. The URIs are returned in the order which the consumer should attempt to contact the seed peers.

Using the endpoint address URIs is less optimal than using the route advertisements as there is no association between the potentially multiple message transport addresses referring to a single peer.

Specified by:
getActiveSeedURIs in interface SeedingManager
Overrides:
getActiveSeedURIs in class URISeedingManager
Returns:
The URIs of the active seed peers in the order in which the seed peers should be contacted.

getActiveSeedRoutes

public RouteAdvertisement[] getActiveSeedRoutes()
Returns the route advertisements of the active seed peers. The route advertisements are returned in the order which the consumer should attempt to contact the seed peers. In some cases the returned route advertisements may omit the destination PeerID if it is not known.

Specified by:
getActiveSeedRoutes in interface SeedingManager
Overrides:
getActiveSeedRoutes in class URISeedingManager
Returns:
The route advertisements of the active seed peers in the order in which the seed peers should be contacted.

JXSE