public class PeerStatRoutingFilter extends Object implements PeerMapFilter
| Constructor and Description |
|---|
PeerStatRoutingFilter(Statistics statistics,
int replicationRate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
rejectPeerMap(PeerAddress peerAddress,
PeerMap peerMap)
Each peer that is added in the map runs through this filter.
|
boolean |
rejectPreRouting(PeerAddress peerAddress,
Collection<PeerAddress> all) |
public PeerStatRoutingFilter(Statistics statistics, int replicationRate)
public boolean rejectPeerMap(PeerAddress peerAddress, PeerMap peerMap)
PeerMapFilterrejectPeerMap in interface PeerMapFilterpeerAddress - The peer address that is going to be added to the mappeerMap - The peermap where additional information can be retrievedpublic boolean rejectPreRouting(PeerAddress peerAddress, Collection<PeerAddress> all)
rejectPreRouting in interface PeerMapFilterCopyright © 2015. All rights reserved.