Package com.tangosol.net
Class DefaultConfigurableCacheFactory.PartitionedBackingMapManager
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.AbstractBackingMapManager
com.tangosol.net.DefaultConfigurableCacheFactory.PartitionedBackingMapManager
- All Implemented Interfaces:
BackingMapManager
- Enclosing class:
- DefaultConfigurableCacheFactory
protected class DefaultConfigurableCacheFactory.PartitionedBackingMapManager
extends AbstractBackingMapManager
BackingMapManager implementation used by PartitionAwareBackingMap(s) to
lazily configure the enclosing PABM based on the configuration settings of
the enclosed maps.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BackingMapManagerContextThe BackingMapManagerContext to pass to the enclosed backing maps.The CacheInfo for the enclosed backing maps.protected ClassLoaderThe ClassLoader to pass to the enclosed backing maps.protected XmlElementThe xml configuration for the enclosed backing maps. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPartitionedBackingMapManager(DefaultConfigurableCacheFactory.CacheInfo info, XmlElement xmlScheme, BackingMapManagerContext context, ClassLoader loader) -
Method Summary
Modifier and TypeMethodDescriptionObtain the "container" DefaultConfigurableCacheFactory that created this manager and which this manager is bound to.getStorageAccessAuthorizer(String sName) Determine theStorageAccessAuthorizerthat is used by a CacheService to secure access to the NamedCache with the specified name.instantiateBackingMap(String sName) Instantiate a [thread safe] Map that should be used by a CacheService to store cached values for a NamedCache with the specified name.booleanisBackingMapPersistent(String sName) Determine if the contents of the Map that is used by a CacheService to store cached values for a NamedCache with the specified name should be persisted.booleanisBackingMapSlidingExpiry(String sName) Determine if the Map that is used by a CacheService to store cached values for a NamedCache with specified name enables the sliding expiry - the expiry delay being extended by the read operations.voidreleaseBackingMap(String sName, Map map) Release the specified Map that was created using theBackingMapManager.instantiateBackingMap(String)method.Methods inherited from class com.tangosol.net.AbstractBackingMapManager
getContext, initMethods 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, waitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tangosol.net.BackingMapManager
getReadLocator, isBackingMapPersistent
-
Field Details
-
m_info
The CacheInfo for the enclosed backing maps. -
m_xmlScheme
The xml configuration for the enclosed backing maps. -
m_context
The BackingMapManagerContext to pass to the enclosed backing maps. -
m_loader
The ClassLoader to pass to the enclosed backing maps.
-
-
Constructor Details
-
PartitionedBackingMapManager
protected PartitionedBackingMapManager(DefaultConfigurableCacheFactory.CacheInfo info, XmlElement xmlScheme, BackingMapManagerContext context, ClassLoader loader)
-
-
Method Details
-
instantiateBackingMap
Instantiate a [thread safe] Map that should be used by a CacheService to store cached values for a NamedCache with the specified name.If the contents of the Map can be modified by anything other than the CacheService itself (e.g. if the Map automatically expires its entries periodically or size-limits its contents), then the returned object must implement the ObservableMap interface.
- Parameters:
sName- the name of the NamedCache for which this backing map is being created- Returns:
- an object implementing the Map interface that will provide backing storage for the specified cache name
-
isBackingMapPersistent
Determine if the contents of the Map that is used by a CacheService to store cached values for a NamedCache with the specified name should be persisted.- Parameters:
sName- the name of the NamedCache- Returns:
- true if the CacheService should persist the backing storage of the specified NamedCache
-
isBackingMapSlidingExpiry
Determine if the Map that is used by a CacheService to store cached values for a NamedCache with specified name enables the sliding expiry - the expiry delay being extended by the read operations.- Parameters:
sName- the name of the NamedCache- Returns:
- true if the backing map of the specified NamedCache enables the sliding expiry
-
getStorageAccessAuthorizer
Determine theStorageAccessAuthorizerthat is used by a CacheService to secure access to the NamedCache with the specified name.- Parameters:
sName- the name of the NamedCache- Returns:
- the
StorageAccessAuthorizeror null if the authorizer is not configured
-
releaseBackingMap
Release the specified Map that was created using theBackingMapManager.instantiateBackingMap(String)method. This method is invoked by the CacheService when the CacheService no longer requires the specified Map object.- Specified by:
releaseBackingMapin interfaceBackingMapManager- Overrides:
releaseBackingMapin classAbstractBackingMapManager- Parameters:
sName- the name of the NamedCache for which the specified Map object has acted as the backing mapmap- the Map object that is being released
-
getCacheFactory
Obtain the "container" DefaultConfigurableCacheFactory that created this manager and which this manager is bound to.- Returns:
- the DefaultConfigurableCacheFactory that created this manager
-