net.jxta.impl.endpoint.relay
Class RelayReferralSeedingManager
java.lang.Object
net.jxta.impl.util.ACLSeedingManager
net.jxta.impl.util.RdvAdvSeedingManager
net.jxta.impl.util.URISeedingManager
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelayReferralSeedingManager
public RelayReferralSeedingManager(URI aclLocation,
boolean allowOnlySeeds,
PeerGroup group,
String serviceName)
- Get an instance of RelayReferralSeedingManager.
- Parameters:
aclLocation
- acl URIallowOnlySeeds
- if true
allow only seedsgroup
- the peer groupserviceName
- Service name
getActiveSeedURIs
public URI[] getActiveSeedURIs()
- Returns the
URI
of the endpoint addresses of the active seed
peers. The URI
s are returned in the order which the consumer
should attempt to contact the seed peers.
Using the endpoint address URI
s 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
URI
s 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.