public abstract class CacheUtils extends DistributedSystemUtils
CacheUtils
is an abstract utility class encapsulating common operations for working with
Cache
and ClientCache
instances.Cache
,
CacheFactory
,
GemFireCache
,
Region
,
ClientCache
,
ClientCacheFactory
,
DistributedSystem
,
GemFireCacheImpl
,
DistributedSystemUtils
Modifier and Type | Field and Description |
---|---|
static String |
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 |
---|
CacheUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
closeCache() |
static boolean |
closeClientCache() |
static org.apache.geode.cache.Cache |
getCache() |
static org.apache.geode.cache.client.ClientCache |
getClientCache() |
static boolean |
isClient(org.apache.geode.cache.GemFireCache cache) |
static boolean |
isDurable(org.apache.geode.cache.client.ClientCache clientCache) |
static boolean |
isPeer(org.apache.geode.cache.GemFireCache cache) |
static org.apache.geode.cache.GemFireCache |
resolveGemFireCache() |
static String |
toRegionPath(String regionName) |
configureDurableClient, getDistributedSystem, getDistributedSystem, getLocator, isConnected, isNotConnected
addDependsOn, defaultIfEmpty, defaultIfNull, defaultIfNull, dereferenceBean, equalsIgnoreNull, nullOrEquals, nullSafeEquals, safeGetValue, safeGetValue
public static final String DEFAULT_POOL_NAME
public static boolean isClient(org.apache.geode.cache.GemFireCache cache)
public static boolean isDurable(org.apache.geode.cache.client.ClientCache clientCache)
public static boolean isPeer(org.apache.geode.cache.GemFireCache cache)
public static boolean closeCache()
public static boolean closeClientCache()
public static org.apache.geode.cache.Cache getCache()
public static org.apache.geode.cache.client.ClientCache getClientCache()
public static org.apache.geode.cache.GemFireCache resolveGemFireCache()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.