|
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
|
+--com.solarmetric.rd.kodo.runtime.datacache.plugins.SocketDistributedCache
A distributed cache implementation that builds up a packet of data containing the change notification. This packet contains information uniquely identifying the transmitting cache, including the machine's IPV4 address and a JVM-unique sequence number. It is up to concrete subclasses of this class to transport the packet to other machines.
| Nested Class Summary | |
protected static class |
SocketDistributedCache.HostAddress
Utility class to store an InetAddress and an int. |
protected static class |
SocketDistributedCache.SocketCacheListener
Responsible for listening for packets and processing the received packets. |
| Field Summary |
| Fields inherited from class com.solarmetric.rd.kodo.runtime.datacache.plugins.LocalCache |
cache |
| Constructor Summary | |
protected |
SocketDistributedCache()
|
| Method Summary | |
protected 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. |
void |
endConfiguration()
Subclasses that need to perform actions in Configurable#endConfiguration must invoke this method. |
protected long |
getID()
|
protected byte[] |
getLocalhost()
|
protected int |
getPort()
|
protected abstract SocketDistributedCache.SocketCacheListener |
newSocketCacheListener()
Creates a new SocketCacheListener configured to listen on the appropriate port/protocol for a given SocketDistributedCache implementation. |
protected abstract void |
sendUpdatePacket(byte[] bytes)
Sends a change notification packet to other machines in this cache cluster. |
void |
setPort(int port)
Sets the port that this cache should listen on. |
void |
startConfiguration()
Invoked before configuration is begun on this object |
| Methods inherited from class com.solarmetric.rd.kodo.runtime.datacache.plugins.DistributedCache |
batchUpdate, log, log, receivedBatchUpdate |
| Methods inherited from class com.solarmetric.rd.kodo.runtime.datacache.plugins.LocalCache |
clear, close, get, getCacheMap, getCacheSize, newCacheMap, pin, put, remove, removeAll, setCacheSize, unpin |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected SocketDistributedCache()
throws java.net.UnknownHostException
| Method Detail |
protected void broadcastUpdate(java.util.Map additions,
java.util.Map updates,
java.util.Collection deletes)
DistributedCache
broadcastUpdate in class DistributedCacheprotected long getID()
protected byte[] getLocalhost()
protected int getPort()
public void setPort(int port)
protected abstract void sendUpdatePacket(byte[] bytes)
throws java.io.IOException
java.io.IOException
protected abstract SocketDistributedCache.SocketCacheListener newSocketCacheListener()
throws java.lang.Exception
java.lang.Exceptionpublic void startConfiguration()
Configurable
startConfiguration in interface ConfigurablestartConfiguration in class LocalCachepublic void endConfiguration()
Configurable#endConfiguration must invoke this method.
endConfiguration in interface ConfigurableendConfiguration in class LocalCache
|
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 | |||||||||