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>

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

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
 com.gemstone.gemfire.cache.PartitionAttributes getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setColocatedWith(String colocatedRegionFullPath)
           
 void setLocalMaxMemory(int mb)
           
 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)

setLocalMaxMemory

public void setLocalMaxMemory(int mb)

setPartitionResolver

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

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)