|
Kodo 4.2.0. (DEPRECATED) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager
org.apache.openjpa.datacache.AbstractDataCache
kodo.datacache.GemFireDataCache
public class GemFireDataCache
A data cache that delegates to a GemStone GemFire cache. Batch updates are performed atomically.
To use GemFire in Kodo setkodo.DataCache to
gemfire
The gemfire property enable-shared-memory=true must be set.
By default, a GemFire region of root/kodo-data-cache
is used. This can be changed be setting the optional
property CacheName
Some notes regarding using Kodo with GemFire:
- Externalized fields must externalize to a serializable type
- The Kodo option of DynamicDataStructs and custom field proxies
aren't currently with GemFire
| Field Summary | |
|---|---|
static String |
DEFAULT_CACHE_NAME
|
| Fields inherited from class org.apache.openjpa.datacache.AbstractDataCache |
|---|
conf, log |
| Fields inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager |
|---|
_listeners |
| Fields inherited from interface org.apache.openjpa.datacache.DataCache |
|---|
NAME_DEFAULT |
| Constructor Summary | |
|---|---|
GemFireDataCache()
|
|
| Method Summary | |
|---|---|
protected void |
clearInternal()
|
void |
endConfiguration()
|
GemFireCacheWrapper |
getCacheWrapper()
The internal cache. |
String |
getGemFireCacheName()
Gets the name of the GemFire region to use. |
protected DataCachePCData |
getInternal(Object key)
|
boolean |
isTransactional()
|
protected GemFireCacheWrapper |
newCacheWrapper()
Create a new GemFire cache wrapper for internal use. |
protected boolean |
pinInternal(Object key)
GemFire doesn't have a concept of pinning data. |
protected DataCachePCData |
putInternal(Object key,
DataCachePCData value)
|
protected boolean |
recacheUpdates()
|
protected void |
removeAllInternal(Class cls,
boolean subclasses)
Evict objects in cache by class. |
protected DataCachePCData |
removeInternal(Object key)
|
void |
setGemfireCacheName(String name)
Deprecated. Retained for auto-conf compatibility with old conf files. |
void |
setGemFireCacheName(String name)
Sets the name of the GemFire region to use. |
void |
setTransactional(boolean transactional)
|
void |
startConfiguration()
|
protected boolean |
unpinInternal(Object key)
GemFire doesn't have a concept of pinning data. |
void |
writeLock()
|
void |
writeUnlock()
|
| Methods inherited from class org.apache.openjpa.datacache.AbstractDataCache |
|---|
addExpirationListener, afterCommit, clear, close, close, commit, contains, containsAll, fireEvent, get, getAll, getEvictionSchedule, getName, initialize, isClosed, keyRemoved, pin, pinAll, pinAll, put, putAllInternal, remove, removeAll, removeAll, removeAllInternal, removeAllTypeNamesInternal, removeExpirationListener, setConfiguration, setEvictionSchedule, setName, toString, unpin, unpinAll, unpinAll, update |
| Methods inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager |
|---|
addListener, fireEvent, getListeners, hasListener, hasListeners, isFailFast, newListenerCollection, removeListener, setFailFast |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_CACHE_NAME
| Constructor Detail |
|---|
public GemFireDataCache()
| Method Detail |
|---|
public void setGemFireCacheName(String name)
public void setGemfireCacheName(String name)
public String getGemFireCacheName()
public GemFireCacheWrapper getCacheWrapper()
public void startConfiguration()
startConfiguration in interface ConfigurablestartConfiguration in class AbstractDataCachepublic void endConfiguration()
endConfiguration in interface ConfigurableendConfiguration in class AbstractDataCacheprotected GemFireCacheWrapper newCacheWrapper()
public void writeLock()
public void writeUnlock()
protected DataCachePCData getInternal(Object key)
getInternal in class AbstractDataCache
protected DataCachePCData putInternal(Object key,
DataCachePCData value)
putInternal in class AbstractDataCache
protected void removeAllInternal(Class cls,
boolean subclasses)
removeAllInternal in class AbstractDataCacheprotected DataCachePCData removeInternal(Object key)
removeInternal in class AbstractDataCacheprotected void clearInternal()
clearInternal in class AbstractDataCacheprotected boolean pinInternal(Object key)
Map#contains.
pinInternal in class AbstractDataCacheprotected boolean unpinInternal(Object key)
Map#contains.
unpinInternal in class AbstractDataCacheprotected boolean recacheUpdates()
recacheUpdates in class AbstractDataCachepublic void setTransactional(boolean transactional)
public boolean isTransactional()
|
Kodo 4.2.0. (DEPRECATED) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This documentation is deprecated and will be removed in the next release of WebLogic Server.