com.caucho.server.distcache
Class HashManager

java.lang.Object
  extended by com.caucho.server.distcache.HashManager

public class HashManager
extends java.lang.Object

Creates hashes for the identifiers.


Field Summary
static java.lang.String HASH_ALGORITHM
           
static HashKey NULL
           
static int SIZE
           
 
Constructor Summary
HashManager()
          Creates the manager
 
Method Summary
 HashKey generateHash(HashKey priorHash, java.lang.String key)
          Generates a hash from a prior hash and a string
 HashKey generateHash(java.lang.String key)
          Generates a hash from a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE

public static final int SIZE
See Also:
Constant Field Values

HASH_ALGORITHM

public static final java.lang.String HASH_ALGORITHM
See Also:
Constant Field Values

NULL

public static final HashKey NULL
Constructor Detail

HashManager

public HashManager()
Creates the manager

Method Detail

generateHash

public HashKey generateHash(java.lang.String key)
Generates a hash from a string


generateHash

public HashKey generateHash(HashKey priorHash,
                            java.lang.String key)
Generates a hash from a prior hash and a string