JXTA

net.jxta.impl.util
Class ACLSeedingManager

java.lang.Object
  extended by net.jxta.impl.util.ACLSeedingManager
All Implemented Interfaces:
SeedingManager
Direct Known Subclasses:
PeerviewSeedingManager, RdvAdvSeedingManager

public abstract class ACLSeedingManager
extends Object
implements SeedingManager

Provides support for the optional access control list which determines which peers may be used.


Field Summary
protected  AccessList acl
          Manages access to the seeds.
 
Constructor Summary
ACLSeedingManager(URI aclLocation)
          Constructs a new ACL seeding manager.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.jxta.impl.util.SeedingManager
getActiveSeedRoutes, getActiveSeedURIs, stop
 

Field Detail

acl

protected final AccessList acl
Manages access to the seeds.

Constructor Detail

ACLSeedingManager

public ACLSeedingManager(URI aclLocation)
Constructs a new ACL seeding manager.

Parameters:
aclLocation - The location of the ACL file or null if no ACL file should be used.
Method Detail

isAcceptablePeer

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

Performs it's determination based solely on the list of peers in the access list.

Specified by:
isAcceptablePeer in interface SeedingManager
Parameters:
peeradv - The PeerAdvertisement of the peer being tested.

isAcceptablePeer

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

Performs it's determination based solely on the list of peers in the access list.

Specified by:
isAcceptablePeer in interface SeedingManager
Parameters:
radv - The RouteAdvertisement of the peer being tested.

JXSE