net.sf.ehcache.distribution

Class ManualRMICacheManagerPeerProvider

public final class ManualRMICacheManagerPeerProvider extends RMICacheManagerPeerProvider

A provider of Peer RMI addresses based off manual configuration.

Because there is no monitoring of whether a peer is actually there, the list of peers is dynamically looked up and verified each time a lookup request is made.

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

Author: Greg Luck

Constructor Summary
ManualRMICacheManagerPeerProvider()
Empty constructor.
Method Summary
voidinit()
ListlistRemoteCachePeers(Cache cache)
voidregisterPeer(String rmiUrl)
Register a new peer.
protected booleanstale(Date date)
Whether the entry should be considered stale.

Constructor Detail

ManualRMICacheManagerPeerProvider

public ManualRMICacheManagerPeerProvider()
Empty constructor.

Method Detail

init

public final void init()
{@inheritDoc }

listRemoteCachePeers

public final List listRemoteCachePeers(Cache cache)

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

registerPeer

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

Parameters: rmiUrl

stale

protected final boolean stale(Date date)
Whether the entry should be considered stale.

Manual RMICacheManagerProviders use a static list of urls and are therefore never stale.

Parameters: date the date the entry was created

Returns: true if stale