Class RegionUtils
java.lang.Object
org.springframework.data.gemfire.util.SpringUtils
org.springframework.data.gemfire.util.DistributedSystemUtils
org.springframework.data.gemfire.util.CacheUtils
org.springframework.data.gemfire.util.RegionUtils
- Direct Known Subclasses:
GemfireUtils
The
RegionUtils class is an abstract utility class for working with Regions.- Since:
- 2.0.0
- Author:
- John Blum
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.util.SpringUtils
SpringUtils.OrderedBeanWrapper<T>, SpringUtils.ValueReturningThrowableOperation<T>, SpringUtils.VoidReturningThrowableOperation -
Field Summary
Fields inherited from class org.springframework.data.gemfire.util.CacheUtils
DEFAULT_POOL_NAMEFields inherited from class org.springframework.data.gemfire.util.DistributedSystemUtils
DEFAULT_CACHE_SERVER_PORT, DEFAULT_LOCATOR_PORT, DURABLE_CLIENT_ID_PROPERTY_NAME, DURABLE_CLIENT_TIMEOUT_PROPERTY_NAME, GEMFIRE_PREFIX, NAME_PROPERTY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertClientRegionShortcutAndPersistentAttributeAreCompatible(ClientRegionShortcut clientRegionShortcut, Boolean persistent) Assert that the configuration settings forClientRegionShortcutand the persistent attribute in <gfe:*-region> elements are compatible.static voidassertDataPolicyAndPersistentAttributeAreCompatible(DataPolicy dataPolicy, Boolean persistent) Assert that the configuration settings forDataPolicyand the persistent attribute in <gfe:*-region> elements are compatible.static booleanSafely closes the targetRegion.static booleanstatic booleanisCloseable(Region<?, ?> region) Determines whether the givenRegionis closeable.static booleanstatic booleanstatic StringtoRegionName(String regionPath) static StringtoRegionName(Region<?, ?> region) static StringtoRegionPath(String regionName) static StringtoRegionPath(Region<?, ?> region) Methods inherited from class org.springframework.data.gemfire.util.CacheUtils
close, close, close, closeCache, closeClientCache, getCache, getClientCache, isClient, isDefaultPool, isDefaultPool, isDurable, isNotDefaultPool, isNotDefaultPool, isPeer, resolveGemFireCacheMethods inherited from class org.springframework.data.gemfire.util.DistributedSystemUtils
configureDurableClient, getDistributedSystem, getDistributedSystem, getLocator, isConnected, isNotConnectedMethods inherited from class org.springframework.data.gemfire.util.SpringUtils
addDependsOn, 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, setPropertyValue
-
Constructor Details
-
RegionUtils
public RegionUtils()
-
-
Method Details
-
assertClientRegionShortcutAndPersistentAttributeAreCompatible
public static void assertClientRegionShortcutAndPersistentAttributeAreCompatible(ClientRegionShortcut clientRegionShortcut, Boolean persistent) Assert that the configuration settings forClientRegionShortcutand the persistent attribute in <gfe:*-region> elements are compatible.- Parameters:
clientRegionShortcut-ClientRegionShortcutresolved from the SDG XML namespace.persistent- boolean indicating the value of the persistent configuration attribute.- See Also:
-
assertDataPolicyAndPersistentAttributeAreCompatible
public static void assertDataPolicyAndPersistentAttributeAreCompatible(DataPolicy dataPolicy, Boolean persistent) Assert that the configuration settings forDataPolicyand the persistent attribute in <gfe:*-region> elements are compatible.- Parameters:
dataPolicy-DataPolicyresolved from the SDG XML namespace.persistent- boolean indicating the value of the persistent configuration attribute.- See Also:
-
close
Safely closes the targetRegion. -
isClient
-
isCloseable
Determines whether the givenRegionis closeable. -
isLocal
-
toRegionName
-
toRegionName
-
toRegionPath
-
toRegionPath
-
isServer
-