Class FixedPartitionAttributes

  • java.lang.Object
    • org.apache.geode.cache.FixedPartitionAttributes
    • Constructor Detail

      • FixedPartitionAttributes

        public FixedPartitionAttributes()
    • Method Detail

      • createFixedPartition

        public static FixedPartitionAttributes createFixedPartition​(java.lang.String name)
        Creates an instance of FixedPartitionAttributes.
        Parameters:
        name - Name of the fixed partition.
        Returns:
        an instance of FixedPartitionAttributes
      • createFixedPartition

        public static FixedPartitionAttributes createFixedPartition​(java.lang.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.
        Returns:
        an instance of FixedPartitionAttributes
      • createFixedPartition

        public static FixedPartitionAttributes createFixedPartition​(java.lang.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.
        Returns:
        an instance of FixedPartitionAttributes
      • createFixedPartition

        public static FixedPartitionAttributes createFixedPartition​(java.lang.String name,
                                                                    int numBuckets)
        Creates an instance of FixedPartitionAttributes.
        Parameters:
        name - Name of the fixed partition.
        numBuckets - Number of buckets allowed for the partition.
        Returns:
        an instance of FixedPartitionAttributes
      • getPartitionName

        public abstract java.lang.String getPartitionName()
        Returns the name of the fixed partition.
        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.
        Returns:
        the number of buckets allowed for the partition