ehcache

net.sf.ehcache.distribution.jgroups
Class JGroupsCacheReplicatorFactory

java.lang.Object
  extended by net.sf.ehcache.event.CacheEventListenerFactory
      extended by net.sf.ehcache.distribution.jgroups.JGroupsCacheReplicatorFactory

public class JGroupsCacheReplicatorFactory
extends CacheEventListenerFactory

Version:
$Id: JGroupsCacheReplicatorFactory.java 593 2008-03-18 08:25:01Z gregluck $
Author:
Pierre Monestie (pmonestie__REMOVE__THIS__@gmail.com), Greg Luck

Constructor Summary
JGroupsCacheReplicatorFactory()
          Empty arg constructor
 
Method Summary
 CacheEventListener createCacheEventListener(java.util.Properties properties)
          Create a CacheEventListener
protected  long extractAsynchronousReplicationIntervalMillis(java.util.Properties properties, java.lang.String propertyName, long defaultValue)
          Extract a long out of a string.
protected  boolean extractBooleanProperty(java.util.Properties properties, java.lang.String propertyName, boolean defaultValue)
          Extract a Boolean out of a Property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGroupsCacheReplicatorFactory

public JGroupsCacheReplicatorFactory()
Empty arg constructor

Method Detail

createCacheEventListener

public CacheEventListener createCacheEventListener(java.util.Properties properties)
Create a CacheEventListener

Specified by:
createCacheEventListener in class CacheEventListenerFactory
Parameters:
properties - implementation specific properties. These are configured as comma separated name value pairs in ehcache.xml
Returns:
a constructed CacheEventListener

extractAsynchronousReplicationIntervalMillis

protected long extractAsynchronousReplicationIntervalMillis(java.util.Properties properties,
                                                            java.lang.String propertyName,
                                                            long defaultValue)
Extract a long out of a string.

Parameters:
properties - the property
propertyName - the name of the property
defaultValue - the default value if none is found
Returns:
the extracted value

extractBooleanProperty

protected boolean extractBooleanProperty(java.util.Properties properties,
                                         java.lang.String propertyName,
                                         boolean defaultValue)
Extract a Boolean out of a Property

Parameters:
properties - the properties
propertyName - the name of the property
defaultValue - the deulat value id none is found
Returns:
the extracted property

ehcache