Package freenet.client

Examples of freenet.client.HighLevelSimpleClient


  final Executor executor;
 
  private ClientContext context;
 
  public USKManager(NodeClientCore core) {
    HighLevelSimpleClient client = core.makeClient(RequestStarter.UPDATE_PRIORITY_CLASS, false, false);
    client.setMaxIntermediateLength(FProxyToadlet.MAX_LENGTH_NO_PROGRESS);
    client.setMaxLength(FProxyToadlet.MAX_LENGTH_NO_PROGRESS);
    backgroundFetchContext = client.getFetchContext();
    backgroundFetchContext.followRedirects = false;
    backgroundFetchContextIgnoreDBR = backgroundFetchContext.clone();
    backgroundFetchContextIgnoreDBR.ignoreUSKDatehints = true;
    realFetchContext = client.getFetchContext();
    // Performance: I'm pretty sure there is no spatial locality in the underlying data, so it's okay to use the FAST_COMPARATOR here.
    // That is, even if two USKs are by the same author, they won't necessarily be updated or polled at the same time.
    latestKnownGoodByClearUSK = new TreeMap<USK, Long>(USK.FAST_COMPARATOR);
    latestSlotByClearUSK = new TreeMap<USK, Long>(USK.FAST_COMPARATOR);
    subscribersByClearUSK = new TreeMap<USK, USKCallback[]>(USK.FAST_COMPARATOR);
View Full Code Here


      this.freenetURI = freenetURI;
      this.filename = filename;
    }

    public void start(short priority, long maxSize) {
      HighLevelSimpleClient hlsc = node.clientCore.makeClient(priority,
          false, false);
      FetchContext context = hlsc.getFetchContext();
      context.maxNonSplitfileRetries = -1;
      context.maxSplitfileBlockRetries = -1;
      context.maxTempLength = maxSize;
      context.maxOutputLength = maxSize;
      ClientGetter get = new ClientGetter(this, freenetURI, context,
View Full Code Here

TOP

Related Classes of freenet.client.HighLevelSimpleClient

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.