Author: toad Date: 2008-06-13 17:14:00 +0000 (Fri, 13 Jun 2008) New Revision: 20316
Modified: branches/db4o/freenet/src/freenet/client/InsertContext.java Log: InsertContext too Modified: branches/db4o/freenet/src/freenet/client/InsertContext.java =================================================================== --- branches/db4o/freenet/src/freenet/client/InsertContext.java 2008-06-13 17:11:43 UTC (rev 20315) +++ branches/db4o/freenet/src/freenet/client/InsertContext.java 2008-06-13 17:14:00 UTC (rev 20316) @@ -3,11 +3,9 @@ * http://www.gnu.org/ for further details of the GPL. */ package freenet.client; -import freenet.client.async.BackgroundBlockEncoder; import freenet.client.async.USKManager; import freenet.client.events.ClientEventProducer; import freenet.client.events.SimpleEventProducer; -import freenet.crypt.RandomSource; import freenet.support.Executor; import freenet.support.api.BucketFactory; import freenet.support.io.NullPersistentFileTracker; @@ -21,7 +19,6 @@ public final PersistentFileTracker persistentFileTracker; /** If true, don't try to compress the data */ public boolean dontCompress; - public final RandomSource random; public final short splitfileAlgorithm; public int maxInsertRetries; final int maxSplitInsertThreads; @@ -34,14 +31,13 @@ public final USKManager uskManager; public final Executor executor; - public InsertContext(BucketFactory bf, BucketFactory persistentBF, PersistentFileTracker tracker, RandomSource random, + public InsertContext(BucketFactory bf, BucketFactory persistentBF, PersistentFileTracker tracker, int maxRetries, int rnfsToSuccess, int maxThreads, int splitfileSegmentDataBlocks, int splitfileSegmentCheckBlocks, ClientEventProducer eventProducer, boolean cacheLocalRequests, USKManager uskManager, Executor executor) { this.bf = bf; this.persistentFileTracker = tracker; this.persistentBucketFactory = persistentBF; this.uskManager = uskManager; - this.random = random; dontCompress = false; splitfileAlgorithm = Metadata.SPLITFILE_ONION_STANDARD; this.consecutiveRNFsCountAsSuccess = rnfsToSuccess; @@ -59,7 +55,6 @@ this.uskManager = ctx.uskManager; this.bf = ctx.bf; this.persistentBucketFactory = forceNonPersistent ? ctx.bf : ctx.persistentBucketFactory; - this.random = ctx.random; this.dontCompress = ctx.dontCompress; this.splitfileAlgorithm = ctx.splitfileAlgorithm; this.consecutiveRNFsCountAsSuccess = ctx.consecutiveRNFsCountAsSuccess; @@ -77,7 +72,6 @@ this.uskManager = ctx.uskManager; this.bf = ctx.bf; this.persistentBucketFactory = ctx.persistentBucketFactory; - this.random = ctx.random; this.dontCompress = ctx.dontCompress; this.splitfileAlgorithm = ctx.splitfileAlgorithm; this.consecutiveRNFsCountAsSuccess = ctx.consecutiveRNFsCountAsSuccess;
