public class BucketInfo extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
bucketId |
protected Map<Object,Object> |
entriesMap |
protected boolean |
isPrimary |
protected com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember |
member |
protected Map<Object,com.gemstone.gemfire.internal.cache.versions.VersionTag> |
versions |
protected int |
vmId |
| Constructor and Description |
|---|
BucketInfo(int bucketIdArg,
com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember memberArg,
int vmIdArg,
boolean isPrimaryArg,
Map entriesMapArg,
Map<Object,com.gemstone.gemfire.internal.cache.versions.VersionTag> versions)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String |
bucketListToString(List bucketList)
Return a string representation to show a picture of all the buckets
in a PR.
|
String |
compare(BucketInfo info,
boolean allowDifferentPrimaries)
Compare two bucketInfos and return a String describing the differences.
|
static String |
compareBucketLists(int vmId,
List expectedList,
List actualList,
boolean allowDifferentPrimaries)
Compare two bucket lists (lists that contain BucketInfos)
and return a String describing the differences.
|
boolean |
equals(Object anObj)
Return true of the anObj is equal to this BucketInfo, false otherwise
|
static List<List<BucketInfo>> |
getAllBuckets(com.gemstone.gemfire.cache.Region prReg)
Collect information on all buckets, and return a List of Lists of
BucketInfo instances.
|
int |
getBucketId() |
Map |
getEntriesMap() |
boolean |
getIsPrimary() |
protected String |
getKeysStr(Map entriesMap)
Return a String representation of the keys in the given map.
|
com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember |
getMember() |
int |
getVmId() |
static String |
masterBucketListToString(List bucketList)
Return a string representation to show a picture of all the buckets
in a PR.
|
protected static void |
removePayload(List<com.gemstone.gemfire.internal.cache.BucketDump> listOfMaps) |
String |
toString()
Return a string representation of this instance.
|
protected int bucketId
protected com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember member
protected int vmId
protected boolean isPrimary
public BucketInfo(int bucketIdArg,
com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember memberArg,
int vmIdArg,
boolean isPrimaryArg,
Map entriesMapArg,
Map<Object,com.gemstone.gemfire.internal.cache.versions.VersionTag> versions)
bucketIdArg - The bucket id for this instance.memberArg - The InternalDistributedMembers that contain the bucketId.vmIdArg - The hydra vm id (Integer) of this member.isPrimaryArg - True if this bucket in memberArg is primary, false otherwise.entriesMapArg - A list of keys/values contained in bucket in memberArg.public static List<List<BucketInfo>> getAllBuckets(com.gemstone.gemfire.cache.Region prReg)
prReg - A partitioned region.public String toString()
protected String getKeysStr(Map entriesMap)
entriesMap - A Map of keys/values.public static String compareBucketLists(int vmId, List expectedList, List actualList, boolean allowDifferentPrimaries)
vmId - The vmId being compared.expectedList - The bucket list containing the expected contents.actualList - The bucket list to compare with.allowDifferentPrimaries - true if the primaries can be different, false otherwise.public String compare(BucketInfo info, boolean allowDifferentPrimaries)
info - The BucketInfo to compare to.allowDifferentPrimaries - true if the primaries can be different, false otherwise.public static String masterBucketListToString(List bucketList)
bucketList - A List returned from BucketInfo.getAllBuckets().public static String bucketListToString(List bucketList)
bucketList - A List of BucketInfo instances.public boolean equals(Object anObj)
protected static void removePayload(List<com.gemstone.gemfire.internal.cache.BucketDump> listOfMaps)
public int getBucketId()
public com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember getMember()
public int getVmId()
public boolean getIsPrimary()
public Map getEntriesMap()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.