A B C D E F G H I J K L M N O P R S T U V 

A

addCache(MultiCache) - Method in class net.sf.swarmcache.MultiCacheManager
 
AutoCache - Class in net.sf.swarmcache
This cache implementation uses soft references so that cached objects are automatically garbage collected when needed.
AutoCache() - Constructor for class net.sf.swarmcache.AutoCache
Default contsructor required.
AutoCache(String) - Constructor for class net.sf.swarmcache.AutoCache
 

B

BUS_NAME - Static variable in class net.sf.swarmcache.JavaGroupsCommunicator
 

C

CACHE_TIMEOUT_PROPERTY - Static variable in class net.sf.swarmcache.TimerCache
The property containing the cache timeout (in milliseconds).
CACHE_TYPE_PROPERTY - Static variable in class net.sf.swarmcache.MultiCache
The property holding the type of the underlying cache to use.
CacheConfiguration - Class in net.sf.swarmcache
A class that contains the configuration information to be fed in to a new CacheFactory.
CacheConfiguration() - Constructor for class net.sf.swarmcache.CacheConfiguration
 
CacheConfigurationManager - Class in net.sf.swarmcache
CacheConfigurationManager holds a static CacheConfiguration for use throughout a system.
CacheFactory - Class in net.sf.swarmcache
A convenient generator of multicast caches using an underlying LRU or Automatic algorithm.
CacheFactory() - Constructor for class net.sf.swarmcache.CacheFactory
 
CacheFactory(CacheConfiguration) - Constructor for class net.sf.swarmcache.CacheFactory
 
CacheNotification - Class in net.sf.swarmcache
The actual object that gets sent to the cluster to indicate that an object needs to be cleared from the cache.
CacheNotification() - Constructor for class net.sf.swarmcache.CacheNotification
 
CacheNotification(String, Serializable) - Constructor for class net.sf.swarmcache.CacheNotification
 
CacheTest - Class in net.sf.swarmcache
Test cache app.
CacheTest() - Constructor for class net.sf.swarmcache.CacheTest
 
CacheTest.FinalizerString - Class in net.sf.swarmcache
A String that outputs to STDOUT when it has been finalized.
CacheTest.FinalizerString(String) - Constructor for class net.sf.swarmcache.CacheTest.FinalizerString
 
CacheTest.LoadTester - Class in net.sf.swarmcache
 
CacheTest.LoadTester(ObjectCache, int, int, int, int) - Constructor for class net.sf.swarmcache.CacheTest.LoadTester
 
CHANNEL_PROPERTIES - Static variable in class net.sf.swarmcache.JavaGroupsCommunicator
 
clear(Serializable) - Method in class net.sf.swarmcache.AutoCache
 
clear(Serializable) - Method in class net.sf.swarmcache.HybridCache
 
clear(Serializable) - Method in class net.sf.swarmcache.LRUCache
 
clear(Serializable) - Method in class net.sf.swarmcache.MultiCache
In this implementation, the clear is multicast to all caches.
clear(Serializable) - Method in interface net.sf.swarmcache.ObjectCache
Clears an object from the cache by key.
clear(Serializable) - Method in class net.sf.swarmcache.TimerCache
 
clear() - Method in class net.sf.swarmcache.UnboundedLRUMap
 
CLEAR_ALL - Static variable in class net.sf.swarmcache.MultiCacheManager
 
clearAll() - Method in class net.sf.swarmcache.AutoCache
 
clearAll() - Method in class net.sf.swarmcache.HybridCache
 
clearAll() - Method in class net.sf.swarmcache.LRUCache
 
clearAll() - Method in class net.sf.swarmcache.MultiCache
 
clearAll() - Method in interface net.sf.swarmcache.ObjectCache
Clears the entire cache.
clearAll() - Method in class net.sf.swarmcache.TimerCache
 
close() - Method in class net.sf.swarmcache.MultiCacheManager
 
Communicator - Class in net.sf.swarmcache
Abstract class that handles the communications for SwarmCache.
Communicator() - Constructor for class net.sf.swarmcache.Communicator
 
containsCache(String) - Method in class net.sf.swarmcache.MultiCacheManager
 
containsKey(Object) - Method in class net.sf.swarmcache.UnboundedLRUMap
 
containsValue(Object) - Method in class net.sf.swarmcache.UnboundedLRUMap
 
