/** Restore a splitfile fetcher from a file. * @throws StorageFormatException * @throws IOException * @throws FetchException */ public SplitFileFetcherStorage createStorage(StorageCallback cb, FetchContext ctx, LockableRandomAccessBuffer raf) throws IOException, StorageFormatException, FetchException { assertTrue(persistent); return new SplitFileFetcherStorage(raf, false, cb, ctx, random, jobRunner, fetchingKeys, ticker, memoryLimitedJobRunner, new CRCChecksumChecker(), false, null, false, false); }
public SplitFileFetcherStorage createStorage(final StorageCallback cb, FetchContext ctx) throws FetchException, MetadataParseException, IOException { LockableRandomAccessBufferFactory f = new LockableRandomAccessBufferFactory() { @Override public LockableRandomAccessBuffer makeRAF(long size) throws IOException { LockableRandomAccessBuffer t = rafFactory.makeRAF(size); cb.snoopRAF(t); return t; } @Override public LockableRandomAccessBuffer makeRAF(byte[] initialContents, int offset, int size, boolean readOnly) throws IOException { LockableRandomAccessBuffer t = rafFactory.makeRAF(initialContents, offset, size, readOnly); cb.snoopRAF(t); return t; } }; return new SplitFileFetcherStorage(metadata, cb, NO_DECOMPRESSORS, metadata.getClientMetadata(), false, (short) COMPATIBILITY_MODE.ordinal(), ctx, false, salt, URI, URI, true, new byte[0], random, bf, f, jobRunner, ticker, memoryLimitedJobRunner, new CRCChecksumChecker(), persistent, null, null, fetchingKeys); }
storage = new SplitFileFetcherStorage(metadata, this, decompressors, clientMetadata, topDontCompress, topCompatibilityMode, fetchContext, realTimeFlag, getSalter(), thisKey, parent.getURI(), isFinalFetch, parent.getClientDetail(checker),
KeySalter salter = getSalter(); raf.onResume(context); this.storage = new SplitFileFetcherStorage(raf, realTimeFlag, this, blockFetchContext, context.random, context.jobRunner, context.getChkFetchScheduler(realTimeFlag).fetchingKeys(), context.ticker,
SplitFileFetcherStorage fetcherStorage = new SplitFileFetcherStorage(m1, fcb, new ArrayList<COMPRESSOR_TYPE>(), new ClientMetadata(), false, cmode, fctx, false, salt, URI, URI, true, new byte[0], r, smallBucketFactory, smallRAFFactory, jobRunner, ticker, memoryLimitedJobRunner,
SplitFileFetcherStorage fetcherStorage = new SplitFileFetcherStorage(m1, fcb, new ArrayList<COMPRESSOR_TYPE>(), new ClientMetadata(), false, cmode, fctx, false, salt, URI, URI, true, new byte[0], r, smallBucketFactory, smallRAFFactory, jobRunner, ticker, memoryLimitedJobRunner,
SplitFileFetcherStorage fetcherStorage = new SplitFileFetcherStorage(m1, fcb, new ArrayList<COMPRESSOR_TYPE>(), new ClientMetadata(), false, cmode.code, fctx, false, salt, URI, URI, true, new byte[0], r, smallBucketFactory, smallRAFFactory, jobRunner, ticker, memoryLimitedJobRunner,