|
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.AbstractQueryCache
kodo.datacache.GemFireQueryCache
public class GemFireQueryCache
A query cache that delegates to a GemStone GemFire cache.
To use GemFire in Kodo setkodo.QueryCache to
gemfire
By default, a GemFire region of root/kodo-query-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 supported with GemFire
| Field Summary | |
|---|---|
static String |
DEFAULT_CACHE_NAME
|
| Fields inherited from class org.apache.openjpa.datacache.AbstractQueryCache |
|---|
conf, log |
| Constructor Summary | |
|---|---|
GemFireQueryCache()
|
|
| Method Summary | |
|---|---|
protected void |
clearInternal()
|
void |
endConfiguration()
|
String |
getGemFireCacheName()
Gets the name of the GemFire cache region to use. |
protected org.apache.openjpa.datacache.QueryResult |
getInternal(org.apache.openjpa.datacache.QueryKey key)
|
void |
initialize(org.apache.openjpa.datacache.DataCacheManager mgr)
|
protected Collection |
keySet()
|
protected GemFireCacheWrapper |
newCacheWrapper()
Create a new GemFire cache wrapper for internal use. |
protected boolean |
pinInternal(org.apache.openjpa.datacache.QueryKey key)
GemFire doesn't have a concept of pinning data. |
protected org.apache.openjpa.datacache.QueryResult |
putInternal(org.apache.openjpa.datacache.QueryKey key,
org.apache.openjpa.datacache.QueryResult value)
|
protected boolean |
recacheUpdates()
|
protected org.apache.openjpa.datacache.QueryResult |
removeInternal(org.apache.openjpa.datacache.QueryKey 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 cache region to use. |
void |
startConfiguration()
|
protected boolean |
unpinInternal(org.apache.openjpa.datacache.QueryKey key)
GemFire doesn't have a concept of pinning data. |
void |
writeLock()
|
void |
writeUnlock()
|
| Methods inherited from class org.apache.openjpa.datacache.AbstractQueryCache |
|---|
addTypesChangedListener, afterCommit, clear, close, close, fireEvent, get, isClosed, newListenerCollection, onTypesChanged, pin, put, remove, removeAllInternal, removeTypesChangedListener, setConfiguration, unpin |
| Methods inherited from class org.apache.openjpa.lib.util.concurrent.AbstractConcurrentEventManager |
|---|
addListener, fireEvent, getListeners, hasListener, hasListeners, isFailFast, removeListener, setFailFast |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_CACHE_NAME
| Constructor Detail |
|---|
public GemFireQueryCache()
| Method Detail |
|---|
public void setGemFireCacheName(String name)
public void setGemfireCacheName(String name)
public String getGemFireCacheName()
public void startConfiguration()
startConfiguration in interface org.apache.openjpa.lib.conf.ConfigurablestartConfiguration in class org.apache.openjpa.datacache.AbstractQueryCachepublic void endConfiguration()
endConfiguration in interface org.apache.openjpa.lib.conf.ConfigurableendConfiguration in class org.apache.openjpa.datacache.AbstractQueryCacheprotected GemFireCacheWrapper newCacheWrapper()
public void writeLock()
public void writeUnlock()
protected org.apache.openjpa.datacache.QueryResult getInternal(org.apache.openjpa.datacache.QueryKey key)
getInternal in class org.apache.openjpa.datacache.AbstractQueryCache
protected org.apache.openjpa.datacache.QueryResult putInternal(org.apache.openjpa.datacache.QueryKey key,
org.apache.openjpa.datacache.QueryResult value)
putInternal in class org.apache.openjpa.datacache.AbstractQueryCacheprotected org.apache.openjpa.datacache.QueryResult removeInternal(org.apache.openjpa.datacache.QueryKey key)
removeInternal in class org.apache.openjpa.datacache.AbstractQueryCacheprotected void clearInternal()
clearInternal in class org.apache.openjpa.datacache.AbstractQueryCacheprotected boolean pinInternal(org.apache.openjpa.datacache.QueryKey key)
Map#contains.
pinInternal in class org.apache.openjpa.datacache.AbstractQueryCacheprotected boolean unpinInternal(org.apache.openjpa.datacache.QueryKey key)
Map#contains.
unpinInternal in class org.apache.openjpa.datacache.AbstractQueryCacheprotected boolean recacheUpdates()
protected Collection keySet()
keySet in class org.apache.openjpa.datacache.AbstractQueryCachepublic void initialize(org.apache.openjpa.datacache.DataCacheManager mgr)
initialize in interface org.apache.openjpa.datacache.QueryCacheinitialize in class org.apache.openjpa.datacache.AbstractQueryCache
|
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 | ||||||||