Package freenet.support.io

Examples of freenet.support.io.NoFreeBucket


      if(data == null) continue;
      if(data.size() == 0) continue;
      if(noFilter && download.filterData) continue;
      // FIXME it probably *is* worth the effort to allow this when it is overridden on the fetcher, since the user changed the type???
      if(download.overriddenDataType) continue;
      return new CacheFetchResult(new ClientMetadata(download.getMIMEType()), new NoFreeBucket(data), download.filterData);
    }
    return null;
  }
View Full Code Here


  public FetchResult getCompletedRequestBlocking(final FreenetURI key) throws PersistenceDisabledException {
    ClientGet get = globalRebootClient.getCompletedRequest(key);
    if(get != null) {
      // FIXME race condition with free() - arrange refcounting for the data to prevent this
      return new FetchResult(new ClientMetadata(get.getMIMEType()), new NoFreeBucket(get.getBucket()));
    }

    FetchResult result = globalForeverClient.getRequestStatusCache().getShadowBucket(key, false);
    if(result != null) {
      return result;
View Full Code Here

    Bucket origData = null;
    String mime = null;
    boolean filtered = false;

    if(get != null && ((!noFilter) || (!(filtered = get.filterData())))) {
      origData = new NoFreeBucket(get.getBucket());
      mime = get.getMIMEType();
    }

    if(origData == null && globalForeverClient != null) {
      CacheFetchResult result = globalForeverClient.getRequestStatusCache().getShadowBucket(key, noFilter);
View Full Code Here

          if(fetch == null) break;
          continue;
        }

        if(logMINOR) Logger.minor(this, "Found data");
        data = new NoFreeBucket(fr.data);
        mimeType = fr.mimeType;
        fetch.close(); // Not waiting any more, but still locked the results until sent
        break;
      } else if(fr.failed != null) {
        if(logMINOR) Logger.minor(this, "Request failed");
View Full Code Here

TOP

Related Classes of freenet.support.io.NoFreeBucket

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.