public static class RamJournalRM.DefaultDependencies extends AbstractJournalRM.DefaultDependencies implements RamJournalRM.Dependencies
| Modifier and Type | Field and Description |
|---|---|
static double |
DFT_COLLECT_PCT
Default collection factor (collect files that are 84% or less utilized).
|
static long |
DFT_POOL_SIZE
Default pool size (16MB).
|
static long |
DFT_TOTAL_SIZE
Default total size of RAM used (1GB).
|
static int |
DFT_VALUE_SIZE
Default maximum value size (16KB).
|
static long |
MAX_FILE_SIZE
Maximum size of a "file" i.e. a buffer (2GB).
|
static long |
MAX_POOL_SIZE
Maximum pool size (64GB).
|
static long |
MAX_TOTAL_SIZE
Maximum total size of RAM used (64GB).
|
static int |
MAX_VALUE_SIZE
Maximum value size (4MB).
|
static long |
MIN_FILE_SIZE
Minimum maximum size of a "file" i.e. a buffer (1MB).
|
static long |
MIN_TOTAL_SIZE
Minimum maximum total size of RAM used (16MB).
|
m_cbMaxFile, m_cbMaxSize, m_cbMaxValue, m_cCollectorTimeout, m_dflLoadFactorGC, MAX_COLLECT_PCT, MAX_FILE_COUNT, MIN_COLLECT_PCT, MIN_TIMEOUT| Constructor and Description |
|---|
DefaultDependencies()
Construct a DefaultDependencies object.
|
DefaultDependencies(RamJournalRM.Dependencies deps)
Construct a DefaultDependencies object.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getDefaultCollectorLoadFactor()
Get the default percentage at which a file is eligible for garbage collection.
|
protected long |
getDefaultMaxFileSize()
Get the default maximum file size for this Journal Resource Manager.
|
protected long |
getDefaultMaxSize()
Get the default maximum size (capacity) for this Journal Resource Manager.
|
protected int |
getDefaultMaxValueSize()
Get the default maximum value size for this Journal Resource Manager.
|
long |
getMaxPoolSize()
Return the maximum size (in bytes) of the buffers that can be held by the pool.
|
protected long |
getPermittedMaxFileSize()
Return the highest memory size that can be allocated per journal file.
|
protected long |
getPermittedMaxJournalSize()
Return the highest memory size that can be allocated per journal.
|
protected int |
getPermittedMaxValueSize()
Return the highest memory size permitted for each value stored in the journal.
|
protected long |
getPermittedMinFileSize()
Return the lowest memory size that can be allocated per journal file.
|
protected long |
getPermittedMinJournalSize()
Return the lowest memory size that can be allocated per journal.
|
boolean |
isNioRam()
Return if the journal will use off-heap buffers (NIO RAM) instead of on-heap buffers (byte arrays).
|
RamJournalRM.DefaultDependencies |
setMaxPoolSize(long maxPool)
Set the size of the buffers pool.
|
RamJournalRM.DefaultDependencies |
setNioRam(boolean fUseNioRam)
Set the journal to use direct buffers (NIO RAM) versus on-heap buffers (byte arrays) to store the journal data.
|
String |
toString()
Return the DefautlDependencies in String format.
|
RamJournalRM.DefaultDependencies |
validate()
Validate the supplied dependencies.
|
calculateMaxFileSize, getCollectorLoadFactor, getCollectorTimeout, getDefaultCollectorTimeout, getMaxFileSize, getMaxJournalSize, getMaxValueSize, setCollectorLoadFactor, setCollectorTimeout, setMaxFileSize, setMaxJournalSize, setMaxValueSize, validateCollectorTimeout, validateJournalSize, validateLoadFactor, validateMaxValueSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCollectorLoadFactor, getCollectorTimeout, getMaxFileSize, getMaxJournalSize, getMaxValueSizepublic static final long MIN_FILE_SIZE
public static final long MAX_FILE_SIZE
public static final long MIN_TOTAL_SIZE
public static final long MAX_TOTAL_SIZE
public static final long DFT_TOTAL_SIZE
public static final int MAX_VALUE_SIZE
public static final int DFT_VALUE_SIZE
public static final double DFT_COLLECT_PCT
public static final long MAX_POOL_SIZE
public static final long DFT_POOL_SIZE
public DefaultDependencies()
public DefaultDependencies(RamJournalRM.Dependencies deps)
deps - the dependencies to copy, or nullpublic boolean isNioRam()
isNioRam in interface RamJournalRM.Dependenciespublic RamJournalRM.DefaultDependencies setNioRam(boolean fUseNioRam)
fUseNioRam - pass true to use NIO direct buffers off the heap, or false to use byte arrays on the heappublic long getMaxPoolSize()
getMaxPoolSize in interface RamJournalRM.Dependenciespublic RamJournalRM.DefaultDependencies setMaxPoolSize(long maxPool)
DFT_POOL_SIZE, with a maximum defined by MAX_POOL_SIZE and a minimum of zero.maxPool - the size, in bytes, for the buffer poolpublic RamJournalRM.DefaultDependencies validate()
validate in class AbstractJournalRM.DefaultDependenciesIllegalArgumentException - if the dependencies are not validprotected long getDefaultMaxFileSize()
getDefaultMaxFileSize in class AbstractJournalRM.DefaultDependenciesprotected int getDefaultMaxValueSize()
getDefaultMaxValueSize in class AbstractJournalRM.DefaultDependenciesprotected long getDefaultMaxSize()
getDefaultMaxSize in class AbstractJournalRM.DefaultDependenciesprotected double getDefaultCollectorLoadFactor()
getDefaultCollectorLoadFactor in class AbstractJournalRM.DefaultDependenciesprotected long getPermittedMinJournalSize()
getPermittedMinJournalSize in class AbstractJournalRM.DefaultDependenciesprotected long getPermittedMaxJournalSize()
getPermittedMaxJournalSize in class AbstractJournalRM.DefaultDependenciesprotected long getPermittedMinFileSize()
getPermittedMinFileSize in class AbstractJournalRM.DefaultDependenciesprotected long getPermittedMaxFileSize()
getPermittedMaxFileSize in class AbstractJournalRM.DefaultDependenciesprotected int getPermittedMaxValueSize()
getPermittedMaxValueSize in class AbstractJournalRM.DefaultDependenciespublic String toString()
toString in class AbstractJournalRM.DefaultDependencies