Class LruBlockCacheConfiguration
- java.lang.Object
-
- org.apache.accumulo.core.file.blockfile.cache.lru.LruBlockCacheConfiguration
-
public final class LruBlockCacheConfiguration extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LruBlockCacheConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
ACCEPTABLE_FACTOR_PROPERTY
static Float
DEFAULT_ACCEPTABLE_FACTOR
static Integer
DEFAULT_CONCURRENCY_LEVEL
static Float
DEFAULT_LOAD_FACTOR
Backing Concurrent Map Configurationstatic Float
DEFAULT_MEMORY_FACTOR
static Float
DEFAULT_MIN_FACTOR
Eviction thresholdsstatic Float
DEFAULT_MULTI_FACTOR
static Float
DEFAULT_SINGLE_FACTOR
Priority bucketsstatic String
EVICTION_THREAD_PROPERTY
static String
MAP_CONCURRENCY_PROPERTY
static String
MAP_LOAD_PROPERTY
static String
MEMORY_FACTOR_PROPERTY
static String
MIN_FACTOR_PROPERTY
static String
MULTI_FACTOR_PROPERTY
static String
PROPERTY_PREFIX
static String
SINGLE_FACTOR_PROPERTY
-
Constructor Summary
Constructors Constructor Description LruBlockCacheConfiguration(BlockCacheManager.Configuration conf, CacheType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LruBlockCacheConfiguration.Builder
builder(CacheType ct)
float
getAcceptableFactor()
long
getBlockSize()
int
getMapConcurrencyLevel()
float
getMapLoadFactor()
long
getMaxSize()
float
getMemoryFactor()
float
getMinFactor()
float
getMultiFactor()
float
getSingleFactor()
boolean
isUseEvictionThread()
String
toString()
-
-
-
Field Detail
-
PROPERTY_PREFIX
public static final String PROPERTY_PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_LOAD_FACTOR
public static final Float DEFAULT_LOAD_FACTOR
Backing Concurrent Map Configuration
-
DEFAULT_CONCURRENCY_LEVEL
public static final Integer DEFAULT_CONCURRENCY_LEVEL
-
DEFAULT_MIN_FACTOR
public static final Float DEFAULT_MIN_FACTOR
Eviction thresholds
-
DEFAULT_ACCEPTABLE_FACTOR
public static final Float DEFAULT_ACCEPTABLE_FACTOR
-
DEFAULT_SINGLE_FACTOR
public static final Float DEFAULT_SINGLE_FACTOR
Priority buckets
-
DEFAULT_MULTI_FACTOR
public static final Float DEFAULT_MULTI_FACTOR
-
DEFAULT_MEMORY_FACTOR
public static final Float DEFAULT_MEMORY_FACTOR
-
ACCEPTABLE_FACTOR_PROPERTY
public static final String ACCEPTABLE_FACTOR_PROPERTY
- See Also:
- Constant Field Values
-
MIN_FACTOR_PROPERTY
public static final String MIN_FACTOR_PROPERTY
- See Also:
- Constant Field Values
-
SINGLE_FACTOR_PROPERTY
public static final String SINGLE_FACTOR_PROPERTY
- See Also:
- Constant Field Values
-
MULTI_FACTOR_PROPERTY
public static final String MULTI_FACTOR_PROPERTY
- See Also:
- Constant Field Values
-
MEMORY_FACTOR_PROPERTY
public static final String MEMORY_FACTOR_PROPERTY
- See Also:
- Constant Field Values
-
MAP_LOAD_PROPERTY
public static final String MAP_LOAD_PROPERTY
- See Also:
- Constant Field Values
-
MAP_CONCURRENCY_PROPERTY
public static final String MAP_CONCURRENCY_PROPERTY
- See Also:
- Constant Field Values
-
EVICTION_THREAD_PROPERTY
public static final String EVICTION_THREAD_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LruBlockCacheConfiguration
public LruBlockCacheConfiguration(BlockCacheManager.Configuration conf, CacheType type)
-
-
Method Detail
-
getAcceptableFactor
public float getAcceptableFactor()
-
getMinFactor
public float getMinFactor()
-
getSingleFactor
public float getSingleFactor()
-
getMultiFactor
public float getMultiFactor()
-
getMemoryFactor
public float getMemoryFactor()
-
getMapLoadFactor
public float getMapLoadFactor()
-
getMapConcurrencyLevel
public int getMapConcurrencyLevel()
-
isUseEvictionThread
public boolean isUseEvictionThread()
-
builder
public static LruBlockCacheConfiguration.Builder builder(CacheType ct)
-
getMaxSize
public long getMaxSize()
-
getBlockSize
public long getBlockSize()
-
-