| Modifier and Type | Field and Description |
|---|---|
| protected CacheManager | cacheManager
The CacheManager this peer provider is associated with. |
| private static final Logger | |
| protected final Map | peerUrls
Contains a RMI URLs of the form: "//" + hostName + ":" + port + "/" + cacheName; |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements net. |
| pack-priv static String | Returns: the cache name as it would appear in ehcache.xmlGets the cache name out of the url |
| public final CacheManager | |
| public String | Returns: the well-known scheme name, which is determined by the replication provider author.Implements net. |
| public abstract void | init()
Redeclares net. |
| public abstract List | Returns: a list ofnet. peers for the given cache, excluding the local peer.Redeclares net. |
| public CachePeer | lookupRemoteCachePeer(String url)
The use of one-time registry creation and Naming.rebind should mean we can create as many listeneres as we like. |
| public abstract void | registerPeer(String rmiUrl)
Redeclares net. |
| protected abstract boolean | |
| public final synchronized void | unregisterPeer(String rmiUrl)
Implements net. |
| cacheManager | back to summary |
|---|---|
| protected CacheManager cacheManager The CacheManager this peer provider is associated with. | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| peerUrls | back to summary |
|---|---|
| protected final Map<K, V> peerUrls Contains a RMI URLs of the form: "//" + hostName + ":" + port + "/" + cacheName; | |
| RMICacheManagerPeerProvider | back to summary |
|---|---|
| public RMICacheManagerPeerProvider(CacheManager cacheManager) Constructor | |
| RMICacheManagerPeerProvider | back to summary |
|---|---|
| public RMICacheManagerPeerProvider() Empty constructor | |
| dispose | back to summary |
|---|---|
| public void dispose() throws CacheException Implements net. Providers may be doing all sorts of exotic things and need to be able to clean up on dispose. | |
| extractCacheName | back to summary |
|---|---|
| pack-priv static String extractCacheName(String rmiUrl) Gets the cache name out of the url
| |
| getCacheManager | back to summary |
|---|---|
| public final CacheManager getCacheManager() The cacheManager this provider is bound to | |
| getScheme | back to summary |
|---|---|
| public String getScheme() Implements net. The replication scheme. Each peer provider has a scheme name, which can be used to specify
the scheme for replication and bootstrap purposes. Each
| |
| init | back to summary |
|---|---|
| public abstract void init() Redeclares net. Doc from net. Notifies providers to initialise themselves. | |
| listRemoteCachePeers | back to summary |
|---|---|
| public abstract List Redeclares net.
| |
| lookupRemoteCachePeer | back to summary |
|---|---|
| public CachePeer lookupRemoteCachePeer(String url) throws MalformedURLException, NotBoundException, RemoteException The use of one-time registry creation and Naming.rebind should mean we can create as many listeneres as we like. They will simply replace the ones that were there. | |
| registerPeer | back to summary |
|---|---|
| public abstract void registerPeer(String rmiUrl) Redeclares net. Register a new peer | |
| stale | back to summary |
|---|---|
| protected abstract boolean stale(Date date) Whether the entry should be considered stale. This will depend on the type of RMICacheManagerPeerProvider.
| |
| unregisterPeer | back to summary |
|---|---|
| public final synchronized void unregisterPeer(String rmiUrl) Implements net. Unregisters a peer | |