public abstract class RegionUtils extends CacheUtils
RegionUtils
class is an abstract utility class for working with Regions
.Region
,
RegionAttributes
SpringUtils.OrderedBeanWrapper<T>, SpringUtils.ValueReturningThrowableOperation<T>, SpringUtils.VoidReturningExceptionThrowingOperation, SpringUtils.VoidReturningThrowableOperation
DEFAULT_POOL_NAME
DEFAULT_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 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, resolveGemFireCache
configureDurableClient, getDistributedSystem, getDistributedSystem, getLocator, isConnected, isNotConnected
addDependsOn, defaultIfEmpty, defaultIfEmpty, defaultIfNull, defaultIfNull, dereferenceBean, equalsIgnoreNull, getBeansOfTypeOrdered, getBeansOfTypeOrdered, getOrder, getOrderedStreamOfBeansByType, getPropertyValue, isMatchingBean, nullOrEquals, nullSafeEquals, nullSafeName, nullSafeSimpleName, nullSafeType, nullSafeType, safeDoOperation, safeDoOperation, safeGetValue, safeGetValue, safeGetValue, safeGetValue, safeRunOperation, safeRunOperation, setPropertyReference, setPropertyValue
public 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
,
ClientRegionShortcut
public 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.DataPolicy
public 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
.Region
public static boolean isCloseable(org.apache.geode.cache.Region<?,?> region)
Region
is closeable.region
- Region
to evaluate.Region
is closeable or not.Region
public 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–2021 Pivotal Software, Inc.. All rights reserved.