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