public abstract class ServerCache extends Object
Constructor and Description |
---|
ServerCache() |
Modifier and Type | Method and Description |
---|---|
abstract void |
forAllHostsDo(org.apache.commons.collections.Closure action)
Utility for performing an action on every CrawlHost.
|
abstract CrawlHost |
getHostFor(String host) |
CrawlHost |
getHostFor(UURI uuri)
Get the
CrawlHost associated with curi . |
abstract CrawlServer |
getServerFor(String serverKey) |
CrawlServer |
getServerFor(UURI uuri)
Get the
CrawlServer associated with curi . |
abstract Set<String> |
hostKeys() |
public abstract CrawlServer getServerFor(String serverKey)
public abstract void forAllHostsDo(org.apache.commons.collections.Closure action)
action
- 1-argument Closure to apply to each CrawlHostpublic CrawlHost getHostFor(UURI uuri)
CrawlHost
associated with curi
.uuri
- CandidateURI we're to return Host for.public CrawlServer getServerFor(UURI uuri)
CrawlServer
associated with curi
.uuri
- CandidateURI we're to get server from.Copyright © 2003-2014 Internet Archive. All Rights Reserved.