|
Kodo 4.1.0 generated on October 9 2006 | ||||||||
| 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 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 org.apache.openjpa.datacache.DataCachePCData |
getInternal(Object key)
|
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 org.apache.openjpa.datacache.DataCachePCData |
putInternal(Object key,
org.apache.openjpa.datacache.DataCachePCData value)
|
protected boolean |
recacheUpdates()
|
protected void |
removeAllInternal(Class cls,
boolean subclasses)
Evict objects in cache by class. |
protected org.apache.openjpa.datacache.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 |
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, 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 org.apache.openjpa.lib.conf.ConfigurablestartConfiguration in class org.apache.openjpa.datacache.AbstractDataCachepublic void endConfiguration()
endConfiguration in interface org.apache.openjpa.lib.conf.ConfigurableendConfiguration in class org.apache.openjpa.datacache.AbstractDataCacheprotected GemFireCacheWrapper newCacheWrapper()
public void writeLock()
public void writeUnlock()
protected org.apache.openjpa.datacache.DataCachePCData getInternal(Object key)
getInternal in class org.apache.openjpa.datacache.AbstractDataCache
protected org.apache.openjpa.datacache.DataCachePCData putInternal(Object key,
org.apache.openjpa.datacache.DataCachePCData value)
putInternal in class org.apache.openjpa.datacache.AbstractDataCache
protected void removeAllInternal(Class cls,
boolean subclasses)
removeAllInternal in class org.apache.openjpa.datacache.AbstractDataCacheprotected org.apache.openjpa.datacache.DataCachePCData removeInternal(Object key)
removeInternal in class org.apache.openjpa.datacache.AbstractDataCacheprotected void clearInternal()
clearInternal in class org.apache.openjpa.datacache.AbstractDataCacheprotected boolean pinInternal(Object key)
Map#contains.
pinInternal in class org.apache.openjpa.datacache.AbstractDataCacheprotected boolean unpinInternal(Object key)
Map#contains.
unpinInternal in class org.apache.openjpa.datacache.AbstractDataCacheprotected boolean recacheUpdates()
recacheUpdates in class org.apache.openjpa.datacache.AbstractDataCache
|
Kodo 4.1.0 generated on October 9 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||