Spring Data for VMware GemFire
Package org.springframework.data.gemfire
Class PartitionAttributesFactoryBean<K,V>
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.cache.PartitionAttributes<K,V>>
org.springframework.data.gemfire.PartitionAttributesFactoryBean<K,V>
- 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.PartitionAttributes<K,,V>> org.springframework.beans.factory.InitializingBean
public class PartitionAttributesFactoryBean<K,V>
extends AbstractFactoryBeanSupport<org.apache.geode.cache.PartitionAttributes<K,V>>
implements org.springframework.beans.factory.InitializingBean
Spring
FactoryBean for creating PartitionAttributes.
Eliminates the need to use a XML 'factory-method' tag and allows the attributes properties to be set directly.- See Also:
-
FixedPartitionAttributesPartitionAttributesPartitionAttributesFactoryPartitionResolverPartitionListenerFactoryBeanInitializingBeanAbstractFactoryBeanSupport
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETONFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClass<?>voidsetColocatedWith(String collocatedWith) voidsetFixedPartitionAttributes(List<org.apache.geode.cache.FixedPartitionAttributes> fixedPartitionAttributes) voidsetLocalMaxMemory(int mb) voidsetPartitionListeners(List<org.apache.geode.cache.partition.PartitionListener> partitionListeners) voidsetPartitionResolver(org.apache.geode.cache.PartitionResolver<K, V> resolver) voidsetRecoveryDelay(long recoveryDelay) voidsetRedundantCopies(int redundantCopies) voidsetStartupRecoveryDelay(long startupRecoveryDelay) voidsetTotalMaxMemory(long megabytes) voidsetTotalNumBuckets(int numBuckets) 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
-
PartitionAttributesFactoryBean
public PartitionAttributesFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getObject
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<K>
-
setColocatedWith
-
setFixedPartitionAttributes
public void setFixedPartitionAttributes(List<org.apache.geode.cache.FixedPartitionAttributes> fixedPartitionAttributes) -
setLocalMaxMemory
public void setLocalMaxMemory(int mb) -
setPartitionListeners
public void setPartitionListeners(List<org.apache.geode.cache.partition.PartitionListener> partitionListeners) -
setPartitionResolver
-
setRecoveryDelay
public void setRecoveryDelay(long recoveryDelay) -
setRedundantCopies
public void setRedundantCopies(int redundantCopies) -
setStartupRecoveryDelay
public void setStartupRecoveryDelay(long startupRecoveryDelay) -
setTotalMaxMemory
public void setTotalMaxMemory(long megabytes) -
setTotalNumBuckets
public void setTotalNumBuckets(int numBuckets)
-