Package freenet.node

Examples of freenet.node.LowLevelGetException


        // FIXME synchronization!!!
        if(logMINOR) Logger.minor(this, "RecentlyFailed -> cooldown until "+TimeUtil.formatTime(l-now)+" on "+this);
        cooldownWakeupTime = Math.max(cooldownWakeupTime, l);
        return null;
      } else {
        this.onFailure(new LowLevelGetException(LowLevelGetException.RECENTLY_FAILED), null, context);
        return null;
      }
    }
    return keys[0];
  }
View Full Code Here


    return "USKChecker for "+key.getURI()+" for "+cb;
  }

  @Override
  public void onFailed(KeyListenerConstructionException e, ClientContext context) {
    onFailure(new LowLevelGetException(LowLevelGetException.INTERNAL_ERROR, "IMPOSSIBLE: Failed to create Bloom filters (we don't have any!)", e), null, context);
  }
View Full Code Here

    cb.onDNF(context);
  }

  @Override
  protected void onBlockDecodeError(SendableRequestItem token, ClientContext context) {
    onFailure(new LowLevelGetException(LowLevelGetException.DECODE_FAILED), token, context);
  }
View Full Code Here

            try {
              scheduler.finishRegister(new SendableGet[] { get }, true, valid);
            } catch (Throwable t) {
              Logger.error(this, "Failed to register "+get+": "+t, t);
              try {
                get.onFailure(new LowLevelGetException(LowLevelGetException.INTERNAL_ERROR, "Internal error: "+t, t), null, context);
              } catch (Throwable t1) {
                Logger.error(this, "Failed to fail: "+t, t);
              }
            }
            return false;
View Full Code Here

    if(!key.equals(this.key)) return false;
    try {
      fetcher.onGotKey(key, found, context);
    } catch (Throwable t) {
      Logger.error(this, "Failed: "+t, t);
      fetcher.onFailure(new LowLevelGetException(LowLevelGetException.INTERNAL_ERROR), null, context);
    }
    synchronized(this) {
      done = true;
    }
    return true;
View Full Code Here

TOP

Related Classes of freenet.node.LowLevelGetException

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.