|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--serp.util.AbstractEventManager
|
+--kodo.datacache.AbstractQueryCache
|
+--kodo.datacache.GemFireQueryCache
A PersistenceManagerFactory query cache that delegates to a GemStone
GemFire cache.
To use GemFire in Kodo set kodo.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:
- Application ID classes must be serializable (per the JDO specification)
- 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 | |
protected GemFireCacheWrapper |
_cache
|
protected String |
_regionName
|
protected static String |
DEFAULT_CACHE_NAME
|
| Fields inherited from class kodo.datacache.AbstractQueryCache |
conf, log |
| Constructor Summary | |
GemFireQueryCache()
|
|
| Method Summary | |
void |
classesChanged(Collection classes)
Tells the cache that all the classes in the classes set have been changed. |
protected void |
clearInternal()
Clear the cache. |
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
String |
getGemfireCacheName()
Gets the name of the GemFire cache region to use. |
protected QueryResult |
getInternal(QueryKey key)
Return the list for the given key. |
protected Collection |
keySet()
Return a threadsafe view of the keys in this cache. |
protected boolean |
pinInternal(QueryKey key)
GemFire doesn't have a concept of pinning data. |
protected QueryResult |
putInternal(QueryKey key,
QueryResult value)
Add the given result to the cache, returning the old result under the given key. |
protected boolean |
recacheUpdates()
|
protected QueryResult |
removeInternal(QueryKey key)
Remove the result under the given key from the cache. |
void |
setGemfireCacheName(String name)
Sets the name of the GemFire cache region to use. |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object. |
protected boolean |
unpinInternal(QueryKey key)
GemFire doesn't have a concept of pinning data. |
| Methods inherited from class kodo.datacache.AbstractQueryCache |
addExpirationListener, afterCommit, clear, close, closeWithoutClear, fireEvent, get, getHitRate, getHits, getMisses, getStatistics, getStatisticsString, isClosed, keyRemoved, newListenerCollection, pin, put, remove, removeAllInternal, removeExpirationListener, resetStatistics, setConfiguration, unpin |
| Methods inherited from class serp.util.AbstractEventManager |
fireEvent, getListeners, hasListener, hasListeners, registerListener, removeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final String DEFAULT_CACHE_NAME
protected GemFireCacheWrapper _cache
protected String _regionName
| Constructor Detail |
public GemFireQueryCache()
| Method Detail |
public void classesChanged(Collection classes)
QueryCacheTells the cache that all the classes in the
classes set have been changed. This could mean
that items have been updated, deleted, or added. This limits
the QueryCache to only be able to invalidate
cached queries -- because the cache is not notified of actual
changes, it cannot recompute query results.
After this method is invoked, all cached results that
correspond to queries that use one of the classes in
classes will be dropped.
classesChanged in class AbstractQueryCachekodo.datacache.QueryCacheclasses - a set of Class objects that
correspond to instances that have changedprotected QueryResult getInternal(QueryKey key)
AbstractQueryCachegetInternal in class AbstractQueryCache
protected QueryResult putInternal(QueryKey key,
QueryResult value)
AbstractQueryCacheputInternal in class AbstractQueryCacheprotected QueryResult removeInternal(QueryKey key)
AbstractQueryCacheremoveInternal in class AbstractQueryCacheprotected void clearInternal()
AbstractQueryCacheclearInternal in class AbstractQueryCacheprotected boolean pinInternal(QueryKey key)
Map#contains.pinInternal in class AbstractQueryCacheprotected boolean unpinInternal(QueryKey key)
Map#contains.unpinInternal in class AbstractQueryCacheprotected boolean recacheUpdates()
protected Collection keySet()
AbstractQueryCachekeySet in class AbstractQueryCachepublic void setGemfireCacheName(String name)
public String getGemfireCacheName()
public void startConfiguration()
ConfigurablestartConfiguration in class AbstractQueryCachepublic void endConfiguration()
ConfigurableendConfiguration in class AbstractQueryCache
|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||