ehcache

net.sf.ehcache.distribution
Class RMIBootstrapCacheLoaderFactory

java.lang.Object
  extended by net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory<RMIBootstrapCacheLoader>
      extended by net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory

public class RMIBootstrapCacheLoaderFactory
extends BootstrapCacheLoaderFactory<RMIBootstrapCacheLoader>

A factory to create a configured RMIBootstrapCacheLoader

Version:
$Id: RMIBootstrapCacheLoaderFactory.java 5594 2012-05-07 16:04:31Z cdennis $
Author:
Greg Luck

Field Summary
protected static 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 int FIVE_KB
          The lowest reasonable chunk size in bytes
static String MAXIMUM_CHUNK_SIZE_BYTES
          The property name expected in ehcache.xml for the maximum chunk size in bytes
protected static int ONE_HUNDRED_MB
          The highest reasonable chunk size in bytes
 
Fields inherited from class net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory
BOOTSTRAP_ASYNCHRONOUSLY
 
Constructor Summary
RMIBootstrapCacheLoaderFactory()
           
 
Method Summary
 RMIBootstrapCacheLoader createBootstrapCacheLoader(Properties properties)
          Create a BootstrapCacheLoader
protected  int extractMaximumChunkSizeBytes(Properties properties)
           
 
Methods inherited from class net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory
extractBoolean, extractBootstrapAsynchronously, extractLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

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
Constructor Detail

RMIBootstrapCacheLoaderFactory

public RMIBootstrapCacheLoaderFactory()
Method Detail

createBootstrapCacheLoader

public RMIBootstrapCacheLoader createBootstrapCacheLoader(Properties properties)
Create a BootstrapCacheLoader

Specified by:
createBootstrapCacheLoader in class BootstrapCacheLoaderFactory<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(Properties properties)
Parameters:
properties - the properties passed by the CacheManager, read from the configuration file
Returns:
the max chunk size in bytes

ehcache

Copyright 2001-2014, Terracotta, Inc.