net.jxta.impl.util
Class ACLSeedingManager
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
acl
protected final AccessList acl
- Manages access to the seeds.
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.
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.