createCache(String) - Method in class net.sf.swarmcache.CacheFactory
Creates a new cache.

D

DEFAULT_CACHE_SIZE - Static variable in class net.sf.swarmcache.LRUCache
The default cache size (1000).
DEFAULT_CACHE_TIMEOUT - Static variable in class net.sf.swarmcache.TimerCache
The default cache timeout (1 minute).
DEFAULT_CHANNEL_PROPERTIES_POST - Static variable in class net.sf.swarmcache.CacheConfiguration
The second half of the default channel properties.
DEFAULT_CHANNEL_PROPERTIES_PRE - Static variable in class net.sf.swarmcache.CacheConfiguration
The first half of the default channel properties.
DEFAULT_LRU_CACHE_SIZE - Static variable in class net.sf.swarmcache.CacheConfiguration
The default LRU cache size.
DEFAULT_MULTICAST_IP - Static variable in class net.sf.swarmcache.CacheConfiguration
The default multicast IP to be used by the cache manager.
doClear(Serializable) - Method in class net.sf.swarmcache.MultiCache
Here the clear is actually done.
doClearAll() - Method in class net.sf.swarmcache.MultiCache
 

E

entrySet() - Method in class net.sf.swarmcache.UnboundedLRUMap
 
equals(Object) - Method in class net.sf.swarmcache.CacheTest.FinalizerString
 
equals(Object) - Method in class net.sf.swarmcache.UnboundedLRUMap
 

F

finalize() - Method in class net.sf.swarmcache.CacheTest.FinalizerString
 
finalize() - Method in class net.sf.swarmcache.JavaGroupsCommunicator
 

G

get(Serializable) - Method in class net.sf.swarmcache.AutoCache
 
get(Serializable) - Method in class net.sf.swarmcache.HybridCache
 
get(Serializable) - Method in class net.sf.swarmcache.LRUCache
 
get(Serializable) - Method in class net.sf.swarmcache.MultiCache
 
get(Serializable) - Method in interface net.sf.swarmcache.ObjectCache
Gets an object from the cache by key, or returns null if that object is not cached.
get(Serializable) - Method in class net.sf.swarmcache.TimerCache
 
get(Object) - Method in class net.sf.swarmcache.UnboundedLRUMap
 
getCache() - Method in class net.sf.swarmcache.JavaGroupsCommunicator
 
getCacheManager() - Method in class net.sf.swarmcache.CacheFactory
Returns the manager that handles inter-cache communication.
getCacheType() - Method in class net.sf.swarmcache.CacheConfiguration
Gets the underlying cache type to use on each server.
getChannelProperties() - Method in class net.sf.swarmcache.CacheConfiguration
Gets the JavaGroups channel properties.
getConfig() - Static method in class net.sf.swarmcache.CacheConfigurationManager
 
getConfig(Properties) - Static method in class net.sf.swarmcache.CacheConfigurationManager
 
getFirstKey() - Method in class net.sf.swarmcache.UnboundedLRUMap
 
getGroupName() - Method in class net.sf.swarmcache.Communicator
 
getKey() - Method in class net.sf.swarmcache.CacheNotification
 
getLRUCacheSize() - Method in class net.sf.swarmcache.CacheConfiguration
Gets the capacity of the LRU cache.
getManager() - Method in class net.sf.swarmcache.Communicator
 
getManager(String) - Static method in class net.sf.swarmcache.MultiCacheManager
 
getMulticastIP() - Method in class net.sf.swarmcache.CacheConfiguration
Gets the multicast IP address for the JavaGroup.
getType() - Method in class net.sf.swarmcache.AutoCache
 
getType() - Method in class net.sf.swarmcache.CacheNotification
 
getType() - Method in class net.sf.swarmcache.HybridCache
 
getType() - Method in class net.sf.swarmcache.LRUCache
 
getType() - Method in class net.sf.swarmcache.MultiCache
 
getType() - Method in interface net.sf.swarmcache.ObjectCache
Gets the common name of the type of objects to cache.
getType() - Method in class net.sf.swarmcache.TimerCache
Gets the cache type name.

H

handleNotification(Serializable) - Method in class net.sf.swarmcache.JavaGroupsCommunicator
 
hashCode() - Method in class net.sf.swarmcache.UnboundedLRUMap
 
