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 519 2007-07-27 07:11:45Z gregluck $
Author:
Greg Luck

Constructor Summary
RMICacheManagerPeerProviderFactory()
           
 
Method Summary
protected  CacheManagerPeerProvider createAutomaticallyConfiguredCachePeerProvider(CacheManager cacheManager, java.util.Properties properties)
          peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446, multicastPacketTimeToLive=255
 CacheManagerPeerProvider createCachePeerProvider(CacheManager cacheManager, java.util.Properties properties)
          Create a peer provider.
protected  CacheManagerPeerProvider createManuallyConfiguredCachePeerProvider(java.util.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,
                                                        java.util.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(java.util.Properties properties)
peerDiscovery=manual, rmiUrls=//hostname:port/cacheName //hostname:port/cacheName //hostname:port/cacheName


createAutomaticallyConfiguredCachePeerProvider

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

Throws:
java.io.IOException

ehcache