net.sf.ehcache.distribution

Interface CacheManagerPeerProvider

public interface CacheManagerPeerProvider

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

Version: $Id: CacheManagerPeerProvider.java 52 2006-04-24 14:50:03Z gregluck $

Author: Greg Luck

Method Summary
voiddispose()
Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.
voidinit()
Notifies providers to initialise themselves.
ListlistRemoteCachePeers(Cache cache)
voidregisterPeer(String rmiUrl)
Register a new peer.
voidunregisterPeer(String rmiUrl)
Unregisters a peer.

Method Detail

dispose

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

Throws: CacheException

init

public void init()
Notifies providers to initialise themselves.

Throws: CacheException

listRemoteCachePeers

public List listRemoteCachePeers(Cache cache)

Returns: a list of CachePeer peers for the given cache, excluding the local peer.

registerPeer

public void registerPeer(String rmiUrl)
Register a new peer.

Parameters: rmiUrl

unregisterPeer

public void unregisterPeer(String rmiUrl)
Unregisters a peer.

Parameters: rmiUrl