Package org.skife.config

Examples of org.skife.config.DataAmount


    /* Convenience stuff for overriding
    /**********************************************************************
     */

    public StoreConfig overrideOffHeapBufferSize(long sizeInBytes) {
        offHeapBufferSize = new DataAmount(sizeInBytes);
        return this;
    }
View Full Code Here


        offHeapBufferSize = new DataAmount(sizeInBytes);
        return this;
    }

    public StoreConfig overrideOffHeapBufferSize(String sizeDesc) {
        offHeapBufferSize = new DataAmount(sizeDesc);
        return this;
    }
View Full Code Here

        offHeapBufferSize = new DataAmount(sizeDesc);
        return this;
    }

    public StoreConfig overrideMaxPerEntryBufferSize(long sizeInBytes) {
        maxPerEntryBuffering = new DataAmount(sizeInBytes);
        return this;
    }
View Full Code Here

        maxPerEntryBuffering = new DataAmount(sizeInBytes);
        return this;
    }

    public StoreConfig overrideMaxPerEntryBufferSize(String sizeDesc) {
        maxPerEntryBuffering = new DataAmount(sizeDesc);
        return this;
    }
View Full Code Here

    }
   
    public LevelDBConfig(File dataRoot, long dataCacheSizeInBytes, long indexCacheSizeInBytes) {
        this.dataRoot = dataRoot;
        if (dataCacheSizeInBytes > 0L) {
            dataCacheSize = new DataAmount(dataCacheSizeInBytes);
        }
        if (indexCacheSizeInBytes > 0L) {
            indexCacheSize = new DataAmount(indexCacheSizeInBytes);
        }
    }
View Full Code Here

    /* Convenience stuff for overriding
    /**********************************************************************
     */

    public LevelDBConfig overrideDataCacheSize(long cacheSizeInBytes) {
        dataCacheSize = new DataAmount(cacheSizeInBytes);
        return this;
    }
View Full Code Here

        dataCacheSize = new DataAmount(cacheSizeInBytes);
        return this;
    }

    public LevelDBConfig overrideIndexCacheSize(long cacheSizeInBytes) {
        indexCacheSize = new DataAmount(cacheSizeInBytes);
        return this;
    }
View Full Code Here

        indexCacheSize = new DataAmount(cacheSizeInBytes);
        return this;
    }

    public LevelDBConfig overrideDataCacheSize(String cacheSizeDesc) {
        dataCacheSize = new DataAmount(cacheSizeDesc);
        return this;
    }
View Full Code Here

        dataCacheSize = new DataAmount(cacheSizeDesc);
        return this;
    }

    public LevelDBConfig overrideIndexCacheSize(String cacheSizeDesc) {
        indexCacheSize = new DataAmount(cacheSizeDesc);
        return this;
    }
View Full Code Here

    }
   
    public BDBJEConfig(File dataRoot, long cacheSizeInBytes) {
        this.dataRoot = dataRoot;
        if (cacheSizeInBytes > 0L) {
            cacheSize = new DataAmount(cacheSizeInBytes);
        }
    }
View Full Code Here

TOP

Related Classes of org.skife.config.DataAmount

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.