Examples of fetch()


Examples of freenet.store.CHKStore.fetch()

      nodeStats.avgRequestLocation.report(loc);
      CHKBlock block = chkDatastore.fetch(key, dontPromote || !canWriteDatastore, ignoreOldBlocks, meta);
      if(block == null) {
        CHKStore store = oldCHK;
        if(store != null)
          block = store.fetch(key, dontPromote || !canWriteDatastore, ignoreOldBlocks, meta);
      }
      if (block != null) {
        nodeStats.avgStoreCHKSuccess.report(loc);
        if (dist > nodeStats.furthestStoreCHKSuccess)
          nodeStats.furthestStoreCHKSuccess=dist;
View Full Code Here

Examples of freenet.store.CHKStore.fetch()

      }
      block=chkDatacache.fetch(key, dontPromote || !canWriteDatastore, ignoreOldBlocks, meta);
      if(block == null) {
        CHKStore store = oldCHKCache;
        if(store != null)
          block = store.fetch(key, dontPromote || !canWriteDatastore, ignoreOldBlocks, meta);
      }
      if (block != null) {
        nodeStats.avgCacheCHKSuccess.report(loc);
        if (dist > nodeStats.furthestCacheCHKSuccess)
          nodeStats.furthestCacheCHKSuccess=dist;
View Full Code Here

Examples of freenet.store.CHKStore.fetch()

    for(int i=0;i<5;i++) {
      String test = "test" + i;
      ClientCHKBlock block = encodeBlockCHK(test);
      store.put(block.getBlock(), false);
      ClientCHK key = block.getClientKey();
      CHKBlock verify = store.fetch(key.getNodeCHK(), false, false, null);
      String data = decodeBlockCHK(verify, key);
      assertEquals(test, data);
    }
   
    saltStore.close();
View Full Code Here

Examples of freenet.store.PubkeyStore.fetch()

      DSAPublicKey key = null;
      if(pubKeyClientcache != null && canReadClientCache)
        key = pubKeyClientcache.fetch(hash, false, false, meta);
      if(node.oldPKClientCache != null && canReadClientCache && key == null) {
        PubkeyStore pks = node.oldPKClientCache;
        if(pks != null) key = pks.fetch(hash, false, false, meta);
        if(key != null && logMINOR)
          Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from old client cache");
      }
      // We can *read* from the datastore even if nearby, but we cannot promote in that case.
      if(key == null) {
View Full Code Here

Examples of freenet.store.PubkeyStore.fetch()

        if(key != null && logMINOR)
          Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from store");
      }
      if(key == null) {
        PubkeyStore pks = node.oldPK;
        if(pks != null) key = pks.fetch(hash, false, ignoreOldBlocks, meta);
        if(key != null && logMINOR)
          Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from old store");
      }
      if (key == null) {
        key = pubKeyDatacache.fetch(hash, false, ignoreOldBlocks, meta);
View Full Code Here

Examples of freenet.store.PubkeyStore.fetch()

        if(key != null && logMINOR)
          Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from cache");
      }
      if(key == null) {
        PubkeyStore pks = node.oldPKCache;
        if(pks != null) key = pks.fetch(hash, false, ignoreOldBlocks, meta);
        if(key != null && logMINOR)
          Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from old cache");
      }
      if(key == null && pubKeySlashdotcache != null && forULPR) {
        key = pubKeySlashdotcache.fetch(hash, false, ignoreOldBlocks, meta);
View Full Code Here

Examples of freenet.store.SSKStore.fetch()

      nodeStats.avgRequestLocation.report(loc);
      SSKBlock block = sskDatastore.fetch(key, dontPromote || !canWriteDatastore, canReadClientCache, forULPR, ignoreOldBlocks, meta);
      if(block == null) {
        SSKStore store = oldSSK;
        if(store != null)
          block = store.fetch(key, dontPromote || !canWriteDatastore, canReadClientCache, forULPR, ignoreOldBlocks, meta);
      }
      if(block != null) {
      nodeStats.avgStoreSSKSuccess.report(loc);
      if (dist > nodeStats.furthestStoreSSKSuccess)
        nodeStats.furthestStoreSSKSuccess=dist;
View Full Code Here

Examples of freenet.store.SSKStore.fetch()

      }
      block=sskDatacache.fetch(key, dontPromote || !canWriteDatastore, canReadClientCache, forULPR, ignoreOldBlocks, meta);
      if(block == null) {
        SSKStore store = oldSSKCache;
        if(store != null)
          block = store.fetch(key, dontPromote || !canWriteDatastore, canReadClientCache, forULPR, ignoreOldBlocks, meta);
      }
      if (block != null) {
      nodeStats.avgCacheSSKSuccess.report(loc);
      if (dist > nodeStats.furthestCacheSSKSuccess)
        nodeStats.furthestCacheSSKSuccess=dist;
View Full Code Here

Examples of freenet.store.SSKStore.fetch()

      SSKBlock sskBlock = (SSKBlock) block.getBlock();
      store.put(sskBlock, false, false);
      ClientSSK key = block.getClientKey();
      NodeSSK ssk = (NodeSSK) key.getNodeKey();
      pubkeyCache.cacheKey(ssk.getPubKeyHash(), ssk.getPubKey(), false, false, false, false, false);
      SSKBlock verify = store.fetch(ssk, false, false, false, false, null);
      String data = decodeBlockSSK(verify, key);
      assertEquals(test, data);
    }
   
    saltStore.close();
View Full Code Here

Examples of gov.nasa.jpf.autodoc.types.scanner.TargetScanner.fetch()

        return NameUtils.isFileClassName(name);
      }
    };
   
    int filecount = 12;
    Set<String> set = scanner.fetch("test", filter);
   
    System.out.println(set);
    assertEquals(filecount, set.size());
  }
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.