public class MemLRUParameters extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected long |
allowableExcessBytes |
protected int |
byteArraySize |
protected int |
bytesPerKey |
protected int |
keyLength |
protected int |
maximumMegabytes |
static int |
MEGABYTE |
protected long |
minEvictionBytes |
static int |
OFF_HEAP_OVERHEAD |
protected int |
perEntryOverhead |
protected long |
regionByteLimit |
protected long |
totalAllowableBytes |
protected int |
totalBytesPerEntry |
static int |
UNKNOWN |
| Constructor and Description |
|---|
MemLRUParameters(int keyLength,
int maxMegabytes,
com.gemstone.gemfire.cache.Region aRegion)
Create an instance of MemLRUParameters.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getAllowableExcessBytes()
Return the number of bytes that the test should allow the region to exceed the
regionByteLimit.
|
int |
getByteArraySize()
Return the size of byte arrays stored as values in the region.
|
int |
getKeyLength()
Return the fixed keyLength settting.
|
int |
getMaxEntries()
Return the max number of entries in a region before going over the eviction controller's limit.
|
int |
getMaximumMegabytes()
Return the maximum megabytes setting for the memory evictor.
|
long |
getMinEvictionBytes()
Return the lower limit for the number of bytes that must be in a region before
eviction occurs.
|
long |
getRegionByteLimit()
Return the maximum number of bytes set for a region.
|
long |
getTotalAllowableBytes()
Return the total number of bytes allowd in the region.
|
long |
getTotalBytesPerEntry()
Return the number of bytes in an entry (inludes key, value and overhead)
|
String |
toString()
Return a string describing all known and calculated parameters
|
public static int UNKNOWN
public static final int MEGABYTE
public static final int OFF_HEAP_OVERHEAD
protected int byteArraySize
protected int maximumMegabytes
protected long minEvictionBytes
protected long allowableExcessBytes
protected long totalAllowableBytes
protected int keyLength
protected long regionByteLimit
protected int bytesPerKey
protected int perEntryOverhead
protected int totalBytesPerEntry
public MemLRUParameters(int keyLength,
int maxMegabytes,
com.gemstone.gemfire.cache.Region aRegion)
public int getByteArraySize()
public int getMaximumMegabytes()
TestException - if maximumMegabytes is not availablepublic long getMinEvictionBytes()
TestException - if minEvictionBytes is not availablepublic int getKeyLength()
TestException - if keyLength is not availablepublic long getRegionByteLimit()
TestException - if regionByteLimit is not availablepublic long getTotalBytesPerEntry()
TestException - if total bytes per entry is not availablepublic long getAllowableExcessBytes()
TestException - if allowableExcessBytes is not availablepublic long getTotalAllowableBytes()
TestException - totalAllowableBytes is not availablepublic int getMaxEntries()
TestException - if maxEntries is not availableCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.