ehcache

net.sf.ehcache.distribution
Interface CacheManagerPeerProvider

All Known Implementing Classes:
JGroupManager, ManualRMICacheManagerPeerProvider, MulticastRMICacheManagerPeerProvider, RMICacheManagerPeerProvider

public interface CacheManagerPeerProvider

Provides a discovery service to locate CachePeer RMI listener peers for a Cache.

Version:
$Id: CacheManagerPeerProvider.java 519 2007-07-27 07:11:45Z gregluck $
Author:
Greg Luck

Method Summary
 void dispose()
          Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.
 long getTimeForClusterToForm()
          Time for a cluster to form.
 void init()
          Notifies providers to initialise themselves.
 java.util.List listRemoteCachePeers(Ehcache cache)
           
 void registerPeer(java.lang.String rmiUrl)
          Register a new peer.
 void unregisterPeer(java.lang.String rmiUrl)
          Unregisters a peer.
 

Method Detail

registerPeer

void registerPeer(java.lang.String rmiUrl)
Register a new peer.

Parameters:
rmiUrl -

unregisterPeer

void unregisterPeer(java.lang.String rmiUrl)
Unregisters a peer.

Parameters:
rmiUrl -

listRemoteCachePeers

java.util.List listRemoteCachePeers(Ehcache cache)
                                    throws CacheException
Returns:
a list of CachePeer peers for the given cache, excluding the local peer.
Throws:
CacheException

init

void init()
Notifies providers to initialise themselves.

Throws:
CacheException

dispose

void dispose()
             throws CacheException
Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.

Throws:
CacheException

getTimeForClusterToForm

long getTimeForClusterToForm()
Time for a cluster to form. This varies considerably, depending on the implementation.

Returns:
the time in ms, for a cluster to form

ehcache