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 clientRegionShortcut,
Boolean persistent)
Assert that the configuration settings for
ClientRegionShortcut and the persistent attribute
in <gfe:*-region> elements are compatible. |
static void |
assertDataPolicyAndPersistentAttributeAreCompatible(org.apache.geode.cache.DataPolicy dataPolicy,
Boolean persistent)
Assert that the configuration settings for
DataPolicy and 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
Region is a client Region. |
static boolean |
isCloseable(org.apache.geode.cache.Region<?,?> region)
Determines whether the given
Region is closeable. |
static boolean |
isLocal(org.apache.geode.cache.Region<?,?> region)
Determines whether the given
Region is a non-distributed, local Region. |
static boolean |
isServer(org.apache.geode.cache.Region<?,?> region)
Determines whether the target
Region is a server-side Region. |
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, areNotNull, defaultIfEmpty, defaultIfEmpty, defaultIfNull, defaultIfNull, dereferenceBean, equalsIgnoreNull, getBeansOfTypeOrdered, getBeansOfTypeOrdered, getOrder, getOrderedStreamOfBeansByType, getPropertyValue, isMatchingBean, nullOrEquals, nullSafeEquals, nullSafeName, nullSafeSimpleName, nullSafeType, nullSafeType, requireObject, requireObject, safeDoOperation, safeDoOperation, safeGetValue, safeGetValue, safeGetValue, safeGetValue, safeRunOperation, safeRunOperation, setPropertyReference, setPropertyValuepublic static void assertClientRegionShortcutAndPersistentAttributeAreCompatible(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut,
Boolean persistent)
ClientRegionShortcut and the persistent attribute
in <gfe:*-region> elements are compatible.clientRegionShortcut - 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 dataPolicy,
Boolean persistent)
DataPolicy and the persistent attribute
in <gfe:*-region> elements are compatible.dataPolicy - 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(@Nullable 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)
public static boolean isServer(@Nullable org.apache.geode.cache.Region<?,?> region)
Region is a server-side Region.region - Region to evaluate.Region is a server-side Region.RegionCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.