Top Description Fields Constructors Methods
net.sf.ehcache.distribution

public Class RMIBootstrapCacheLoaderFactory

extends BootstrapCacheLoaderFactory<RMIBootstrapCacheLoader>
Class Inheritance
Imports
net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory, net.sf.ehcache.util.PropertyUtil, org.slf4j.Logger, .LoggerFactory, java.util.Properties

A factory to create a configured RMIBootstrapCacheLoader
Author
Greg Luck
Version
$Id: RMIBootstrapCacheLoaderFactory.java 5594 2012-05-07 16:04:31Z cdennis $

Field Summary

Modifier and TypeField and Description
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.

protected static final int
FIVE_KB

The lowest reasonable chunk size in bytes

private static final Logger
public static final String
MAXIMUM_CHUNK_SIZE_BYTES

The property name expected in ehcache.xml for the maximum chunk size in bytes

protected static final int
ONE_HUNDRED_MB

The highest reasonable chunk size in bytes

Inherited from net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory:
BOOTSTRAP_ASYNCHRONOUSLY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public RMIBootstrapCacheLoader

Returns:

a constructed BootstrapCacheLoader
createBootstrapCacheLoader
(Properties
implementation specific properties. These are configured as comma separated name value pairs in ehcache.xml
properties
)

Implements abstract net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory.createBootstrapCacheLoader.

Create a BootstrapCacheLoader
protected int

Returns:

the max chunk size in bytes
extractMaximumChunkSizeBytes
(Properties
the properties passed by the CacheManager, read from the configuration file
properties
)

Inherited from net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory:
extractBooleanextractBootstrapAsynchronouslyextractLong

Field Detail

DEFAULT_MAXIMUM_CHUNK_SIZE_BYTESback to summary
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.

FIVE_KBback to summary
protected static final int FIVE_KB

The lowest reasonable chunk size in bytes

LOGback to summary
private static final Logger LOG
MAXIMUM_CHUNK_SIZE_BYTESback to summary
public static final String MAXIMUM_CHUNK_SIZE_BYTES

The property name expected in ehcache.xml for the maximum chunk size in bytes

ONE_HUNDRED_MBback to summary
protected static final int ONE_HUNDRED_MB

The highest reasonable chunk size in bytes

Constructor Detail

RMIBootstrapCacheLoaderFactoryback to summary
public RMIBootstrapCacheLoaderFactory()

Method Detail

createBootstrapCacheLoaderback to summary
public RMIBootstrapCacheLoader createBootstrapCacheLoader(Properties properties)

Implements abstract net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory.createBootstrapCacheLoader.

Create a BootstrapCacheLoader

Parameters
properties:Properties

implementation specific properties. These are configured as comma separated name value pairs in ehcache.xml

Returns:RMIBootstrapCacheLoader

a constructed BootstrapCacheLoader

extractMaximumChunkSizeBytesback to summary
protected int extractMaximumChunkSizeBytes(Properties properties)
Parameters
properties:Properties

the properties passed by the CacheManager, read from the configuration file

Returns:int

the max chunk size in bytes