Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
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 net.sf.swarmcache.
AutoCache
.
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 net.sf.swarmcache.
CacheConfiguration
.
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 net.sf.swarmcache.
CacheConfigurationManager
.
CacheConfigurationManager holds a static CacheConfiguration for use throughout a system.
CacheFactory
- class net.sf.swarmcache.
CacheFactory
.
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 net.sf.swarmcache.
CacheNotification
.
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 net.sf.swarmcache.
CacheTest
.
Test cache app.
CacheTest.FinalizerString
- class net.sf.swarmcache.
CacheTest.FinalizerString
.
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 net.sf.swarmcache.
CacheTest.LoadTester
.
CacheTest.LoadTester(ObjectCache, int, int, int, int)
- Constructor for class net.sf.swarmcache.
CacheTest.LoadTester
CacheTest()
- Constructor for class net.sf.swarmcache.
CacheTest
CHANNEL_PROPERTIES
- Static variable in class net.sf.swarmcache.
JavaGroupsCommunicator
CLEAR_ALL
- Static variable in class net.sf.swarmcache.
MultiCacheManager
clear()
- Method in class net.sf.swarmcache.
UnboundedLRUMap
clear(Serializable)
- Method in class net.sf.swarmcache.
TimerCache
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.
MultiCache
In this implementation, the clear is multicast to all caches.
clear(Serializable)
- Method in class net.sf.swarmcache.
LRUCache
clear(Serializable)
- Method in class net.sf.swarmcache.
HybridCache
clear(Serializable)
- Method in class net.sf.swarmcache.
AutoCache
clearAll()
- Method in class net.sf.swarmcache.
TimerCache
clearAll()
- Method in interface net.sf.swarmcache.
ObjectCache
Clears the entire cache.
clearAll()
- Method in class net.sf.swarmcache.
MultiCache
clearAll()
- Method in class net.sf.swarmcache.
LRUCache
clearAll()
- Method in class net.sf.swarmcache.
HybridCache
clearAll()
- Method in class net.sf.swarmcache.
AutoCache
close()
- Method in class net.sf.swarmcache.
MultiCacheManager
Communicator
- class net.sf.swarmcache.
Communicator
.
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.
UnboundedLRUMap
equals(Object)
- Method in class net.sf.swarmcache.
CacheTest.FinalizerString
F
finalize()
- Method in class net.sf.swarmcache.
JavaGroupsCommunicator
finalize()
- Method in class net.sf.swarmcache.
CacheTest.FinalizerString
G
get(Object)
- Method in class net.sf.swarmcache.
UnboundedLRUMap
get(Serializable)
- Method in class net.sf.swarmcache.
TimerCache
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.
MultiCache
get(Serializable)
- Method in class net.sf.swarmcache.
LRUCache
get(Serializable)
- Method in class net.sf.swarmcache.
HybridCache
get(Serializable)
- Method in class net.sf.swarmcache.
AutoCache
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.
TimerCache
Gets the cache type name.
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.
MultiCache
getType()
- Method in class net.sf.swarmcache.
LRUCache
getType()
- Method in class net.sf.swarmcache.
HybridCache
getType()
- Method in class net.sf.swarmcache.
CacheNotification
getType()
- Method in class net.sf.swarmcache.
AutoCache
H
handleNotification(Serializable)
- Method in class net.sf.swarmcache.
JavaGroupsCommunicator
HybridCache
- class net.sf.swarmcache.
HybridCache
.
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 net.sf.swarmcache.
JavaGroupsCommunicator
.
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 net.sf.swarmcache.
LRUCache
.
Cache implementation that uses the Least Recently Used algorithm.
LRUCache.ListeningLRUMap
- class net.sf.swarmcache.
LRUCache.ListeningLRUMap
.
LRUCache.ListeningLRUMap(int)
- Constructor for class net.sf.swarmcache.
LRUCache.ListeningLRUMap
LRUCache()
- Constructor for class net.sf.swarmcache.
LRUCache
LRUCacheListener
- interface net.sf.swarmcache.
LRUCacheListener
.
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 net.sf.swarmcache.
MultiCache
.
A wrapper cache type that notifies the multicast cache manager.
MultiCache(ObjectCache, MultiCacheManager)
- Constructor for class net.sf.swarmcache.
MultiCache
MultiCacheManager
- class net.sf.swarmcache.
MultiCacheManager
.
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 net.sf.swarmcache.
ObjectCache
.
Generic caching mechanism.
objectRemoved(Serializable, Object)
- Method in interface net.sf.swarmcache.
LRUCacheListener
objectRemoved(Serializable, Object)
- Method in class net.sf.swarmcache.
HybridCache
Called when an object is automatically removed from the LRU cache.
P
processRemovedLRU(Object, Object)
- Method in class net.sf.swarmcache.
LRUCache.ListeningLRUMap
put(Object, Object)
- Method in class net.sf.swarmcache.
UnboundedLRUMap
put(Serializable, Object)
- Method in class net.sf.swarmcache.
TimerCache
Caches an object.
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.
MultiCache
put(Serializable, Object)
- Method in class net.sf.swarmcache.
LRUCache
put(Serializable, Object)
- Method in class net.sf.swarmcache.
HybridCache
put(Serializable, Object)
- Method in class net.sf.swarmcache.
AutoCache
Adds an object to the cache.
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.
TimerCache
run()
- Method in class net.sf.swarmcache.
CacheTest.LoadTester
S
send(CacheNotification)
- Method in class net.sf.swarmcache.
JavaGroupsCommunicator
send(CacheNotification)
- Method in class net.sf.swarmcache.
Communicator
Implement this to send a cache notification over the communications layer.
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
setListener(LRUCacheListener)
- Method in class net.sf.swarmcache.
LRUCache.ListeningLRUMap
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.
LRUCache
setSize(int)
- Method in class net.sf.swarmcache.
HybridCache
Sets the size of the LRU cache.
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.
TimerCache
Sets the cache type name.
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.
MultiCache
setType(String)
- Method in class net.sf.swarmcache.
LRUCache
setType(String)
- Method in class net.sf.swarmcache.
HybridCache
setType(String)
- Method in class net.sf.swarmcache.
CacheNotification
setType(String)
- Method in class net.sf.swarmcache.
AutoCache
Sets the common name of the type of objects to cache.
shutdown()
- Method in class net.sf.swarmcache.
CacheFactory
CacheFactory lifecycle shutdown method.
shutDown()
- Static method in class net.sf.swarmcache.
MultiCacheManager
shutDown()
- Method in class net.sf.swarmcache.
JavaGroupsCommunicator
shutDown()
- Method in class net.sf.swarmcache.
Communicator
Called by the cache manager to shut down the communicator.
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 net.sf.swarmcache.
TimerCache
.
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 net.sf.swarmcache.
UnboundedLRUMap
.
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
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes