Package freenet.keys

Examples of freenet.keys.Key$Compressed


    if(logMINOR) Logger.minor(this, "tripPendingKey("+block.getKey()+")");
   
    if(offeredKeys != null) {
      offeredKeys.remove(block.getKey());
    }
    final Key key = block.getKey();
    if(schedTransient.anyProbablyWantKey(key, clientContext)) {
      this.clientContext.mainExecutor.execute(new PrioRunnable() {

        @Override
        public void run() {
View Full Code Here


    SendableRequestItem token = req.chooseKey(this, context);
    if(token == null) {
      if(logMINOR) Logger.minor(this, "Choose key returned null: "+req);
      return null;
    } else {
      Key key;
      ClientKey ckey;
      if(isInsertScheduler) {
        key = null;
        ckey = null;
      } else {
        key = ((BaseSendableGet)req).getNodeKey(token);
        if(req instanceof SendableGet)
          ckey = ((SendableGet)req).getKey(token);
        else
          ckey = null;
      }
      ChosenBlock ret;
      if(key != null && key.getRoutingKey() == null)
        throw new NullPointerException();
      boolean localRequestOnly;
      boolean ignoreStore;
      boolean canWriteClientCache;
      boolean forkOnCacheable;
View Full Code Here

        for(int i=0;i<dataBlocks+checkBlocks;i++) {
            int chosen = storage.chooseRandomKey();
            assertTrue(chosen != -1);
            assertFalse(tried[chosen]);
            tried[chosen] = true;
            Key k = test.getCHK(chosen);
            keys.add(k);
        }
        // Every block has been tried.
        for(boolean b : tried) {
            assertTrue(b);
View Full Code Here

      req.onFailure(new LowLevelGetException(LowLevelGetException.CANCELLED), context);
      return false;
    }
    try {
      try {
        final Key k = key.getNodeKey();
        core.asyncGet(k, false, new RequestCompletionListener() {

          @Override
          public void onSucceeded() {
              req.onFetchSuccess(context);
View Full Code Here

TOP

Related Classes of freenet.keys.Key$Compressed

Copyright © 2018 www.massapicom. 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.