Spring Data for VMware GemFire
Class RegionUtils
java.lang.Object
org.springframework.data.gemfire.util.SpringExtensions
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
- See Also:
-
RegionRegionAttributes
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.util.SpringExtensions
SpringExtensions.OrderedBeanWrapper<T>, SpringExtensions.ValueReturningThrowableOperation<T>, SpringExtensions.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(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut, Boolean persistent) Assert that the configuration settings forClientRegionShortcutand the persistent attribute in <gfe:*-region> elements are compatible.static voidassertDataPolicyAndPersistentAttributeAreCompatible(org.apache.geode.cache.DataPolicy dataPolicy, Boolean persistent) Assert that the configuration settings forDataPolicyand the persistent attribute in <gfe:*-region> elements are compatible.static booleanclose(org.apache.geode.cache.Region<?, ?> region) Safely closes the targetRegion.static booleanisClient(org.apache.geode.cache.Region<?, ?> region) Determines whether the targetRegionis a clientRegion.static booleanisCloseable(org.apache.geode.cache.Region<?, ?> region) Determines whether the givenRegionis closeable.static booleanisLocal(org.apache.geode.cache.Region<?, ?> region) Determines whether the givenRegionis a non-distributed, localRegion.static booleanisServer(org.apache.geode.cache.Region<?, ?> region) Determines whether the targetRegionis a server-sideRegion.static StringtoRegionName(String regionPath) static StringtoRegionName(org.apache.geode.cache.Region<?, ?> region) static StringtoRegionPath(String regionName) static StringtoRegionPath(org.apache.geode.cache.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.SpringExtensions
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(org.apache.geode.cache.client.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:
-
ClientRegionShortcutWrapperClientRegionShortcut
-
assertDataPolicyAndPersistentAttributeAreCompatible
public static void assertDataPolicyAndPersistentAttributeAreCompatible(org.apache.geode.cache.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:
-
DataPolicy
-
close
public static boolean close(org.apache.geode.cache.Region<?, ?> region) Safely closes the targetRegion.- Parameters:
region-Regionto close- Returns:
- a boolean indicating whether the
Regionwas successfully closed or not. - See Also:
-
Region.close()
-
isClient
public static boolean isClient(@Nullable org.apache.geode.cache.Region<?, ?> region) Determines whether the targetRegionis a clientRegion.- Parameters:
region-Regionto evaluate.- Returns:
- a boolean indicating whether the target
Regionis a clientRegion. - See Also:
-
Region
-
isCloseable
public static boolean isCloseable(org.apache.geode.cache.Region<?, ?> region) Determines whether the givenRegionis closeable.- Parameters:
region-Regionto evaluate.- Returns:
- a boolean value indicating whether the
Regionis closeable or not. - See Also:
-
Region
-
isLocal
public static boolean isLocal(@Nullable org.apache.geode.cache.Region<?, ?> region) Determines whether the givenRegionis a non-distributed, localRegion.- Parameters:
region-Regionto evaluate.- Returns:
- a boolean value indicating whether the given
Regionis a non-distributed, localRegion. - See Also:
-
Region
-
toRegionName
-
toRegionName
-
toRegionPath
-
toRegionPath
-
isServer
public static boolean isServer(@Nullable org.apache.geode.cache.Region<?, ?> region) Determines whether the targetRegionis a server-sideRegion.- Parameters:
region-Regionto evaluate.- Returns:
- a boolean indicating whether the target
Regionis a server-sideRegion. - See Also:
-
Region
-