|
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
public abstract static class AbstractJournalRM.DefaultDependencies
The DefaultDependencies class provides a default implementation of Dependencies.
Field Summary | |
---|---|
protected long |
m_cbMaxFile Maximum size for any of the journal files (maximum-file-size). |
protected int |
m_cbMaxValue Configurable maximum value size (maximum-value-size). |
protected double |
m_dflLoadFactorGC The percentage (as a double in the range 0.01 to 0.99) at which a file is eligible for garbage collection (minimum-load-factor). |
static double |
MAX_COLLECT_PCT Maximum collection factor (0.99, i.e. files that are still almost full). |
static int |
MAX_FILE_COUNT Maximum file count for a Journal (512). |
static double |
MIN_COLLECT_PCT Minimum collection factor (0.01, i.e. files that are only 1% utilized). |
Constructor Summary | |
---|---|
AbstractJournalRM.DefaultDependencies() Construct a DefaultDependencies object. |
|
AbstractJournalRM.DefaultDependencies(AbstractJournalRM.Dependencies deps) Construct a DefaultDependencies object. |
Method Summary | |
---|---|
double |
getCollectorLoadFactor() Return the load factor threshold at which files become eligible for garbage collection (compaction). |
protected abstract double |
getDefaultCollectorLoadFactor() Get the default percentage at which a file is eligible for garbage collection. |
protected abstract long |
getDefaultMaxFileSize() Get the default maximum file size for this Journal Resource Manager. |
protected abstract int |
getDefaultMaxValueSize() Get the default maximum value size for this Journal Resource Manager. |
long |
getMaxFileSize() Return the maximum allowable size, in bytes, of each individual file used to hold Journal data. |
int |
getMaxValueSize() Return the maximum allowable size, in bytes, of a Binary value. |
AbstractJournalRM.DefaultDependencies |
setCollectorLoadFactor(double dflFactor) Set the use-percentage of file below which it becomes eligible for garbage collection. |
AbstractJournalRM.DefaultDependencies |
setMaxFileSize(long maxFileSize) Set the maximum size of the underlying journal files. |
AbstractJournalRM.DefaultDependencies |
setMaxValueSize(int valueSize) Set the maximum size, in bytes, of Binary values to store. |
java.lang.String |
toString() Return the DefautlDependencies in String format. |
AbstractJournalRM.Dependencies |
validate() Validate the supplied dependencies. |
protected void |
validateLoadFactor() Validate the minimum-load-factor. |
Field Detail |
---|
public static final double MIN_COLLECT_PCT
public static final double MAX_COLLECT_PCT
public static final int MAX_FILE_COUNT
protected int m_cbMaxValue
protected long m_cbMaxFile
protected double m_dflLoadFactorGC
Constructor Detail |
---|
public AbstractJournalRM.DefaultDependencies()
public AbstractJournalRM.DefaultDependencies(AbstractJournalRM.Dependencies deps)
deps
- the dependencies to copy, or nullMethod Detail |
---|
protected abstract long getDefaultMaxFileSize()
protected abstract int getDefaultMaxValueSize()
protected abstract double getDefaultCollectorLoadFactor()
public int getMaxValueSize()
getMaxValueSize
in interface AbstractJournalRM.Dependencies
public AbstractJournalRM.DefaultDependencies setMaxValueSize(int valueSize)
valueSize
- the maximum allowable size for a Binary value, or zero to specify no configured maximum for the value sizepublic long getMaxFileSize()
getMaxFileSize
in interface AbstractJournalRM.Dependencies
public AbstractJournalRM.DefaultDependencies setMaxFileSize(long maxFileSize)
maxFileSize
- the maximum size, in bytes, for journal filespublic double getCollectorLoadFactor()
When the portion of released data exceeds (1 - threshold), the file becomes eligible for compaction (garbage collection).
getCollectorLoadFactor
in interface AbstractJournalRM.Dependencies
public AbstractJournalRM.DefaultDependencies setCollectorLoadFactor(double dflFactor)
MIN_COLLECT_PCT
and a maximum defined by MAX_COLLECT_PCT
. Setting the value higher means that disk space will be collected more aggressively, but the cost of collection will be significantly higher, while setting the value lower will use more disk space.dflFactor
- the garbage collector factor in the range 0.01 to 0.99public AbstractJournalRM.Dependencies validate()
java.lang.IllegalArgumentException
- if the dependencies are not validpublic java.lang.String toString()
protected void validateLoadFactor()
|
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 |