Package net.sf.ehcache.distribution
Class RMICacheManagerPeerListenerFactory
- java.lang.Object
-
- net.sf.ehcache.distribution.CacheManagerPeerListenerFactory
-
- net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory
-
public class RMICacheManagerPeerListenerFactory extends CacheManagerPeerListenerFactory
Builds a listener based on RMI.Expected configuration line:
<cachePeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" properties="hostName=localhost, port=5000" />- Version:
- $Id$
- Author:
- Greg Luck
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.IntegerDEFAULT_SOCKET_TIMEOUT_MILLISThe default timeout for cache replication for a single replication action.
-
Constructor Summary
Constructors Constructor Description RMICacheManagerPeerListenerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheManagerPeerListenercreateCachePeerListener(CacheManager cacheManager, java.util.Properties properties)Creates a peer provider.protected CacheManagerPeerListenerdoCreateCachePeerListener(java.lang.String hostName, java.lang.Integer port, java.lang.Integer remoteObjectPort, CacheManager cacheManager, java.lang.Integer socketTimeoutMillis)A template method to actually create the factory
-
-
-
Method Detail
-
createCachePeerListener
public final CacheManagerPeerListener createCachePeerListener(CacheManager cacheManager, java.util.Properties properties) throws CacheException
Description copied from class:CacheManagerPeerListenerFactoryCreates a peer provider.- Specified by:
createCachePeerListenerin classCacheManagerPeerListenerFactory- Parameters:
properties- implementation specific properties. These are configured as comma separated name value pairs in ehcache.xmlcacheManager- the CacheManager instance connected to this peer provider- Returns:
- a constructed CacheManagerPeerProvider
- Throws:
CacheException
-
doCreateCachePeerListener
protected CacheManagerPeerListener doCreateCachePeerListener(java.lang.String hostName, java.lang.Integer port, java.lang.Integer remoteObjectPort, CacheManager cacheManager, java.lang.Integer socketTimeoutMillis)
A template method to actually create the factory- Parameters:
hostName-port-remoteObjectPort-cacheManager-socketTimeoutMillis-- Returns:
- a crate CacheManagerPeerListener
-
-