|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.solarmetric.rd.kodo.runtime.datacache.plugins.LocalCache
|
+--com.solarmetric.rd.kodo.runtime.datacache.plugins.DistributedCache
A base class for distributed caches.
| Field Summary |
| Fields inherited from class com.solarmetric.rd.kodo.runtime.datacache.plugins.LocalCache |
cache |
| Constructor Summary | |
DistributedCache()
|
|
| Method Summary | |
void |
batchUpdate(java.util.Map additions,
java.util.Map updates,
java.util.Collection deletes,
java.lang.Object origin)
Overridden batchUpdate() method that invokes
broadcastUpdate() after updating the cache. |
protected abstract void |
broadcastUpdate(java.util.Map additions,
java.util.Map updates,
java.util.Collection deletes)
Notifys other PersistenceManagerFactory caches in this JVM and on other machines of changes to the cache. |
protected void |
log(java.lang.String s)
Log the message to the logging framework. |
protected void |
log(java.lang.String s,
java.lang.Throwable t)
Log the message to the logging framework. |
protected void |
receivedBatchUpdate(java.util.Collection additions,
java.util.Collection updates,
java.util.Collection deletes)
Invoked when a notification of update has been received from a different cache, and that this cache should therefore be updated as appropriate. |
| Methods inherited from class com.solarmetric.rd.kodo.runtime.datacache.plugins.LocalCache |
clear, close, endConfiguration, get, getCacheMap, getCacheSize, newCacheMap, pin, put, remove, removeAll, setCacheSize, startConfiguration, unpin |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DistributedCache()
| Method Detail |
public void batchUpdate(java.util.Map additions,
java.util.Map updates,
java.util.Collection deletes,
java.lang.Object origin)
batchUpdate() method that invokes
broadcastUpdate() after updating the cache.
batchUpdate in interface DataCachebatchUpdate in class LocalCacheorigin - the object that initiated this cache
update. This can be useful for
implementations in which many sources
share a single cache, which in turn
communicates back to the sources on cache
updates.
protected void receivedBatchUpdate(java.util.Collection additions,
java.util.Collection updates,
java.util.Collection deletes)
additions, updates, and
deletes.
protected abstract void broadcastUpdate(java.util.Map additions,
java.util.Map updates,
java.util.Collection deletes)
protected void log(java.lang.String s)
protected void log(java.lang.String s,
java.lang.Throwable t)
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||