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:
  • Constructor Details

    • DiskStoreFactoryBean

      public DiskStoreFactoryBean()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • applyDiskStoreConfigurers

      protected void applyDiskStoreConfigurers(String diskStoreName, DiskStoreConfigurer... diskStoreConfigurers)
      Null-safe operation to apply the given array of DiskStoreConfigurers to this DiskStoreFactoryBean.
      Parameters:
      diskStoreName - String containing the name of the DiskStore.
      diskStoreConfigurers - array of DiskStoreConfigurers applied to this DiskStoreFactoryBean.
      See Also:
    • applyDiskStoreConfigurers

      protected void applyDiskStoreConfigurers(String diskStoreName, Iterable<DiskStoreConfigurer> diskStoreConfigurers)
      Null-safe operation to apply the given Iterable of DiskStoreConfigurers to this DiskStoreFactoryBean.
      Parameters:
      diskStoreName - String containing the name of the DiskStore.
      diskStoreConfigurers - Iterable of DiskStoreConfigurers applied to this DiskStoreFactoryBean.
      See Also:
    • createDiskStoreFactory

      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.
      Parameters:
      cache - reference to the GemFireCache used to create the DiskStoreFactory.
      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 given DiskStoreFactory with the configuration settings present on this DiskStoreFactoryBean
      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)
      Constructs a new instance of DiskStore with the given name using the provided DiskStoreFactory
      Parameters:
      diskStoreFactory - DiskStoreFactory used to create the DiskStore.
      diskStoreName - String containing the name of the new DiskStore.
      Returns:
      a new instance of DiskStore with the given name.
      See Also:
      • DiskStoreFactory
      • DiskStore
    • postProcess

      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.
      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 provided DiskStore constructed, configured and initialized by this DiskStoreFactoryBean.
      Parameters:
      diskStore - DiskStore to process.
      Returns:
      the given DiskStore.
      See Also:
      • DiskStore
    • getCompositeDiskStoreConfigurer

      protected DiskStoreConfigurer getCompositeDiskStoreConfigurer()
      Returns a reference to the Composite DiskStoreConfigurer used to apply additional configuration to this DiskStoreFactoryBean on Spring container initialization.
      Returns:
      the Composite DiskStoreConfigurer.
      See Also:
    • getObject

      public org.apache.geode.cache.DiskStore getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.DiskStore>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.DiskStore>
    • setCache

      public void setCache(org.apache.geode.cache.GemFireCache cache)
    • setAllowForceCompaction

      public void setAllowForceCompaction(Boolean allowForceCompaction)
    • setAutoCompact

      public void setAutoCompact(Boolean autoCompact)
    • setCompactionThreshold

      public void setCompactionThreshold(Integer compactionThreshold)
    • validateCompactionThreshold

      protected void validateCompactionThreshold(Integer compactionThreshold)
    • setDiskDirs

      public void setDiskDirs(List<DiskStoreFactoryBean.DiskDir> diskDirs)
    • setDiskStoreConfigurers

      public 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.
      Parameters:
      diskStoreConfigurers - array of DiskStoreConfigurers used to apply additional configuration to this DiskStoreFactoryBean.
      See Also:
    • setDiskStoreConfigurers

      public 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.
      Parameters:
      diskStoreConfigurers - Iterable of DiskStoreConfigurers used to apply additional configuration to this DiskStoreFactoryBean.
      See Also:
    • setDiskUsageCriticalPercentage

      public void setDiskUsageCriticalPercentage(Float diskUsageCriticalPercentage)
    • setDiskUsageWarningPercentage

      public void setDiskUsageWarningPercentage(Float diskUsageWarningPercentage)
    • setMaxOplogSize

      public void setMaxOplogSize(Long maxOplogSize)
    • setQueueSize

      public void setQueueSize(Integer queueSize)
    • setTimeInterval

      public void setTimeInterval(Long timeInterval)
    • setWriteBufferSize

      public void setWriteBufferSize(Integer writeBufferSize)