org.apache.manifoldcf.crawler.interfaces
Class CacheKeyFactory

java.lang.Object
  extended by org.apache.manifoldcf.core.interfaces.CacheKeyFactory
      extended by org.apache.manifoldcf.agents.interfaces.CacheKeyFactory
          extended by org.apache.manifoldcf.crawler.interfaces.CacheKeyFactory

public class CacheKeyFactory
extends CacheKeyFactory

This class just represents a central place where cache keys are assembled. All methods are static.


Field Summary
static java.lang.String _rcsid
           
 
Constructor Summary
protected CacheKeyFactory()
           
 
Method Summary
static java.lang.String makeAuthorityConnectionKey(java.lang.String connectionName)
          Construct a key which represents an individual authority connection.
static java.lang.String makeAuthorityConnectionsKey()
          Construct a key which represents the general list of authority connectors.
static java.lang.String makeJobIDKey(java.lang.String jobID)
          Construct a key which represents the fixed kind of data for an individual job.
static java.lang.String makeJobsKey()
          Construct a key which represents the general list of jobs - for queries that depend on the fixed kind of job data, not the dynamic data (e.g.
static java.lang.String makeJobStatusKey()
          Construct a key which represents the collective statuses of all jobs.
static java.lang.String makeRepositoryConnectionKey(java.lang.String connectionName)
          Construct a key which represents an individual repository connection.
static java.lang.String makeRepositoryConnectionsKey()
          Construct a key which represents the general list of repository connectors.
 
Methods inherited from class org.apache.manifoldcf.agents.interfaces.CacheKeyFactory
makeOutputConnectionKey, makeOutputConnectionsKey
 
Methods inherited from class org.apache.manifoldcf.core.interfaces.CacheKeyFactory
makeDatabaseKey, makeDatabaseKey, makeTableKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values
Constructor Detail

CacheKeyFactory

protected CacheKeyFactory()
Method Detail

makeAuthorityConnectionsKey

public static java.lang.String makeAuthorityConnectionsKey()
Construct a key which represents the general list of authority connectors.

Returns:
the cache key.

makeAuthorityConnectionKey

public static java.lang.String makeAuthorityConnectionKey(java.lang.String connectionName)
Construct a key which represents an individual authority connection.

Parameters:
connectionName - is the name of the connection.
Returns:
the cache key.

makeRepositoryConnectionsKey

public static java.lang.String makeRepositoryConnectionsKey()
Construct a key which represents the general list of repository connectors.

Returns:
the cache key.

makeRepositoryConnectionKey

public static java.lang.String makeRepositoryConnectionKey(java.lang.String connectionName)
Construct a key which represents an individual repository connection.

Parameters:
connectionName - is the name of the connector.
Returns:
the cache key.

makeJobsKey

public static java.lang.String makeJobsKey()
Construct a key which represents the general list of jobs - for queries that depend on the fixed kind of job data, not the dynamic data (e.g. status)

Returns:
the cache key.

makeJobIDKey

public static java.lang.String makeJobIDKey(java.lang.String jobID)
Construct a key which represents the fixed kind of data for an individual job.

Parameters:
jobID - is the job identifier.
Returns:
the cache key.

makeJobStatusKey

public static java.lang.String makeJobStatusKey()
Construct a key which represents the collective statuses of all jobs.

Returns:
the cache key.