HybridCache - Class in net.sf.swarmcache
A hybrid cache solution that uses a (presumably small) LRU cache backed by a larger AutoCache.
HybridCache() - Constructor for class net.sf.swarmcache.HybridCache
 

I

instances - Static variable in class net.sf.swarmcache.MultiCacheManager
 
isEmpty() - Method in class net.sf.swarmcache.UnboundedLRUMap
 

J

JavaGroupsCommunicator - Class in net.sf.swarmcache
Created by IntelliJ IDEA.
JavaGroupsCommunicator(String) - Constructor for class net.sf.swarmcache.JavaGroupsCommunicator
 

K

keySet() - Method in class net.sf.swarmcache.UnboundedLRUMap
 

L

LRU_CACHE_SIZE_PROPERTY - Static variable in class net.sf.swarmcache.LRUCache
The property containing the maximum number of objects to cache.
LRUCache - Class in net.sf.swarmcache
Cache implementation that uses the Least Recently Used algorithm.
LRUCache() - Constructor for class net.sf.swarmcache.LRUCache
 
LRUCache.ListeningLRUMap - Class in net.sf.swarmcache
 
LRUCache.ListeningLRUMap(int) - Constructor for class net.sf.swarmcache.LRUCache.ListeningLRUMap
 
LRUCacheListener - Interface in net.sf.swarmcache
Created by IntelliJ IDEA.

M

main(String[]) - Static method in class net.sf.swarmcache.CacheTest
 
memberJoined(Address) - Method in class net.sf.swarmcache.JavaGroupsCommunicator
 
memberLeft(Address) - Method in class net.sf.swarmcache.JavaGroupsCommunicator
 
MINIMUM_SIZE - Static variable in class net.sf.swarmcache.UnboundedLRUMap
 
MultiCache - Class in net.sf.swarmcache
A wrapper cache type that notifies the multicast cache manager.
MultiCache(ObjectCache, MultiCacheManager) - Constructor for class net.sf.swarmcache.MultiCache
 
MultiCacheManager - Class in net.sf.swarmcache
Manages the communications between other cache managers.
MultiCacheManager(Communicator) - Constructor for class net.sf.swarmcache.MultiCacheManager
 

N

net.sf.swarmcache - package net.sf.swarmcache
 

O

ObjectCache - Interface in net.sf.swarmcache
Generic caching mechanism.
objectRemoved(Serializable, Object) - Method in class net.sf.swarmcache.HybridCache
Called when an object is automatically removed from the LRU cache.
objectRemoved(Serializable, Object) - Method in interface net.sf.swarmcache.LRUCacheListener
 

P

processRemovedLRU(Object, Object) - Method in class net.sf.swarmcache.LRUCache.ListeningLRUMap
 
put(Serializable, Object) - Method in class net.sf.swarmcache.AutoCache
Adds an object to the cache.
put(Serializable, Object) - Method in class net.sf.swarmcache.HybridCache
 
put(Serializable, Object) - Method in class net.sf.swarmcache.LRUCache
 
put(Serializable, Object) - Method in class net.sf.swarmcache.MultiCache
 
put(Serializable, Object) - Method in interface net.sf.swarmcache.ObjectCache
Adds an object to the cache.
put(Serializable, Object) - Method in class net.sf.swarmcache.TimerCache
Caches an object.
put(Object, Object) - Method in class net.sf.swarmcache.UnboundedLRUMap
 
putAll(Map) - Method in class net.sf.swarmcache.UnboundedLRUMap
 

R

RANDOM_KEY_LENGTH - Static variable in class net.sf.swarmcache.CacheTest
String length to use for randomly generated keys.
RANDOM_VALUE_LENGTH - Static variable in class net.sf.swarmcache.CacheTest
String length to use for randomly generated values.
receive(CacheNotification) - Method in class net.sf.swarmcache.Communicator
Call when a notification is received by the communications layer.
receiveNotification(CacheNotification) - Method in class net.sf.swarmcache.MultiCacheManager
 
remove(Object) - Method in class net.sf.swarmcache.UnboundedLRUMap
 
run() - Method in class net.sf.swarmcache.CacheTest.LoadTester
 
run() - Method in class net.sf.swarmcache.TimerCache
 

S

send(CacheNotification) - Method in class net.sf.swarmcache.Communicator
Implement this to send a cache notification over the communications layer.
send(CacheNotification) - Method in class net.sf.swarmcache.JavaGroupsCommunicator
 
