public abstract class RegionUtils extends CacheUtils
RegionUtils
class is an abstract utility class for working with Regions
.Region
,
RegionAttributes
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 resolvedShortcut,
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 resolvedDataPolicy,
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 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, getPropertyValue, nullOrEquals, nullSafeEquals, nullSafeName, nullSafeSimpleName, safeDoOperation, safeGetValue, safeGetValue, safeGetValue, safeGetValue, safeRunOperation, safeRunOperation, setPropertyReference, setPropertyValue
public 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
,
ClientRegionShortcut
public 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.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
@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–2019 Pivotal Software, Inc.. All rights reserved.