Package org.springframework.data.gemfire
Class DiskStoreFactoryBean
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<DiskStore>
org.springframework.data.gemfire.DiskStoreFactoryBean
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,BeanNameAware
,FactoryBean<DiskStore>
,InitializingBean
public class DiskStoreFactoryBean
extends AbstractFactoryBeanSupport<DiskStore>
implements InitializingBean
Spring
FactoryBean
used to create a DiskStore
.- Author:
- David Turanski, John Blum
- See Also:
-
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 DiskStoreFactory
configure
(DiskStoreFactory diskStoreFactory) Configures the givenDiskStoreFactory
with the configuration settings present on thisDiskStoreFactoryBean
protected DiskStoreFactory
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.Class<?>
protected DiskStore
newDiskStore
(DiskStoreFactory diskStoreFactory, String diskStoreName) protected DiskStore
postProcess
(DiskStore diskStore) Post-process the providedDiskStore
constructed, configured and initialized by thisDiskStoreFactoryBean
.protected DiskStoreFactory
postProcess
(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
(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 interfaceInitializingBean
- 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
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:
-
configure
Configures the givenDiskStoreFactory
with the configuration settings present on thisDiskStoreFactoryBean
- Parameters:
diskStoreFactory
-DiskStoreFactory
to configure.- Returns:
- the given
DiskStoreFactory
- See Also:
-
newDiskStore
-
postProcess
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:
-
postProcess
Post-process the providedDiskStore
constructed, configured and initialized by thisDiskStoreFactoryBean
. -
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 interfaceFactoryBean<DiskStore>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<DiskStore>
-
setCache
-
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
-