Package org.exist.storage.cache

Examples of org.exist.storage.cache.LRUCache


        super(pool, id, true, pool.getCacheManager(), 0.01);
        lock = new ReentrantReadWriteLock(getFileName());
        fileHeader = (BTreeFileHeader)getFileHeader();
        fileHeader.setPageCount(0);
        fileHeader.setTotalCount(0);
        dataCache = new LRUCache(256, 0.0, 1.0, CacheManager.DATA_CACHE);
        dataCache.setFileName(getFileName());
        cacheManager.registerCache(dataCache);
        final File file = new File(dataDir + File.separatorChar + getFileName());
        setFile(file);
        if (exists()) {
View Full Code Here


    public BFile(BrokerPool pool, byte fileId, boolean transactional, File file, DefaultCacheManager cacheManager,
            double cacheGrowth, double thresholdBTree, double thresholdData) throws DBException {
        super(pool, fileId, transactional, cacheManager, file, thresholdBTree);
        fileHeader = (BFileHeader) getFileHeader();
        dataCache = new LRUCache(64, cacheGrowth, thresholdData, CacheManager.DATA_CACHE);
        dataCache.setFileName(file.getName());
        cacheManager.registerCache(dataCache);
        minFree = PAGE_MIN_FREE;
        lock = new ReentrantReadWriteLock(file.getName());
        maxValueSize = fileHeader.getWorkSize() / 2;
View Full Code Here

TOP

Related Classes of org.exist.storage.cache.LRUCache

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.