public abstract class FixedPartitionAttributes extends 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(String name)
Creates an instance of
FixedPartitionAttributes . |
static FixedPartitionAttributes |
createFixedPartition(String name,
boolean isPrimary)
Creates an instance of
FixedPartitionAttributes . |
static FixedPartitionAttributes |
createFixedPartition(String name,
boolean isPrimary,
int numBuckets)
Creates an instance of
FixedPartitionAttributes . |
static FixedPartitionAttributes |
createFixedPartition(String name,
int numBuckets)
Creates an instance of
FixedPartitionAttributes . |
abstract int |
getNumBuckets()
Returns the number of buckets allowed for the partition.
|
abstract String |
getPartitionName()
Returns the name of the fixed partition.
|
abstract boolean |
isPrimary()
Returns whether this member is the primary for the partition.
|
public static FixedPartitionAttributes createFixedPartition(String name)
FixedPartitionAttributes
.name
- Name of the fixed partition.FixedPartitionAttributes
public static FixedPartitionAttributes createFixedPartition(String name, boolean isPrimary)
FixedPartitionAttributes
.name
- Name of the fixed partition.isPrimary
- True if this member is the primary for the partition.FixedPartitionAttributes
public static FixedPartitionAttributes createFixedPartition(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.FixedPartitionAttributes
public static FixedPartitionAttributes createFixedPartition(String name, int numBuckets)
FixedPartitionAttributes
.name
- Name of the fixed partition.numBuckets
- Number of buckets allowed for the partition.FixedPartitionAttributes
public abstract String getPartitionName()
public abstract boolean isPrimary()
public abstract int getNumBuckets()