|
GemFire 6.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.cache.partition.PartitionManager
public final class PartitionManager
An utility class to manage partitions (aka buckets) on a Partitioned Region without requiring data (e.g. keys). Note : Please contact support@gemstone.com before using these APIs
| Method Summary | |
|---|---|
static boolean |
createPrimaryBucket(Region<?,?> region,
int bucketId,
boolean destroyExistingRemote,
boolean destroyExistingLocal)
This method creates primary bucket in the following way: If the partitioned region does not have a primary bucket for the bucketId, it creates a primary bucket on the member and returns true. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean createPrimaryBucket(Region<?,?> region,
int bucketId,
boolean destroyExistingRemote,
boolean destroyExistingLocal)
If the partitioned region does not have a primary bucket for the bucketId, it creates a primary bucket on the member and returns true.
If the partitioned region does have a primary bucket for the bucketId on
the member :
a) If destroyExistingLocal passed is true, it destroys the existing bucket,
and then creates a new primary bucket and returns true.
b) If destroyExistingLocal passed is false, it creates a bucket instance
and returns false.
If the partitioned region does have a primary bucket for the bucketId on
remote members :
a) If destroyExistingRemote passed is true, it destroys the existing bucket
on remote member, and then creates a new primary bucket on this member and
returns true.
b) If destroyExistingRemote passed is false, it throws
IllegalStateException.
region - the partitioned region on which to create the bucketbucketId - the identifier of the bucket to createdestroyExistingRemote - whether to destroy the remote bucket if existdestroyExistingLocal - whether to destroy the local bucket if exist
IllegalArgumentException - if the provided region is not a partitioned region
IllegalArgumentException - if the provided bucketId is less than zero or greater than or
equal to the partitioned region's total number of buckets
IllegalStateException - if the partitioned region have the primary bucket for the bucket
id on a remote member and destroyExistingRemote parameter provided
is false
|
GemFire 6.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||