ehcache

net.sf.ehcache.distribution
Class RMICacheManagerPeerProviderFactory

java.lang.Object
  extended by net.sf.ehcache.distribution.CacheManagerPeerProviderFactory
      extended by net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory

public class RMICacheManagerPeerProviderFactory
extends CacheManagerPeerProviderFactory

Builds a factory based on RMI

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

Constructor Summary
RMICacheManagerPeerProviderFactory()
           
 
Method Summary
protected  CacheManagerPeerProvider createAutomaticallyConfiguredCachePeerProvider(CacheManager cacheManager, Properties properties)
          peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446, multicastPacketTimeToLive=255
 CacheManagerPeerProvider createCachePeerProvider(CacheManager cacheManager, Properties properties)
          Create a peer provider.
protected  CacheManagerPeerProvider createManuallyConfiguredCachePeerProvider(Properties properties)
          peerDiscovery=manual, rmiUrls=//hostname:port/cacheName //hostname:port/cacheName //hostname:port/cacheName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMICacheManagerPeerProviderFactory

public RMICacheManagerPeerProviderFactory()
Method Detail

createCachePeerProvider

public CacheManagerPeerProvider createCachePeerProvider(CacheManager cacheManager,
                                                        Properties properties)
                                                 throws CacheException
Description copied from class: CacheManagerPeerProviderFactory
Create a peer provider.

Specified by:
createCachePeerProvider in class CacheManagerPeerProviderFactory
Parameters:
properties - implementation specific properties. These are configured as comma separated name value pairs in ehcache.xml
cacheManager - the CacheManager instance connected to this peer provider
Returns:
a constructed CacheManagerPeerProvider
Throws:
CacheException

createManuallyConfiguredCachePeerProvider

protected CacheManagerPeerProvider createManuallyConfiguredCachePeerProvider(Properties properties)
peerDiscovery=manual, rmiUrls=//hostname:port/cacheName //hostname:port/cacheName //hostname:port/cacheName


createAutomaticallyConfiguredCachePeerProvider

protected CacheManagerPeerProvider createAutomaticallyConfiguredCachePeerProvider(CacheManager cacheManager,
                                                                                  Properties properties)
                                                                           throws IOException
peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446, multicastPacketTimeToLive=255

Throws:
IOException

ehcache

Copyright 2001-2017, Terracotta, Inc.