public abstract class GemFireUtils extends Object
| Constructor and Description |
|---|
GemFireUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
close(Closeable obj)
Null-safe method to close the given
Closeable object. |
static boolean |
isClient(com.gemstone.gemfire.cache.GemFireCache gemFireCache)
Determines whether the GemFire cache is a client.
|
static boolean |
isLocal(com.gemstone.gemfire.cache.client.ClientRegionShortcut shortcut)
Determines whether the given
ClientRegionShortcut is local only. |
static boolean |
isPeer(com.gemstone.gemfire.cache.GemFireCache gemFireCache)
Determines whether the GemFire cache is a peer.
|
static boolean |
isProxy(com.gemstone.gemfire.cache.client.ClientRegionShortcut shortcut)
Determines whether the client
ClientRegionShortcut is a proxy-based
shortcut. |
static boolean |
isProxy(com.gemstone.gemfire.cache.RegionShortcut shortcut)
Determines whether the peer
RegionShortcut is a proxy-based shortcut. |
static String |
toRegionPath(String regionName)
Converts a
Region name to a Region path. |
public static boolean close(Closeable obj)
Closeable object.public static boolean isClient(com.gemstone.gemfire.cache.GemFireCache gemFireCache)
gemFireCache - a reference to the GemFire cache.ClientCache,
GemFireCachepublic static boolean isPeer(com.gemstone.gemfire.cache.GemFireCache gemFireCache)
gemFireCache - a reference to the GemFire cache.Cache,
GemFireCachepublic static boolean isLocal(com.gemstone.gemfire.cache.client.ClientRegionShortcut shortcut)
ClientRegionShortcut is local only.shortcut - the ClientRegionShortcut to evaluate.ClientRegionShortcut is local or
not.ClientRegionShortcutpublic static boolean isProxy(com.gemstone.gemfire.cache.client.ClientRegionShortcut shortcut)
ClientRegionShortcut is a proxy-based
shortcut. NOTE: "proxy"-based Regions keep no local state.shortcut - the client ClientRegionShortcut to evaluate.ClientRegionShortcut
refers to a proxy-based shortcut.ClientRegionShortcutpublic static boolean isProxy(com.gemstone.gemfire.cache.RegionShortcut shortcut)
RegionShortcut is a proxy-based shortcut. NOTE:
"proxy"-based Regions keep no local state.shortcut - the peer RegionShortcut to evaluate.RegionShortcut refers
to a proxy-based shortcut.RegionShortcut