org.apache.manifoldcf.crawler.connectors.webcrawler
Class RobotsManager.HostDescription

java.lang.Object
  extended by org.apache.manifoldcf.core.cachemanager.BaseDescription
      extended by org.apache.manifoldcf.crawler.connectors.webcrawler.RobotsManager.HostDescription
All Implemented Interfaces:
org.apache.manifoldcf.core.interfaces.ICacheDescription
Enclosing class:
RobotsManager

protected static class RobotsManager.HostDescription
extends org.apache.manifoldcf.core.cachemanager.BaseDescription

This is the object description for a robots host object. This is the key that is used to look up cached data.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.manifoldcf.core.cachemanager.BaseDescription
org.apache.manifoldcf.core.cachemanager.BaseDescription.LocalCacheClass
 
Field Summary
protected  org.apache.manifoldcf.core.interfaces.StringSet cacheKeys
           
protected  java.lang.String criticalSectionName
           
protected  java.lang.String hostName
           
 
Fields inherited from class org.apache.manifoldcf.core.cachemanager.BaseDescription
_rcsid, cacheClass, max_value
 
Constructor Summary
RobotsManager.HostDescription(java.lang.String hostName, org.apache.manifoldcf.core.interfaces.StringSet invKeys)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getCriticalSectionName()
           
 java.lang.String getHostName()
           
 org.apache.manifoldcf.core.interfaces.ICacheClass getObjectClass()
          Get the object class for an object.
 org.apache.manifoldcf.core.interfaces.StringSet getObjectKeys()
          Get the cache keys for an object (which may or may not exist yet in the cache).
 int hashCode()
           
 
Methods inherited from class org.apache.manifoldcf.core.cachemanager.BaseDescription
getObjectExpirationTime
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostName

protected java.lang.String hostName

criticalSectionName

protected java.lang.String criticalSectionName

cacheKeys

protected org.apache.manifoldcf.core.interfaces.StringSet cacheKeys
Constructor Detail

RobotsManager.HostDescription

public RobotsManager.HostDescription(java.lang.String hostName,
                                     org.apache.manifoldcf.core.interfaces.StringSet invKeys)
Method Detail

getHostName

public java.lang.String getHostName()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getCriticalSectionName

public java.lang.String getCriticalSectionName()

getObjectKeys

public org.apache.manifoldcf.core.interfaces.StringSet getObjectKeys()
Get the cache keys for an object (which may or may not exist yet in the cache). This method is called in order for cache manager to throw the correct locks.

Returns:
the object's cache keys, or null if the object should not be cached.

getObjectClass

public org.apache.manifoldcf.core.interfaces.ICacheClass getObjectClass()
Get the object class for an object. The object class is used to determine the group of objects treated in the same LRU manner.

Specified by:
getObjectClass in interface org.apache.manifoldcf.core.interfaces.ICacheDescription
Overrides:
getObjectClass in class org.apache.manifoldcf.core.cachemanager.BaseDescription
Returns:
the newly created object's object class, or null if there is no such class, and LRU behavior is not desired.