|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.2) E26043-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.io.journal.AbstractJournalRM.DefaultDependencies
com.tangosol.io.journal.RamJournalRM.DefaultDependencies
public static class RamJournalRM.DefaultDependencies
The DefaultDependencies class provides a default implementation of Dependencies.
| Field Summary | |
|---|---|
static double |
DFT_COLLECT_PCTDefault collection factor (collect files that are 84% or less utilized). |
static long |
DFT_FILE_SIZEDefault size of a "file" i.e. a buffer (2MB). |
static long |
DFT_POOL_SIZEDefault pool size (16MB). |
static long |
DFT_TOTAL_SIZEDefault total size of RAM used (1GB). |
static int |
DFT_VALUE_SIZEDefault maximum value size (16KB). |
static long |
MAX_FILE_SIZEMaximum size of a "file" i.e. a buffer (2GB). |
static long |
MAX_POOL_SIZEMaximum pool size (64GB). |
static long |
MAX_TOTAL_SIZEMaximum total size of RAM used (64GB). |
static int |
MAX_VALUE_SIZEMaximum value size (4MB). |
static long |
MIN_FILE_SIZEMinimum maximum size of a "file" i.e. a buffer (1MB). |
static long |
MIN_TOTAL_SIZEMinimum maximum total size of RAM used (16MB). |
| Fields inherited from class com.tangosol.io.journal.AbstractJournalRM.DefaultDependencies |
|---|
m_cbMaxFile, m_cbMaxValue, m_dflLoadFactorGC, MAX_COLLECT_PCT, MAX_FILE_COUNT, MIN_COLLECT_PCT |
| Constructor Summary | |
|---|---|
RamJournalRM.DefaultDependencies()Construct a DefaultDependencies object. |
|
RamJournalRM.DefaultDependencies(RamJournalRM.Dependencies deps)Construct a DefaultDependencies object. |
|
| Method Summary | |
|---|---|
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 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. |
long |
getMaxTotalRam()Return the total amount, in bytes, of RAM that will be used for the 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 |
setMaxTotalRam(long maxRam)Set the total amount of RAM that will be used for the journal. |
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. |
java.lang.String |
toString()Return the DefautlDependencies in String format. |
RamJournalRM.DefaultDependencies |
validate()Validate the supplied dependencies. |
| Methods inherited from class com.tangosol.io.journal.AbstractJournalRM.DefaultDependencies |
|---|
getCollectorLoadFactor, getMaxFileSize, getMaxValueSize, setCollectorLoadFactor, setMaxFileSize, setMaxValueSize, validateLoadFactor |
| Methods inherited from interface com.tangosol.io.journal.AbstractJournalRM.Dependencies |
|---|
getCollectorLoadFactor, getMaxFileSize, getMaxValueSize |
| Field Detail |
|---|
public static final long MIN_FILE_SIZE
public static final long MAX_FILE_SIZE
public static final long DFT_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
| Constructor Detail |
|---|
public RamJournalRM.DefaultDependencies()
public RamJournalRM.DefaultDependencies(RamJournalRM.Dependencies deps)
deps - the dependencies to copy, or null| Method Detail |
|---|
public long getMaxTotalRam()
getMaxTotalRam in interface RamJournalRM.Dependenciespublic RamJournalRM.DefaultDependencies setMaxTotalRam(long maxRam)
maxRam - the maximum number of bytes that will be allocated for journal storagepublic 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.DefaultDependenciesjava.lang.IllegalArgumentException - if the dependencies are not validprotected long getDefaultMaxFileSize()
getDefaultMaxFileSize in class AbstractJournalRM.DefaultDependenciesprotected int getDefaultMaxValueSize()
getDefaultMaxValueSize in class AbstractJournalRM.DefaultDependenciesprotected double getDefaultCollectorLoadFactor()
getDefaultCollectorLoadFactor in class AbstractJournalRM.DefaultDependenciespublic java.lang.String toString()
toString in class AbstractJournalRM.DefaultDependencies
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.2) E26043-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||