JXTA

net.jxta.impl.util
Interface SeedingManager

All Known Implementing Classes:
ACLSeedingManager, PeerviewSeedingManager, RdvAdvSeedingManager, RelayReferralSeedingManager, URISeedingManager

public interface SeedingManager

Manages the location of seed peers.


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.
 boolean isAcceptablePeer(PeerAdvertisement peeradv)
          Returns true if the provided peer advertisement is an acceptable peer as determined by the seeding manager.
 boolean isAcceptablePeer(RouteAdvertisement radv)
          Returns true if the provided route advertisement is an acceptable peer as determined by the seeding manager.
 void stop()
          Stop this seeding manager.
 

Method Detail

stop

void stop()
Stop this seeding manager.


getActiveSeedRoutes

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.

Returns:
The route advertisements of the active seed peers in the order in which the seed peers should be contacted.

getActiveSeedURIs

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.

Returns:
The URIs of the active seed peers in the order in which the seed peers should be contacted.

isAcceptablePeer

boolean isAcceptablePeer(PeerAdvertisement peeradv)
Returns true if the provided peer advertisement is an acceptable peer as determined by the seeding manager.

Parameters:
peeradv - The PeerAdvertisement of the peer being tested.

isAcceptablePeer

boolean isAcceptablePeer(RouteAdvertisement radv)
Returns true if the provided route advertisement is an acceptable peer as determined by the seeding manager.

Parameters:
radv - The RouteAdvertisement of the peer being tested.

JXSE