Package com.tangosol.io.nio
Class MappedStoreManager
- java.lang.Object
-
- com.tangosol.util.Base
-
- com.tangosol.io.nio.AbstractStoreManager
-
- com.tangosol.io.nio.MappedStoreManager
-
- All Implemented Interfaces:
BinaryStoreManager
public class MappedStoreManager extends AbstractStoreManager
An implementation of BinaryStoreManager interface that usesBinaryMap
objects built on theMappedBufferManager
to provideBinaryStore
objects.- Since:
- Coherence 2.4
- Author:
- gg 2004.06.09
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
-
Constructor Summary
Constructors Constructor Description MappedStoreManager(int cbInitial, int cbMaximum, File dir)
Construct a DirectStoreManager that uses BinaryMap objests built on the MappedBufferManager(s) with certain initial and maximum size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ByteBufferManager
createBufferManager()
Create a ByteBufferManager to be used by a BinaryStore.File
getDirectory()
Obtain the directory to use for MappedBufferManager(s).void
setDirectory(File dir)
Specify the directory to use for MappedBufferManager(s).-
Methods inherited from class com.tangosol.io.nio.AbstractStoreManager
createBinaryStore, destroyBinaryStore, getMaxCapacity, getMinCapacity, setMaxCapacity, setMinCapacity
-
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
-
-
-
Constructor Detail
-
MappedStoreManager
public MappedStoreManager(int cbInitial, int cbMaximum, File dir)
Construct a DirectStoreManager that uses BinaryMap objests built on the MappedBufferManager(s) with certain initial and maximum size.- Parameters:
cbInitial
- the initial size of the managed bufferscbMaximum
- the maximum size of the managed buffers
-
-
Method Detail
-
getDirectory
public File getDirectory()
Obtain the directory to use for MappedBufferManager(s).- Returns:
- the File object, or null if the default location is used
-
setDirectory
public void setDirectory(File dir)
Specify the directory to use for MappedBufferManager(s).- Parameters:
dir
- the File object representing the directory, or null to use the default location
-
createBufferManager
protected ByteBufferManager createBufferManager()
Create a ByteBufferManager to be used by a BinaryStore.- Specified by:
createBufferManager
in classAbstractStoreManager
-
-