sendClear(String, Serializable) - Method in class net.sf.swarmcache.MultiCacheManager
 
setCacheType(String) - Method in class net.sf.swarmcache.CacheConfiguration
Sets the underlying cache type to use on each server.
setChannelProperties(String) - Method in class net.sf.swarmcache.CacheConfiguration
Sets the JavaGroup channel properties.
setGroupName(String) - Method in class net.sf.swarmcache.Communicator
 
setKey(Serializable) - Method in class net.sf.swarmcache.CacheNotification
 
setListener(LRUCacheListener) - Method in class net.sf.swarmcache.LRUCache.ListeningLRUMap
 
setListener(LRUCacheListener) - Method in class net.sf.swarmcache.LRUCache
 
setLRUCacheSize(String) - Method in class net.sf.swarmcache.CacheConfiguration
Sets the capacity of the LRU cache.
setManager(MultiCacheManager) - Method in class net.sf.swarmcache.Communicator
 
setMulticastIP(String) - Method in class net.sf.swarmcache.CacheConfiguration
Sets the multicast IP address for the JavaGroup.
setSize(int) - Method in class net.sf.swarmcache.HybridCache
Sets the size of the LRU cache.
setSize(int) - Method in class net.sf.swarmcache.LRUCache
 
setTimeout(long) - Method in class net.sf.swarmcache.TimerCache
Sets a new timeout value-- only do this before using the cache!
setType(String) - Method in class net.sf.swarmcache.AutoCache
Sets the common name of the type of objects to cache.
setType(String) - Method in class net.sf.swarmcache.CacheNotification
 
setType(String) - Method in class net.sf.swarmcache.HybridCache
 
setType(String) - Method in class net.sf.swarmcache.LRUCache
 
setType(String) - Method in class net.sf.swarmcache.MultiCache
 
setType(String) - Method in interface net.sf.swarmcache.ObjectCache
Sets the common name of the type of objects to cache.
setType(String) - Method in class net.sf.swarmcache.TimerCache
Sets the cache type name.
shutdown() - Method in class net.sf.swarmcache.CacheFactory
CacheFactory lifecycle shutdown method.
shutDown() - Method in class net.sf.swarmcache.Communicator
Called by the cache manager to shut down the communicator.
shutDown() - Method in class net.sf.swarmcache.JavaGroupsCommunicator
 
shutDown() - Static method in class net.sf.swarmcache.MultiCacheManager
 
size() - Method in class net.sf.swarmcache.UnboundedLRUMap
 
stop() - Method in class net.sf.swarmcache.TimerCache
Called to stop the timer thread.
SWARMCACHE_CACHE_TYPE - Static variable in class net.sf.swarmcache.CacheConfigurationManager
 
SWARMCACHE_CHANNEL_PROPS - Static variable in class net.sf.swarmcache.CacheConfigurationManager
 
SWARMCACHE_LRU_SIZE - Static variable in class net.sf.swarmcache.CacheConfigurationManager
 
SWARMCACHE_MULTICAST_IP - Static variable in class net.sf.swarmcache.CacheConfigurationManager
 
SWARMCACHE_PROP_FILE_NAME - Static variable in class net.sf.swarmcache.CacheConfigurationManager
 

T

TimerCache - Class in net.sf.swarmcache
Cache implementation that times out cached elements.
TimerCache() - Constructor for class net.sf.swarmcache.TimerCache
 
toString() - Method in class net.sf.swarmcache.CacheTest.FinalizerString
 
TYPE_AUTO - Static variable in class net.sf.swarmcache.CacheConfiguration
The Automatic cache type.
TYPE_HYBRID - Static variable in class net.sf.swarmcache.CacheConfiguration
The Hybrid cache type.
TYPE_LRU - Static variable in class net.sf.swarmcache.CacheConfiguration
The LRU cache type.
TYPE_TIMER - Static variable in class net.sf.swarmcache.CacheConfiguration
The Timer cache type.

U

UnboundedLRUMap - Class in net.sf.swarmcache
An LRUMap that allows an unbounded size.
UnboundedLRUMap() - Constructor for class net.sf.swarmcache.UnboundedLRUMap
 

V

values() - Method in class net.sf.swarmcache.UnboundedLRUMap
 
A B C D E F G H I J K L M N O P R S T U V