public class PrState extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected List |
bucketInfoList |
protected Integer |
vmId |
| Constructor and Description |
|---|
PrState() |
| Modifier and Type | Method and Description |
|---|---|
static String |
comparePrState(Map expectedMap,
Map actualMap,
boolean allowDifferentPrimaries)
Compare two prStateMaps (maps that are the result of PrState.getPrStateMap())
and return a String describing the differences.
|
boolean |
equals(Object anObj)
Return true if anObj is equal to this PrState, false otherwise
|
List |
getBucketInfoList() |
static Map |
getPrMap(List masterBucketList)
Get information about each member and return a Map of PrState instances.
|
static Map |
getPrMap(com.gemstone.gemfire.cache.Region aRegion)
Get information about each member and return a Map of PrState instances.
|
static String |
getPrPicture(com.gemstone.gemfire.cache.Region aRegion)
Return a String depicting all members and all buckets of the given pr.
|
static String |
getPrPicture(com.gemstone.gemfire.cache.Region aRegion,
int bucketId)
Return a String depicting the given bucket ID for all members of the given pr.
|
int |
getVmId() |
static String |
prMapToString(Map prMap)
Return a string representation to show a picture of the state of
the pr.
|
void |
setBucketInfoList(List listArg) |
void |
setVmId(int vmIdArg) |
String |
toString()
Return a string representation to show a picture of the state of
this pr.
|
public static Map getPrMap(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The region to get information for.public static Map getPrMap(List masterBucketList)
masterBucketList - A list returned from BucketInfo.getAllBuckets().public static String comparePrState(Map expectedMap, Map actualMap, boolean allowDifferentPrimaries)
expectedMap - The pr state map containing the expected contents.actualMap - The pr state map to compare with.allowDifferentPrimaries - true if the primaries can be different, false otherwise.public boolean equals(Object anObj)
public String toString()
public static String prMapToString(Map prMap)
prMap - A map where the key is the hydra vmId (Integer)
and the value is an instance of PrState.public static String getPrPicture(com.gemstone.gemfire.cache.Region aRegion)
aRegion - The region to depict.public static String getPrPicture(com.gemstone.gemfire.cache.Region aRegion, int bucketId)
aRegion - The region to depict.bucketId - The bucket to depict.public int getVmId()
public void setVmId(int vmIdArg)
public List getBucketInfoList()
public void setBucketInfoList(List listArg)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.