public abstract class FixedPartitionAttributes
extends java.lang.Object
PartitionAttributes.getFixedPartitionAttributes()
returns all fixed partitions in Partitioned Region attributes.
PartitionAttributesFactory.addFixedPartitionAttributes(FixedPartitionAttributes)
configures FixedPartitionAttributes in
PartitionedRegionAttributes PartitionAttributes,
PartitionAttributesFactory| Constructor and Description |
|---|
FixedPartitionAttributes() |
| Modifier and Type | Method and Description |
|---|---|
static FixedPartitionAttributes |
createFixedPartition(java.lang.String name)
Creates an instance of
FixedPartitionAttributes. |
static FixedPartitionAttributes |
createFixedPartition(java.lang.String name,
boolean isPrimary)
Creates an instance of
FixedPartitionAttributes. |
static FixedPartitionAttributes |
createFixedPartition(java.lang.String name,
boolean isPrimary,
int numBuckets)
Creates an instance of
FixedPartitionAttributes. |
static FixedPartitionAttributes |
createFixedPartition(java.lang.String name,
int numBuckets)
Creates an instance of
FixedPartitionAttributes. |
abstract int |
getNumBuckets()
Returns the number of buckets allowed for the partition.
|
abstract java.lang.String |
getPartitionName()
Returns the name of the fixed partition.
|
abstract boolean |
isPrimary()
Returns whether this member is the primary for the partition.
|
public static final FixedPartitionAttributes createFixedPartition(java.lang.String name)
FixedPartitionAttributes.name - Name of the fixed partition.public static final FixedPartitionAttributes createFixedPartition(java.lang.String name, boolean isPrimary)
FixedPartitionAttributes.name - Name of the fixed partition.isPrimary - True if this member is the primary for the partition.public static final FixedPartitionAttributes createFixedPartition(java.lang.String name, boolean isPrimary, int numBuckets)
FixedPartitionAttributes.name - Name of the fixed partition.isPrimary - True if this member is the primary for the partition.numBuckets - Number of buckets allowed for the partition.public static final FixedPartitionAttributes createFixedPartition(java.lang.String name, int numBuckets)
FixedPartitionAttributes.name - Name of the fixed partition.numBuckets - Number of buckets allowed for the partition.public abstract java.lang.String getPartitionName()
public abstract boolean isPrimary()
public abstract int getNumBuckets()