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:
-
FactoryBean
InitializingBean
FixedPartitionAttributes
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.apache.geode.cache.FixedPartitionAttributes
Class<?>
boolean
void
setNumBuckets
(Integer numBuckets) Set the number of buckets in the Partition Region.void
setPartitionName
(String partitionName) Set the name of the partition in the Partition Region.void
setPrimary
(boolean primary) Sets whether this particular PARTITION Region is the primary (i.e.
-
Constructor Details
-
FixedPartitionAttributesFactoryBean
public FixedPartitionAttributesFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.FixedPartitionAttributes>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in 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.
-