public class DiskStoreFactoryBean extends AbstractFactoryBeanSupport<org.apache.geode.cache.DiskStore> implements InitializingBean
FactoryBean
used to create DiskStore
.DiskStore
,
DiskStoreFactory
,
GemFireCache
,
FactoryBean
,
InitializingBean
,
DiskStoreConfigurer
,
AbstractFactoryBeanSupport
Modifier and Type | Class and Description |
---|---|
static class |
DiskStoreFactoryBean.DiskDir |
DEFAULT_SINGLETON
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
DiskStoreFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
applyDiskStoreConfigurers(String diskStoreName,
DiskStoreConfigurer... diskStoreConfigurers)
Null-safe operation to apply the given array of
DiskStoreConfigurers
to this DiskStoreFactoryBean . |
protected void |
applyDiskStoreConfigurers(String diskStoreName,
Iterable<DiskStoreConfigurer> diskStoreConfigurers)
Null-safe operation to apply the given
Iterable of DiskStoreConfigurers
to this DiskStoreFactoryBean . |
protected org.apache.geode.cache.DiskStoreFactory |
configure(org.apache.geode.cache.DiskStoreFactory diskStoreFactory)
Configures the given
DiskStoreFactory with the configuration settings present
on this DiskStoreFactoryBean |
protected org.apache.geode.cache.DiskStoreFactory |
createDiskStoreFactory(org.apache.geode.cache.GemFireCache cache)
Creates an instance of
DiskStoreFactory using the given GemFireCache in order to
construct, configure and initialize a new DiskStore . |
protected DiskStoreConfigurer |
getCompositeDiskStoreConfigurer()
Returns a reference to the Composite
DiskStoreConfigurer used to apply additional configuration
to this DiskStoreFactoryBean on Spring container initialization. |
org.apache.geode.cache.DiskStore |
getObject() |
Class<?> |
getObjectType() |
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 provided
DiskStore constructed, configured and initialized
by this DiskStoreFactoryBean . |
protected org.apache.geode.cache.DiskStoreFactory |
postProcess(org.apache.geode.cache.DiskStoreFactory diskStoreFactory)
Post-process the
DiskStoreFactory with any custom DiskStoreFactory or DiskStore
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(DiskStoreConfigurer... diskStoreConfigurers)
Null-safe operation to set an array of
DiskStoreConfigurers used to
apply additional configuration to this DiskStoreFactoryBean when using Annotation-based configuration. |
void |
setDiskStoreConfigurers(List<DiskStoreConfigurer> diskStoreConfigurers)
Null-safe operation to set an
Iterable of DiskStoreConfigurers
used to apply additional configuration to this DiskStoreFactoryBean
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) |
getBeanClassLoader, getBeanFactory, getBeanName, getLog, isSingleton, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLog, setBeanClassLoader, setBeanFactory, setBeanName
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
protected void applyDiskStoreConfigurers(String diskStoreName, DiskStoreConfigurer... diskStoreConfigurers)
DiskStoreConfigurers
to this DiskStoreFactoryBean
.diskStoreName
- String
containing the name of the DiskStore
.diskStoreConfigurers
- array of DiskStoreConfigurers
applied
to this DiskStoreFactoryBean
.DiskStoreConfigurer
,
applyDiskStoreConfigurers(String, Iterable)
protected void applyDiskStoreConfigurers(String diskStoreName, Iterable<DiskStoreConfigurer> diskStoreConfigurers)
Iterable
of DiskStoreConfigurers
to this DiskStoreFactoryBean
.diskStoreName
- String
containing the name of the DiskStore
.diskStoreConfigurers
- Iterable
of DiskStoreConfigurers
applied
to this DiskStoreFactoryBean
.DiskStoreConfigurer
protected org.apache.geode.cache.DiskStoreFactory createDiskStoreFactory(org.apache.geode.cache.GemFireCache cache)
DiskStoreFactory
using the given GemFireCache
in order to
construct, configure and initialize a new DiskStore
.cache
- reference to the GemFireCache
used to create the DiskStoreFactory
.DiskStoreFactory
.GemFireCache.createDiskStoreFactory()
,
DiskStoreFactory
protected org.apache.geode.cache.DiskStoreFactory configure(org.apache.geode.cache.DiskStoreFactory diskStoreFactory)
DiskStoreFactory
with the configuration settings present
on this DiskStoreFactoryBean
diskStoreFactory
- DiskStoreFactory
to configure.DiskStoreFactory
DiskStoreFactory
protected org.apache.geode.cache.DiskStore newDiskStore(org.apache.geode.cache.DiskStoreFactory diskStoreFactory, String diskStoreName)
protected org.apache.geode.cache.DiskStoreFactory postProcess(org.apache.geode.cache.DiskStoreFactory diskStoreFactory)
DiskStoreFactory
with any custom DiskStoreFactory
or DiskStore
configuration settings as required by the application.diskStoreFactory
- DiskStoreFactory
to process.DiskStoreFactory
.DiskStoreFactory
protected org.apache.geode.cache.DiskStore postProcess(org.apache.geode.cache.DiskStore diskStore)
DiskStore
constructed, configured and initialized
by this DiskStoreFactoryBean
.diskStore
- DiskStore
to process.DiskStore
.DiskStore
protected DiskStoreConfigurer getCompositeDiskStoreConfigurer()
DiskStoreConfigurer
used to apply additional configuration
to this DiskStoreFactoryBean
on Spring container initialization.DiskStoreConfigurer
.DiskStoreConfigurer
public org.apache.geode.cache.DiskStore getObject() throws Exception
getObject
in interface FactoryBean<org.apache.geode.cache.DiskStore>
Exception
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<org.apache.geode.cache.DiskStore>
public void setCache(org.apache.geode.cache.GemFireCache cache)
public void setAllowForceCompaction(Boolean allowForceCompaction)
public void setAutoCompact(Boolean autoCompact)
public void setCompactionThreshold(Integer compactionThreshold)
protected void validateCompactionThreshold(Integer compactionThreshold)
public void setDiskDirs(List<DiskStoreFactoryBean.DiskDir> diskDirs)
public void setDiskStoreConfigurers(DiskStoreConfigurer... diskStoreConfigurers)
DiskStoreConfigurers
used to
apply additional configuration to this DiskStoreFactoryBean
when using Annotation-based configuration.diskStoreConfigurers
- array of DiskStoreConfigurers
used to apply
additional configuration to this DiskStoreFactoryBean
.DiskStoreConfigurer
,
setDiskStoreConfigurers(List)
public void setDiskStoreConfigurers(List<DiskStoreConfigurer> diskStoreConfigurers)
Iterable
of DiskStoreConfigurers
used to apply additional configuration to this DiskStoreFactoryBean
when using Annotation-based configuration.diskStoreConfigurers
- Iterable
of DiskStoreConfigurers
used to
apply additional configuration to this DiskStoreFactoryBean
.DiskStoreConfigurer
public void setDiskUsageCriticalPercentage(Float diskUsageCriticalPercentage)
public void setDiskUsageWarningPercentage(Float diskUsageWarningPercentage)
public void setMaxOplogSize(Long maxOplogSize)
public void setQueueSize(Integer queueSize)
public void setTimeInterval(Long timeInterval)
public void setWriteBufferSize(Integer writeBufferSize)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.