public abstract class RegionUtils extends CacheUtils
RegionUtils class is an abstract utility class for working with Regions.Region, 
RegionAttributesSpringUtils.OrderedBeanWrapper<T>, SpringUtils.ValueReturningThrowableOperation<T>, SpringUtils.VoidReturningExceptionThrowingOperation, SpringUtils.VoidReturningThrowableOperationDEFAULT_POOL_NAMEDEFAULT_CACHE_SERVER_PORT, DEFAULT_LOCATOR_PORT, DURABLE_CLIENT_ID_PROPERTY_NAME, DURABLE_CLIENT_TIMEOUT_PROPERTY_NAME, GEMFIRE_PREFIX, NAME_PROPERTY_NAME| Constructor and Description | 
|---|
| RegionUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | assertClientRegionShortcutAndPersistentAttributeAreCompatible(org.apache.geode.cache.client.ClientRegionShortcut resolvedShortcut,
                                                             Boolean persistent)Assert that the configuration settings for  ClientRegionShortcutand the persistent attribute
 in <gfe:*-region> elements are compatible. | 
| static void | assertDataPolicyAndPersistentAttributeAreCompatible(org.apache.geode.cache.DataPolicy resolvedDataPolicy,
                                                   Boolean persistent)Assert that the configuration settings for  DataPolicyand the persistent attribute
 in <gfe:*-region> elements are compatible. | 
| static boolean | close(org.apache.geode.cache.Region<?,?> region)Safely closes the target  Region. | 
| static boolean | isClient(org.apache.geode.cache.Region region)Determines whether the target  Regionis a clientRegion. | 
| static boolean | isCloseable(org.apache.geode.cache.Region<?,?> region)Determines whether the given  Regionis closeable. | 
| static boolean | isLocal(org.apache.geode.cache.Region<?,?> region)Determines whether the given  Regionis a non-distributed, localRegion. | 
| static String | toRegionName(org.apache.geode.cache.Region<?,?> region) | 
| static String | toRegionName(String regionPath) | 
| static String | toRegionPath(org.apache.geode.cache.Region<?,?> region) | 
| static String | toRegionPath(String regionName) | 
close, close, close, closeCache, closeClientCache, getCache, getClientCache, isClient, isDefaultPool, isDefaultPool, isDurable, isNotDefaultPool, isNotDefaultPool, isPeer, resolveGemFireCacheconfigureDurableClient, getDistributedSystem, getDistributedSystem, getLocator, isConnected, isNotConnectedaddDependsOn, defaultIfEmpty, defaultIfEmpty, defaultIfNull, defaultIfNull, dereferenceBean, equalsIgnoreNull, getOrder, getOrderedStreamOfBeansByType, getPropertyValue, isMatchingBean, nullOrEquals, nullSafeEquals, nullSafeName, nullSafeSimpleName, nullSafeType, nullSafeType, safeDoOperation, safeDoOperation, safeGetValue, safeGetValue, safeGetValue, safeGetValue, safeRunOperation, safeRunOperation, setPropertyReference, setPropertyValuepublic static void assertClientRegionShortcutAndPersistentAttributeAreCompatible(org.apache.geode.cache.client.ClientRegionShortcut resolvedShortcut,
                                                                                 Boolean persistent)
ClientRegionShortcut and the persistent attribute
 in <gfe:*-region> elements are compatible.resolvedShortcut - ClientRegionShortcut resolved from the SDG XML namespace.persistent - boolean indicating the value of the persistent configuration attribute.ClientRegionShortcutWrapper, 
ClientRegionShortcutpublic static void assertDataPolicyAndPersistentAttributeAreCompatible(org.apache.geode.cache.DataPolicy resolvedDataPolicy,
                                                                       Boolean persistent)
DataPolicy and the persistent attribute
 in <gfe:*-region> elements are compatible.resolvedDataPolicy - DataPolicy resolved from the SDG XML namespace.persistent - boolean indicating the value of the persistent configuration attribute.DataPolicypublic static boolean close(org.apache.geode.cache.Region<?,?> region)
Region.region - Region to closeRegion was successfully closed or not.Region.close()public static boolean isClient(org.apache.geode.cache.Region region)
Region is a client Region.region - Region to evaluate.Region is a client Region.Regionpublic static boolean isCloseable(org.apache.geode.cache.Region<?,?> region)
Region is closeable.region - Region to evaluate.Region is closeable or not.Regionpublic static boolean isLocal(@Nullable org.apache.geode.cache.Region<?,?> region)
Region is a non-distributed, local Region.region - Region to evaluate.Region is a non-distributed,
 local Region.Region@Nullable public static String toRegionName(@Nullable org.apache.geode.cache.Region<?,?> region)
@Nullable public static String toRegionPath(@Nullable org.apache.geode.cache.Region<?,?> region)
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.