class IPQueueAssignmentPolicy
    extends HostnameQueueAssignmentPolicy {
    private static final long serialVersionUID = 3L;

    protected ServerCache serverCache;
    public ServerCache getServerCache() {
        return this.serverCache;
    }
    @Autowired
    public void setServerCache(ServerCache serverCache) {
        this.serverCache = serverCache;
    }
    
    public String getClassKey(CrawlURI cauri) {<FILL_FUNCTION_BODY>}
}

        CrawlHost host = serverCache.getHostFor(cauri.getUURI());
        if (host == null || host.getIP() == null) {
            // if no server or no IP, use superclass implementation
            return super.getClassKey(cauri);
        }
        // use dotted-decimal IP address
        return host.getIP().getHostAddress();
    
<methods>public non-sealed void <init>() <variables>private static final long serialVersionUID