com.solarmetric.kodo.runtime.datacache.plugins
Class UDPCache
java.lang.Object
|
+--com.solarmetric.kodo.runtime.datacache.plugins.LocalCache
|
+--com.solarmetric.kodo.runtime.datacache.plugins.DistributedCache
|
+--com.solarmetric.kodo.runtime.datacache.plugins.SocketDistributedCache
|
+--com.solarmetric.kodo.runtime.datacache.plugins.UDPCache
- All Implemented Interfaces:
- Configurable, DataCache
- public class UDPCache
- extends SocketDistributedCache
A distributed cache implementation that uses UDP for broadcasting
change notifications.
| Fields inherited from class com.solarmetric.kodo.runtime.datacache.plugins.LocalCache |
cache |
| Methods inherited from class com.solarmetric.kodo.runtime.datacache.plugins.LocalCache |
clear, close, containsKey, 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 |
UDPCache
public UDPCache()
throws UnknownHostException
setPacketLength
public void setPacketLength(int val)
setUseMulticast
public void setUseMulticast(boolean val)
setMulticastGroup
public void setMulticastGroup(String name)
throws UnknownHostException
setAddresses
public void setAddresses(String names)
throws UnknownHostException
endConfiguration
public void endConfiguration()
- Description copied from class:
SocketDistributedCache
- Subclasses that need to perform actions in
Configurable#endConfiguration must invoke this method.
- Overrides:
endConfiguration in class SocketDistributedCache
sendUpdatePacket
protected void sendUpdatePacket(byte[] bytes)
throws IOException
- Description copied from class:
SocketDistributedCache
- Sends a change notification packet to other machines in this
cache cluster.
- Overrides:
sendUpdatePacket in class SocketDistributedCache
newSocketCacheListener
protected SocketDistributedCache.SocketCacheListener newSocketCacheListener()
throws IOException,
SocketException
- Description copied from class:
SocketDistributedCache
- Creates a new SocketCacheListener configured to listen on the
appropriate port/protocol for a given SocketDistributedCache
implementation.
- Overrides:
newSocketCacheListener in class SocketDistributedCache
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.