Package net.sf.ehcache.distribution
Class RMIBootstrapCacheLoaderFactory
- java.lang.Object
-
- net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory<RMIBootstrapCacheLoader>
-
- net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory
-
public class RMIBootstrapCacheLoaderFactory extends BootstrapCacheLoaderFactory<RMIBootstrapCacheLoader>
A factory to create a configured RMIBootstrapCacheLoader- Version:
- $Id$
- Author:
- Greg Luck
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_MAXIMUM_CHUNK_SIZE_BYTESThe default maximum serialized size of the elements to request from a remote cache peer during bootstrap.protected static intFIVE_KBThe lowest reasonable chunk size in bytesstatic java.lang.StringMAXIMUM_CHUNK_SIZE_BYTESThe property name expected in ehcache.xml for the maximum chunk size in bytesprotected static intONE_HUNDRED_MBThe highest reasonable chunk size in bytes-
Fields inherited from class net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory
BOOTSTRAP_ASYNCHRONOUSLY
-
-
Constructor Summary
Constructors Constructor Description RMIBootstrapCacheLoaderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RMIBootstrapCacheLoadercreateBootstrapCacheLoader(java.util.Properties properties)Create aBootstrapCacheLoaderprotected intextractMaximumChunkSizeBytes(java.util.Properties properties)-
Methods inherited from class net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory
extractBoolean, extractBootstrapAsynchronously, extractLong
-
-
-
-
Field Detail
-
MAXIMUM_CHUNK_SIZE_BYTES
public static final java.lang.String MAXIMUM_CHUNK_SIZE_BYTES
The property name expected in ehcache.xml for the maximum chunk size in bytes- See Also:
- Constant Field Values
-
DEFAULT_MAXIMUM_CHUNK_SIZE_BYTES
protected static final int DEFAULT_MAXIMUM_CHUNK_SIZE_BYTES
The default maximum serialized size of the elements to request from a remote cache peer during bootstrap.- See Also:
- Constant Field Values
-
ONE_HUNDRED_MB
protected static final int ONE_HUNDRED_MB
The highest reasonable chunk size in bytes- See Also:
- Constant Field Values
-
FIVE_KB
protected static final int FIVE_KB
The lowest reasonable chunk size in bytes- See Also:
- Constant Field Values
-
-
Method Detail
-
createBootstrapCacheLoader
public RMIBootstrapCacheLoader createBootstrapCacheLoader(java.util.Properties properties)
Create aBootstrapCacheLoader- Specified by:
createBootstrapCacheLoaderin classBootstrapCacheLoaderFactory<RMIBootstrapCacheLoader>- Parameters:
properties- implementation specific properties. These are configured as comma separated name value pairs in ehcache.xml- Returns:
- a constructed BootstrapCacheLoader
-
extractMaximumChunkSizeBytes
protected int extractMaximumChunkSizeBytes(java.util.Properties properties)
- Parameters:
properties- the properties passed by the CacheManager, read from the configuration file- Returns:
- the max chunk size in bytes
-
-