Examples of HashKey


Examples of com.caucho.util.HashKey

                                        long idleTimeout,
                                        long leaseTimeout,
                                        long localReadTimeout,
                                        int leaseOwner)
  {
    HashKey key = entry.getKeyHash();

    MnodeValue oldEntryValue = loadMnodeValue(entry);

    HashKey oldValueHash
      = oldEntryValue != null ? oldEntryValue.getValueHashKey() : null;

    long oldVersion = oldEntryValue != null ? oldEntryValue.getVersion() : 0;
    long now = Alarm.getCurrentTime();
View Full Code Here

Examples of com.caucho.util.HashKey

      gzOut.finish();
      mOut.close();

      byte[] hash = mOut.getDigest();

      HashKey valueHash = new HashKey(hash);

      if (valueHash.equals(oldValueHash))
        return valueHash;

      int length = os.getLength();

      StreamSource source = new StreamSource(os);
View Full Code Here

Examples of com.caucho.util.HashKey

      mOut.close();

      byte[] hash = mOut.getDigest();

      HashKey valueHash = new HashKey(hash);

      if (valueHash.equals(oldValueHash)) {
        os.destroy();
        return valueHash;
      }

      int length = os.getLength();
View Full Code Here

Examples of com.caucho.util.HashKey

        long expireTimeout = rs.getLong(7);
        long idleTimeout = rs.getLong(8);
        long leaseTimeout = rs.getLong(9);
        long localReadTimeout = rs.getLong(10);

        HashKey value = valueHash != null ? new HashKey(valueHash) : null;
        HashKey cacheKey = cacheHash != null ? new HashKey(cacheHash) : null;

        if (keyHash == null)
          continue;

        entryList.add(new CacheData(new HashKey(keyHash),
                                    value,
                                    cacheKey,
                                    flags,
                                    version,
                                    itemUpdateTime,
View Full Code Here

Examples of com.caucho.util.HashKey

        long leaseTimeout = rs.getLong(8);
        long localReadTimeout = rs.getLong(9);
        long updateTime = rs.getLong(10);
        long accessTime = Alarm.getExactTime();

        HashKey cacheHashKey
          = cacheHash != null ? new HashKey(cacheHash) : null;

        HashKey valueHashKey
          = valueHash != null ? new HashKey(valueHash) : null;

        if (log.isLoggable(Level.FINER))
          log.finer(this + " load " + id + " value=" + valueHashKey + " cache=" + cacheHashKey);

        return new MnodeValue(valueHashKey, null, cacheHashKey,
View Full Code Here

Examples of com.caucho.util.HashKey

  _digest.update((byte) ch);
  _digest.update((byte) (ch >> 8));
      }

      return new HashKey(_digest.digest());
    }
  }
View Full Code Here

Examples of com.caucho.util.HashKey

  _digest.update((byte) ch);
  _digest.update((byte) (ch >> 8));
      }

      return new HashKey(_digest.digest());
    }
  }
View Full Code Here

Examples of com.caucho.util.HashKey

   * Returns the key entry.
   */
  @Override
  public E getCacheEntry(Object key, CacheConfig config)
  {
    HashKey hashKey = createHashKey(key, config);

    E cacheEntry = _entryCache.get(hashKey);

    while (cacheEntry == null) {
      cacheEntry = createCacheEntry(key, hashKey);
View Full Code Here

Examples of com.caucho.util.HashKey

    Object value = mnodeValue.getValue();

    if (value != null)
      return value;

    HashKey valueHash = mnodeValue.getValueHashKey();

    if (valueHash == null || valueHash == HashManager.NULL)
      return null;

    updateAccessTime(entry, mnodeValue, now);
View Full Code Here

Examples of com.caucho.util.HashKey

    if (mnodeValue == null)
      return false;

    updateAccessTime(entry, mnodeValue, now);

    HashKey valueHash = mnodeValue.getValueHashKey();

    if (valueHash == null || valueHash == HashManager.NULL)
      return false;

    boolean isData = readData(valueHash, config.getFlags(), os);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.