net.sf.ehcache.distribution.jgroups
Class JGroupsBootstrapCacheLoaderFactory

java.lang.Object
  extended by net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory<JGroupsBootstrapCacheLoader>
      extended by net.sf.ehcache.distribution.jgroups.JGroupsBootstrapCacheLoaderFactory

public class JGroupsBootstrapCacheLoaderFactory
extends net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory<JGroupsBootstrapCacheLoader>

A factory to create a configured JGroupsBootstrapCacheLoader

Version:
$Id$
Author:
Greg Luck

Field Summary
static String BOOTSTRAP_ASYNCHRONOUSLY
          The property name expected in ehcache.xml for the bootstrap asynchronously switch.
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
 
Constructor Summary
JGroupsBootstrapCacheLoaderFactory()
           
 
Method Summary
 JGroupsBootstrapCacheLoader createBootstrapCacheLoader(Properties properties)
          Create a BootstrapCacheLoader
protected  boolean extractAndValidateBootstrapAsynchronously(Properties properties)
          Extracts the value of bootstrapAsynchronously from the properties
protected  int extractMaximumChunkSizeBytes(Properties properties)
          Extracts the value of maximumChunkSizeBytes from the 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

BOOTSTRAP_ASYNCHRONOUSLY

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

See Also:
Constant Field Values

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

JGroupsBootstrapCacheLoaderFactory

public JGroupsBootstrapCacheLoaderFactory()
Method Detail

createBootstrapCacheLoader

public JGroupsBootstrapCacheLoader createBootstrapCacheLoader(Properties properties)
Create a BootstrapCacheLoader

Specified by:
createBootstrapCacheLoader in class net.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory<JGroupsBootstrapCacheLoader>
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)
Extracts the value of maximumChunkSizeBytes from the properties


extractAndValidateBootstrapAsynchronously

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



Copyright © 2003-2012 Terracotta, Inc.. All Rights Reserved.