Spring Data for VMware GemFire
Package org.springframework.data.gemfire
Class FixedPartitionAttributesFactoryBean
java.lang.Object
org.springframework.data.gemfire.FixedPartitionAttributesFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>,org.springframework.beans.factory.InitializingBean
public class FixedPartitionAttributesFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>, org.springframework.beans.factory.InitializingBean
Spring
FactoryBean to create a instance of the FixedPartitionAttributes.- See Also:
-
FactoryBeanInitializingBeanFixedPartitionAttributes
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.geode.cache.FixedPartitionAttributesClass<?>booleanvoidsetNumBuckets(Integer numBuckets) Set the number of buckets in the Partition Region.voidsetPartitionName(String partitionName) Set the name of the partition in the Partition Region.voidsetPrimary(boolean primary) Sets whether this particular PARTITION Region is the primary (i.e.
-
Constructor Details
-
FixedPartitionAttributesFactoryBean
public FixedPartitionAttributesFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>
-
setNumBuckets
Set the number of buckets in the Partition Region.- Parameters:
numBuckets- integer value indicating the number of buckets in the Partition Region.
-
setPartitionName
Set the name of the partition in the Partition Region.- Parameters:
partitionName- name of the partition.
-
setPrimary
public void setPrimary(boolean primary) Sets whether this particular PARTITION Region is the primary (i.e. not secondary).- Parameters:
primary- a boolean value to indicate whether this PARTITION Region is the primary.
-