GemFire 7.0.1

com.gemstone.gemfire.cache
Class FixedPartitionAttributes

java.lang.Object
  extended by com.gemstone.gemfire.cache.FixedPartitionAttributes

public abstract class FixedPartitionAttributes
extends Object

Composite date type used to distribute the attributes for a fixed partition.

PartitionAttributes.getFixedPartitionAttributes() returns all fixed partitions in Partitioned Region attributes.

PartitionAttributesFactory.addFixedPartitionAttributes(FixedPartitionAttributes) configures FixedPartitionAttributes in PartitionedRegionAttributes

Since:
6.6
See Also:
PartitionAttributes, PartitionAttributesFactory

Constructor Summary
FixedPartitionAttributes()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedPartitionAttributes

public FixedPartitionAttributes()
Method Detail

createFixedPartition

public static final FixedPartitionAttributes createFixedPartition(String name)
Creates an instance of FixedPartitionAttributes.

Parameters:
name - Name of the fixed partition.

createFixedPartition

public static final FixedPartitionAttributes createFixedPartition(String name,
                                                                  boolean isPrimary)
Creates an instance of FixedPartitionAttributes.

Parameters:
name - Name of the fixed partition.
isPrimary - True if this member is the primary for the partition.

createFixedPartition

public static final FixedPartitionAttributes createFixedPartition(String name,
                                                                  boolean isPrimary,
                                                                  int numBuckets)
Creates an instance of FixedPartitionAttributes.

Parameters:
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.

createFixedPartition

public static final FixedPartitionAttributes createFixedPartition(String name,
                                                                  int numBuckets)
Creates an instance of FixedPartitionAttributes.

Parameters:
name - Name of the fixed partition.
numBuckets - Number of buckets allowed for the partition.

getPartitionName

public abstract String getPartitionName()
Returns the name of the fixed partition.


isPrimary

public abstract boolean isPrimary()
Returns whether this member is the primary for the partition.

Returns:
True if this member is the primary, false otherwise.

getNumBuckets

public abstract int getNumBuckets()
Returns the number of buckets allowed for the partition.


GemFire 7.0.1

Copyright © 1997-2013 VMware, Inc. All rights reserved.