net.sf.ehcache.distribution

Class RMIBootstrapCacheLoaderFactory

public class RMIBootstrapCacheLoaderFactory extends BootstrapCacheLoaderFactory

A factory to create a configured RMIBootstrapCacheLoader

Version: $Id: RMIBootstrapCacheLoaderFactory.java 99 2006-05-29 10:38:56Z gregluck $

Author: Greg Luck

Field Summary
static StringBOOTSTRAP_ASYNCHRONOUSLY
The property name expected in ehcache.xml for the bootstrap asyncrhonously switch.
protected static intDEFAULT_MAXIMUM_CHUNK_SIZE_BYTES
The default maximum serialized size of the elements to request from a remote cache peer during bootstrap.
protected static intFIVE_KB
The lowest reasonable chunk size in bytes
static StringMAXIMUM_CHUNK_SIZE_BYTES
The property name expected in ehcache.xml for the maximum chunk size in bytes
protected static intONE_HUNDRED_MB
The highest reasonable chunk size in bytes
Method Summary
BootstrapCacheLoadercreateBootstrapCacheLoader(Properties properties)
Create a BootstrapCacheLoader
protected booleanextractBootstrapAsynchronously(Properties properties)
Extracts the value of bootstrapAsynchronously from the properties
protected intextractMaximumChunkSizeBytes(Properties properties)

Field Detail

BOOTSTRAP_ASYNCHRONOUSLY

public static final String BOOTSTRAP_ASYNCHRONOUSLY
The property name expected in ehcache.xml for the bootstrap asyncrhonously switch.

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.

FIVE_KB

protected static final int FIVE_KB
The lowest reasonable chunk size in bytes

MAXIMUM_CHUNK_SIZE_BYTES

public static final String MAXIMUM_CHUNK_SIZE_BYTES
The property name expected in ehcache.xml for the maximum chunk size in bytes

ONE_HUNDRED_MB

protected static final int ONE_HUNDRED_MB
The highest reasonable chunk size in bytes

Method Detail

createBootstrapCacheLoader

public BootstrapCacheLoader createBootstrapCacheLoader(Properties properties)
Create a BootstrapCacheLoader

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

Returns: a constructed BootstrapCacheLoader

extractBootstrapAsynchronously

protected boolean extractBootstrapAsynchronously(Properties properties)
Extracts the value of bootstrapAsynchronously from the properties

Parameters: properties

extractMaximumChunkSizeBytes

protected int extractMaximumChunkSizeBytes(Properties properties)

Parameters: properties