public interface IpAddressBasedQueue extends UriQueue
UriQueue interface defines additional methods
enabling the queue to manage the retrieving of chunks of URIs based on IP
addresses. If a chunk is returned by this queue, the IP addresses are marked
as blocked. No other chunk will contain URIs of these IP addresses until the
method markIpAddressAsAccessible(InetAddress) is called to free the
IP address.| Modifier and Type | Method and Description |
|---|---|
Iterator<AbstractMap.SimpleEntry<InetAddress,List<CrawleableUri>>> |
getIPURIIterator()
Goes through the queue und collects all IP-address with their URIs
|
int |
getNumberOfBlockedIps()
Returns the number of IP addresses that are currently blocked.
|
void |
markIpAddressAsAccessible(InetAddress ip)
Marks the given IP address as accessible.
|
void markIpAddressAsAccessible(InetAddress ip)
ip - the IP address that should be marked as accessible.int getNumberOfBlockedIps()
Iterator<AbstractMap.SimpleEntry<InetAddress,List<CrawleableUri>>> getIPURIIterator()
Copyright © 2017–2019. All rights reserved.