Package org.springframework.data.gemfire
Class DiskStoreFactoryBean
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.cache.DiskStore>
org.springframework.data.gemfire.DiskStoreFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.DiskStore>
,org.springframework.beans.factory.InitializingBean
public class DiskStoreFactoryBean
extends AbstractFactoryBeanSupport<org.apache.geode.cache.DiskStore>
implements org.springframework.beans.factory.InitializingBean
Spring
FactoryBean
used to create a DiskStore
.- See Also:
-
File
DiskStore
DiskStoreFactory
GemFireCache
FactoryBean
InitializingBean
DiskStoreConfigurer
AbstractFactoryBeanSupport
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETON
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
applyDiskStoreConfigurers
(String diskStoreName, Iterable<DiskStoreConfigurer> diskStoreConfigurers) Null-safe operation to apply the givenIterable
ofDiskStoreConfigurers
to thisDiskStoreFactoryBean
.protected void
applyDiskStoreConfigurers
(String diskStoreName, DiskStoreConfigurer... diskStoreConfigurers) Null-safe operation to apply the given array ofDiskStoreConfigurers
to thisDiskStoreFactoryBean
.protected org.apache.geode.cache.DiskStoreFactory
configure
(org.apache.geode.cache.DiskStoreFactory diskStoreFactory) Configures the givenDiskStoreFactory
with the configuration settings present on thisDiskStoreFactoryBean
protected org.apache.geode.cache.DiskStoreFactory
createDiskStoreFactory
(org.apache.geode.cache.GemFireCache cache) Creates an instance ofDiskStoreFactory
using the givenGemFireCache
in order to construct, configure and initialize a newDiskStore
.protected DiskStoreConfigurer
Returns a reference to the CompositeDiskStoreConfigurer
used to apply additional configuration to thisDiskStoreFactoryBean
on Spring container initialization.org.apache.geode.cache.DiskStore
Class<?>
protected org.apache.geode.cache.DiskStore
newDiskStore
(org.apache.geode.cache.DiskStoreFactory diskStoreFactory, String diskStoreName) protected org.apache.geode.cache.DiskStore
postProcess
(org.apache.geode.cache.DiskStore diskStore) Post-process the providedDiskStore
constructed, configured and initialized by thisDiskStoreFactoryBean
.protected org.apache.geode.cache.DiskStoreFactory
postProcess
(org.apache.geode.cache.DiskStoreFactory diskStoreFactory) Post-process theDiskStoreFactory
with any customDiskStoreFactory
orDiskStore
configuration settings as required by the application.void
setAllowForceCompaction
(Boolean allowForceCompaction) void
setAutoCompact
(Boolean autoCompact) void
setCache
(org.apache.geode.cache.GemFireCache cache) void
setCompactionThreshold
(Integer compactionThreshold) void
setDiskDirs
(List<DiskStoreFactoryBean.DiskDir> diskDirs) void
setDiskStoreConfigurers
(List<DiskStoreConfigurer> diskStoreConfigurers) Null-safe operation to set anIterable
ofDiskStoreConfigurers
used to apply additional configuration to thisDiskStoreFactoryBean
when using Annotation-based configuration.void
setDiskStoreConfigurers
(DiskStoreConfigurer... diskStoreConfigurers) Null-safe operation to set an array ofDiskStoreConfigurers
used to apply additional configuration to thisDiskStoreFactoryBean
when using Annotation-based configuration.void
setDiskUsageCriticalPercentage
(Float diskUsageCriticalPercentage) void
setDiskUsageWarningPercentage
(Float diskUsageWarningPercentage) void
setMaxOplogSize
(Long maxOplogSize) void
setQueueSize
(Integer queueSize) void
setTimeInterval
(Long timeInterval) void
setWriteBufferSize
(Integer writeBufferSize) protected void
validateCompactionThreshold
(Integer compactionThreshold) Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
-
Constructor Details
-
DiskStoreFactoryBean
public DiskStoreFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
applyDiskStoreConfigurers
protected void applyDiskStoreConfigurers(String diskStoreName, DiskStoreConfigurer... diskStoreConfigurers) Null-safe operation to apply the given array ofDiskStoreConfigurers
to thisDiskStoreFactoryBean
.- Parameters:
diskStoreName
-String
containing the name of theDiskStore
.diskStoreConfigurers
- array ofDiskStoreConfigurers
applied to thisDiskStoreFactoryBean
.- See Also:
-
applyDiskStoreConfigurers
protected void applyDiskStoreConfigurers(String diskStoreName, Iterable<DiskStoreConfigurer> diskStoreConfigurers) Null-safe operation to apply the givenIterable
ofDiskStoreConfigurers
to thisDiskStoreFactoryBean
.- Parameters:
diskStoreName
-String
containing the name of theDiskStore
.diskStoreConfigurers
-Iterable
ofDiskStoreConfigurers
applied to thisDiskStoreFactoryBean
.- See Also:
-
createDiskStoreFactory
protected org.apache.geode.cache.DiskStoreFactory createDiskStoreFactory(org.apache.geode.cache.GemFireCache cache) Creates an instance ofDiskStoreFactory
using the givenGemFireCache
in order to construct, configure and initialize a newDiskStore
.- Parameters:
cache
- reference to theGemFireCache
used to create theDiskStoreFactory
.- Returns:
- a new instance of
DiskStoreFactory
. - See Also:
-
GemFireCache.createDiskStoreFactory()
DiskStoreFactory
-
configure
protected org.apache.geode.cache.DiskStoreFactory configure(org.apache.geode.cache.DiskStoreFactory diskStoreFactory) Configures the givenDiskStoreFactory
with the configuration settings present on thisDiskStoreFactoryBean
- Parameters:
diskStoreFactory
-DiskStoreFactory
to configure.- Returns:
- the given
DiskStoreFactory
- See Also:
-
DiskStoreFactory
-
newDiskStore
protected org.apache.geode.cache.DiskStore newDiskStore(org.apache.geode.cache.DiskStoreFactory diskStoreFactory, String diskStoreName) -
postProcess
protected org.apache.geode.cache.DiskStoreFactory postProcess(org.apache.geode.cache.DiskStoreFactory diskStoreFactory) Post-process theDiskStoreFactory
with any customDiskStoreFactory
orDiskStore
configuration settings as required by the application.- Parameters:
diskStoreFactory
-DiskStoreFactory
to process.- Returns:
- the given
DiskStoreFactory
. - See Also:
-
DiskStoreFactory
-
postProcess
protected org.apache.geode.cache.DiskStore postProcess(org.apache.geode.cache.DiskStore diskStore) Post-process the providedDiskStore
constructed, configured and initialized by thisDiskStoreFactoryBean
.- Parameters:
diskStore
-DiskStore
to process.- Returns:
- the given
DiskStore
. - See Also:
-
DiskStore
-
getCompositeDiskStoreConfigurer
Returns a reference to the CompositeDiskStoreConfigurer
used to apply additional configuration to thisDiskStoreFactoryBean
on Spring container initialization.- Returns:
- the Composite
DiskStoreConfigurer
. - See Also:
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.DiskStore>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.DiskStore>
-
setCache
public void setCache(org.apache.geode.cache.GemFireCache cache) -
setAllowForceCompaction
-
setAutoCompact
-
setCompactionThreshold
-
validateCompactionThreshold
-
setDiskDirs
-
setDiskStoreConfigurers
Null-safe operation to set an array ofDiskStoreConfigurers
used to apply additional configuration to thisDiskStoreFactoryBean
when using Annotation-based configuration.- Parameters:
diskStoreConfigurers
- array ofDiskStoreConfigurers
used to apply additional configuration to thisDiskStoreFactoryBean
.- See Also:
-
setDiskStoreConfigurers
Null-safe operation to set anIterable
ofDiskStoreConfigurers
used to apply additional configuration to thisDiskStoreFactoryBean
when using Annotation-based configuration.- Parameters:
diskStoreConfigurers
-Iterable
ofDiskStoreConfigurers
used to apply additional configuration to thisDiskStoreFactoryBean
.- See Also:
-
setDiskUsageCriticalPercentage
-
setDiskUsageWarningPercentage
-
setMaxOplogSize
-
setQueueSize
-
setTimeInterval
-
setWriteBufferSize
-