| Modifier and Type | Class and Description |
|---|---|
| private class | RMIBootstrapCacheLoader.BootstrapThread
A background daemon thread that asynchronously calls doLoad |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | asynchronous
Whether to load asynchronously |
| private static final Logger | |
| protected int | maximumChunkSizeBytes
The maximum serialized size of the elements to request from a remote cache peer during bootstrap. |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | RMIBootstrapCacheLoader(boolean
Whether to load asynchronously asynchronous, int maximumChunkSize)Creates a boostrap cache loader that will work with RMI based distribution |
| Modifier and Type | Method and Description |
|---|---|
| protected List | |
| public Object | clone()
Overrides java. Implements net. |
| public void | |
| protected void | fetchAndPutElements(Ehcache
the cache to put elements in cache, List<E> the chunk of keys to request requestChunk, CachePeer the peer to fetch from cachePeer)Fetches a chunk of elements from a remote cache peer |
| public int | |
| public boolean | Returns: true if this bootstrap loader is asynchronousImplements net. |
| protected List | |
| public void | load(Ehcache
cache to load cache)Implements net. |
| asynchronous | back to summary |
|---|---|
| protected boolean asynchronous Whether to load asynchronously | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| maximumChunkSizeBytes | back to summary |
|---|---|
| protected int maximumChunkSizeBytes The maximum serialized size of the elements to request from a remote cache peer during bootstrap. | |
| ONE_SECOND | back to summary |
|---|---|
| private static final int ONE_SECOND | |
| RMIBootstrapCacheLoader | back to summary |
|---|---|
| public RMIBootstrapCacheLoader(boolean asynchronous, int maximumChunkSize) Creates a boostrap cache loader that will work with RMI based distribution
| |
| acquireCachePeers | back to summary |
|---|---|
| protected List Acquires the cache peers for this cache. | |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides java. Implements net. Clones this loader
| |
| doLoad | back to summary |
|---|---|
| public void doLoad(Ehcache cache) throws RemoteCacheException Bootstraps the cache from a random CachePeer. Requests are done in chunks estimated at 5MB Serializable size. This balances memory use on each end and network performance. Bootstrapping requires the establishment of a cluster. This can be instantaneous for manually configued clusters or may take a number of seconds for multicast ones. This method waits up to 11 seconds for a cluster to form.
| |
| fetchAndPutElements | back to summary |
|---|---|
| protected void fetchAndPutElements(Ehcache cache, List<E> requestChunk, CachePeer cachePeer) throws RemoteException Fetches a chunk of elements from a remote cache peer | |
| getMaximumChunkSizeBytes | back to summary |
|---|---|
| public int getMaximumChunkSizeBytes() Gets the maximum chunk size | |
| isAsynchronous | back to summary |
|---|---|
| public boolean isAsynchronous() Implements net.
| |
| listRemoteCachePeers | back to summary |
|---|---|
| protected List Package protected List of cache peers | |
| load | back to summary |
|---|---|
| public void load(Ehcache cache) throws RemoteCacheException Implements net. Bootstraps the cache from a random CachePeer. Requests are done in chunks estimated at 5MB Serializable size. This balances memory use on each end and network performance.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Ehcache |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | run()
Overrides java. Implements java. |
| cache | back to summary |
|---|---|
| private Ehcache cache | |
| BootstrapThread | back to summary |
|---|---|
| public BootstrapThread(Ehcache cache) | |
| run | back to summary |
|---|---|
| public final void run() Overrides java. Implements java. RemoteDebugger thread method. | |