org.springframework.data.gemfire
Class PartitionAttributesFactoryBean

java.lang.Object
  extended by org.springframework.data.gemfire.PartitionAttributesFactoryBean
All Implemented Interfaces:
FactoryBean<com.gemstone.gemfire.cache.PartitionAttributes>, InitializingBean

public class PartitionAttributesFactoryBean
extends Object
implements FactoryBean<com.gemstone.gemfire.cache.PartitionAttributes>, InitializingBean

Spring-friendly bean for creating PartitionAttributes. Eliminates the need of using a XML 'factory-method' tag and allows the attributes properties to be set directly.


Constructor Summary
PartitionAttributesFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 com.gemstone.gemfire.cache.PartitionAttributes getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setColocatedWith(String colocatedRegionFullPath)
           
 void setFixedPartitionAttributes(List<com.gemstone.gemfire.cache.FixedPartitionAttributes> fixedPartitionAttributes)
           
 void setLocalMaxMemory(int mb)
           
 void setPartitionListeners(List<com.gemstone.gemfire.cache.partition.PartitionListener> listeners)
           
 void setPartitionResolver(com.gemstone.gemfire.cache.PartitionResolver resolver)
           
 void setRecoveryDelay(long recoveryDelay)
           
 void setRedundantCopies(int redundantCopies)
           
 void setStartupRecoveryDelay(long startupRecoveryDelay)
           
 void setTotalMaxMemory(long mb)
           
 void setTotalNumBuckets(int numBuckets)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionAttributesFactoryBean

public PartitionAttributesFactoryBean()
Method Detail

getObject

public com.gemstone.gemfire.cache.PartitionAttributes getObject()
                                                         throws Exception
Specified by:
getObject in interface FactoryBean<com.gemstone.gemfire.cache.PartitionAttributes>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean<com.gemstone.gemfire.cache.PartitionAttributes>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<com.gemstone.gemfire.cache.PartitionAttributes>

setColocatedWith

public void setColocatedWith(String colocatedRegionFullPath)

setFixedPartitionAttributes

public void setFixedPartitionAttributes(List<com.gemstone.gemfire.cache.FixedPartitionAttributes> fixedPartitionAttributes)

setLocalMaxMemory

public void setLocalMaxMemory(int mb)

setPartitionResolver

public void setPartitionResolver(com.gemstone.gemfire.cache.PartitionResolver resolver)

setPartitionListeners

public void setPartitionListeners(List<com.gemstone.gemfire.cache.partition.PartitionListener> listeners)

setRecoveryDelay

public void setRecoveryDelay(long recoveryDelay)

setRedundantCopies

public void setRedundantCopies(int redundantCopies)

setStartupRecoveryDelay

public void setStartupRecoveryDelay(long startupRecoveryDelay)

setTotalMaxMemory

public void setTotalMaxMemory(long mb)

setTotalNumBuckets

public void setTotalNumBuckets(int numBuckets)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception