public static boolean isColocationComplete(PartitionedRegion region){
  Region prRoot=PartitionedRegionHelper.getPRRoot(region.getCache());
  PartitionRegionConfig config=(PartitionRegionConfig)prRoot.get(region.getRegionIdentifier());
  if (config == null) {
    Assert.assertTrue(region.isDestroyed() || region.isClosed,"Region is not destroyed, but there is no entry in the prRoot for region " + region);
    return false;
  }
  return config.isColocationComplete();
}

public static boolean isColocationComplete ( PartitionedRegion region ) { Region prRoot = PartitionedRegionHelper . getPRRoot ( region . getCache ( ) ) ; PartitionRegionConfig config = ( PartitionRegionConfig ) prRoot . get ( region . getRegionIdentifier ( ) ) ; if ( config == null ) { Assert . assertTrue ( region . isDestroyed ( ) || region . isClosed , "Region is not destroyed, but there is no entry in the prRoot for region " + region ) ; return false ; } return config . isColocationComplete ( ) ; }
a utility to check to see if a region has been created on all of the vms that host the regions this region is colocated with .
