public abstract class AbstractResolvableCacheFactoryBean extends AbstractConfigurableCacheFactoryBean
GemFireCache
instance.Optional
,
Properties
,
GemFireCache
,
DistributedMember
,
DistributedSystem
,
AbstractConfigurableCacheFactoryBean
AbstractBasicCacheFactoryBean.CacheFactoryInitializer<T>, AbstractBasicCacheFactoryBean.PdxConfigurer<T>
DEFAULT_SINGLETON
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
AbstractResolvableCacheFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected Object |
configureFactory(Object factory)
Configures the cache factory used to create the
GemFireCache . |
protected abstract <T extends org.apache.geode.cache.GemFireCache> |
createCache(Object factory)
Creates a new
GemFireCache instance using the provided factory . |
protected abstract Object |
createFactory(Properties gemfireProperties)
Constructs a new cache factory initialized with the given Apache Geode
Properties
used to construct, configure and initialize a new GemFireCache . |
protected org.apache.geode.cache.GemFireCache |
doGetObject()
Called if
AbstractBasicCacheFactoryBean.getCache() returns a null GemFireCache reference from AbstractBasicCacheFactoryBean.getObject() . |
protected org.apache.geode.cache.GemFireCache |
init()
Initializes a
GemFireCache . |
protected Object |
initializeFactory(Object factory)
Initializes the given
CacheFactory or ClientCacheFactory
with the configured AbstractBasicCacheFactoryBean.CacheFactoryInitializer . |
protected Object |
postProcess(Object factory)
Post process the cache factory used to create the
GemFireCache . |
protected <T extends org.apache.geode.cache.GemFireCache> |
postProcess(T cache)
Post process the
GemFireCache by loading any cache.xml file, applying custom settings
specified in SDG XML configuration metadata, and registering appropriate Transaction Listeners, Writer
and JVM Heap configuration. |
protected <T extends org.apache.geode.cache.GemFireCache> |
resolveCache()
Resolves a
GemFireCache by attempting to lookup an existing GemFireCache instance in the JVM,
first. |
afterPropertiesSet, destroy, getBeanFactoryLocator, getCacheXml, getOptionalBeanFactoryLocator, getOptionalCacheXml, getProperties, isCacheXmlPresent, isCacheXmlResolvableAsAFile, isUseBeanFactoryLocator, loadCacheXml, resolveProperties, setAndGetProperties, setBeanFactoryLocator, setCacheXml, setProperties, setUseBeanFactoryLocator
applyCacheConfigurers, close, configureHeapPercentages, configureOffHeapPercentages, configurePdx, doFetchCache, doGetObjectType, fetchCache, getCache, getCacheFactoryInitializer, getCopyOnRead, getCriticalHeapPercentage, getCriticalOffHeapPercentage, getEvictionHeapPercentage, getEvictionOffHeapPercentage, getObject, getObjectType, getOptionalCache, getPdxDiskStoreName, getPdxIgnoreUnreadFields, getPdxPersistent, getPdxReadSerialized, getPdxSerializer, getPhase, getTransactionListeners, getTransactionWriter, isClose, isCopyOnRead, isNotClosed, registerTransactionListeners, registerTransactionWriter, setCache, setCacheFactoryInitializer, setClose, setCopyOnRead, setCriticalHeapPercentage, setCriticalOffHeapPercentage, setEvictionHeapPercentage, setEvictionOffHeapPercentage, setPdxDiskStoreName, setPdxIgnoreUnreadFields, setPdxPersistent, setPdxReadSerialized, setPdxSerializer, setPhase, setTransactionListeners, setTransactionWriter, translateExceptionIfPossible
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
protected org.apache.geode.cache.GemFireCache doGetObject()
AbstractBasicCacheFactoryBean
AbstractBasicCacheFactoryBean.getCache()
returns a null GemFireCache
reference from AbstractBasicCacheFactoryBean.getObject()
.doGetObject
in class AbstractBasicCacheFactoryBean
GemFireCache
instance.GemFireCache
,
AbstractBasicCacheFactoryBean.getObject()
protected org.apache.geode.cache.GemFireCache init()
GemFireCache
.GemFireCache
.GemFireCache
,
AbstractBasicCacheFactoryBean.setCache(GemFireCache)
,
resolveCache()
,
AbstractBasicCacheFactoryBean.getCache()
protected <T extends org.apache.geode.cache.GemFireCache> T resolveCache()
GemFireCache
by attempting to lookup an existing GemFireCache
instance in the JVM,
first. If an existing GemFireCache
could not be found, then this method proceeds in attempting to
create a new GemFireCache
instance.T
- parameterized Class
type extending GemFireCache
.GemFireCache
.ClientCache
,
GemFireCache
,
Cache
,
AbstractBasicCacheFactoryBean.fetchCache()
,
AbstractConfigurableCacheFactoryBean.resolveProperties()
,
createFactory(java.util.Properties)
,
initializeFactory(Object)
,
configureFactory(Object)
,
postProcess(Object)
,
createCache(Object)
,
postProcess(GemFireCache)
@NonNull protected abstract Object createFactory(@NonNull Properties gemfireProperties)
Properties
used to construct, configure and initialize a new GemFireCache
.gemfireProperties
- Properties
used by the cache factory to configure the GemFireCache
;
must not be nullProperties
.ClientCacheFactory
,
CacheFactory
,
Properties
,
AbstractConfigurableCacheFactoryBean.resolveProperties()
@NonNull protected Object configureFactory(@NonNull Object factory)
GemFireCache
.factory
- cache factory to configure; must not be null.createFactory(Properties)
protected Object initializeFactory(Object factory)
AbstractBasicCacheFactoryBean
CacheFactory
or ClientCacheFactory
with the configured AbstractBasicCacheFactoryBean.CacheFactoryInitializer
.initializeFactory
in class AbstractBasicCacheFactoryBean
factory
- CacheFactory
or ClientCacheFactory
to initialize.CacheFactory
or ClientCacheFactory
.org.springframework.data.gemfire.CacheFactoryBean.CacheFactoryInitializer#initialize(Object)
,
ClientCacheFactory
,
CacheFactory
,
AbstractBasicCacheFactoryBean.getCacheFactoryInitializer()
@NonNull protected Object postProcess(@NonNull Object factory)
GemFireCache
.factory
- cache factory to post process; must not be null.ClientCacheFactory
,
CacheFactory
,
createFactory(Properties)
@NonNull protected abstract <T extends org.apache.geode.cache.GemFireCache> T createCache(@NonNull Object factory)
GemFireCache
instance using the provided factory
.@NonNull protected <T extends org.apache.geode.cache.GemFireCache> T postProcess(@NonNull T cache)
GemFireCache
by loading any cache.xml file, applying custom settings
specified in SDG XML configuration metadata, and registering appropriate Transaction Listeners, Writer
and JVM Heap configuration.T
- parameterized Class
type extending GemFireCache
.cache
- GemFireCache
to post process.GemFireCache
.AbstractConfigurableCacheFactoryBean.loadCacheXml(GemFireCache)
,
GemFireCache.loadCacheXml(java.io.InputStream)
,
AbstractBasicCacheFactoryBean.configureHeapPercentages(org.apache.geode.cache.GemFireCache)
,
AbstractBasicCacheFactoryBean.configureOffHeapPercentages(GemFireCache)
,
AbstractBasicCacheFactoryBean.registerTransactionListeners(org.apache.geode.cache.GemFireCache)
,
AbstractBasicCacheFactoryBean.registerTransactionWriter(org.apache.geode.cache.GemFireCache)
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.