|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.config.NativeMemoryConfig
public class NativeMemoryConfig
Contains native memory configuration.
| Nested Class Summary | |
|---|---|
static class |
NativeMemoryConfig.MemoryAllocatorType
Type of memory allocator: STANDARD: allocate/free memory using default OS memory manager POOLED: manage memory blocks in pool |
| Field Summary | |
|---|---|
static float |
DEFAULT_METADATA_SPACE_PERCENTAGE
Default metadata space percentage |
static int |
DEFAULT_MIN_BLOCK_SIZE
Default minimum block size |
static int |
DEFAULT_PAGE_SIZE
Default page size |
static int |
DEFAULT_POWER
Default power for page size |
static int |
INITIAL_MEMORY_SIZE
Initial memory size in megabytes |
static int |
MIN_INITIAL_MEMORY_SIZE
Minimum initial memory size in megabytes |
| Constructor Summary | |
|---|---|
NativeMemoryConfig()
|
|
| Method Summary | |
|---|---|
NativeMemoryConfig.MemoryAllocatorType |
getAllocatorType()
|
float |
getMetadataSpacePercentage()
|
int |
getMinBlockSize()
|
int |
getPageSize()
|
MemorySize |
getSize()
|
boolean |
isEnabled()
|
NativeMemoryConfig |
setAllocatorType(NativeMemoryConfig.MemoryAllocatorType allocatorType)
|
NativeMemoryConfig |
setEnabled(boolean enabled)
|
NativeMemoryConfig |
setMetadataSpacePercentage(float metadataSpacePercentage)
|
NativeMemoryConfig |
setMinBlockSize(int minBlockSize)
|
NativeMemoryConfig |
setPageSize(int pageSize)
|
NativeMemoryConfig |
setSize(MemorySize size)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MIN_BLOCK_SIZE
public static final int DEFAULT_POWER
public static final int DEFAULT_PAGE_SIZE
public static final float DEFAULT_METADATA_SPACE_PERCENTAGE
public static final int MIN_INITIAL_MEMORY_SIZE
public static final int INITIAL_MEMORY_SIZE
| Constructor Detail |
|---|
public NativeMemoryConfig()
| Method Detail |
|---|
public MemorySize getSize()
public NativeMemoryConfig setSize(MemorySize size)
public boolean isEnabled()
public NativeMemoryConfig setEnabled(boolean enabled)
public NativeMemoryConfig.MemoryAllocatorType getAllocatorType()
public NativeMemoryConfig setAllocatorType(NativeMemoryConfig.MemoryAllocatorType allocatorType)
public int getMinBlockSize()
public NativeMemoryConfig setMinBlockSize(int minBlockSize)
public int getPageSize()
public NativeMemoryConfig setPageSize(int pageSize)
public float getMetadataSpacePercentage()
public NativeMemoryConfig setMetadataSpacePercentage(float metadataSpacePercentage)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||