/** * Package protected List of cache peers * * @param cache * @return a list of {@link CachePeer} peers for the given cache, excluding the local peer. */ static List<CachePeer> listRemoteCachePeers(Ehcache cache) { CacheManagerPeerProvider provider = cache.getCacheManager().getCacheManagerPeerProvider("RMI"); return provider.listRemoteCachePeers(cache); }
/** * Package protected List of cache peers * * @param cache */ protected List listRemoteCachePeers(Ehcache cache) { CacheManagerPeerProvider provider = cache.getCacheManager().getCacheManagerPeerProvider("RMI"); if (provider == null) { return null; } else { return provider.listRemoteCachePeers(cache); } }
public boolean isDistributed() { // check if cache part of a distributed cluster try { CacheManagerPeerProvider peerProvider = ehcache.getCacheManager().getCacheManagerPeerProvider("RMI"); return ((peerProvider != null) && (peerProvider.listRemoteCachePeers(ehcache).size() > 0)); } catch (CacheException ce) { } return false; }
/** * Package protected List of cache peers * * @param cache * @return a list of {@link CachePeer} peers for the given cache, excluding the local peer. */ static List<CachePeer> listRemoteCachePeers(Ehcache cache) { CacheManagerPeerProvider provider = cache.getCacheManager().getCacheManagerPeerProvider("RMI"); return provider.listRemoteCachePeers(cache); }
/** * Package protected List of cache peers * * @param cache * @return a list of {@link CachePeer} peers for the given cache, excluding the local peer. */ static List<CachePeer> listRemoteCachePeers(Ehcache cache) { CacheManagerPeerProvider provider = cache.getCacheManager().getCacheManagerPeerProvider("RMI"); return provider.listRemoteCachePeers(cache); }
/** * @param cache the cache we are getting peers for * @return the list of cache peers */ protected static List<CachePeer> listRemoteCachePeers(Ehcache cache) { CacheManagerPeerProvider provider = cache.getCacheManager().getCacheManagerPeerProvider("JMS"); return provider.listRemoteCachePeers(cache); }
/** * @param cache the cache we are getting peers for * @return the list of cache peers */ protected static List<CachePeer> listRemoteCachePeers(Ehcache cache) { CacheManagerPeerProvider provider = cache.getCacheManager().getCacheManagerPeerProvider("JMS"); return provider.listRemoteCachePeers(cache); }
/** * Package protected List of cache peers * * @param cache * @return a list of {@link CachePeer} peers for the given cache, excluding the local peer. */ static List<CachePeer> listRemoteCachePeers(Ehcache cache) { CacheManagerPeerProvider provider = cache.getCacheManager().getCacheManagerPeerProvider("RMI"); return provider.listRemoteCachePeers(cache); }
/** * Package protected List of cache peers * * @param cache */ protected List listRemoteCachePeers(Ehcache cache) { CacheManagerPeerProvider provider = cache.getCacheManager().getCacheManagerPeerProvider("RMI"); if (provider == null) { return null; } else { return provider.listRemoteCachePeers(cache); } }
/** * Package protected List of cache peers * * @param cache */ protected List listRemoteCachePeers(Ehcache cache) { CacheManagerPeerProvider provider = cache.getCacheManager().getCacheManagerPeerProvider("RMI"); if (provider == null) { return null; } else { return provider.listRemoteCachePeers(cache); } }
/** * Package protected List of cache peers * * @param cache */ protected List listRemoteCachePeers(Ehcache cache) { CacheManagerPeerProvider provider = cache.getCacheManager().getCacheManagerPeerProvider("RMI"); if (provider == null) { return null; } else { return provider.listRemoteCachePeers(cache); } }
/** * Package protected List of cache peers * * @param cache * @return a list of {@link CachePeer} peers for the given cache, excluding * the local peer. */ @SuppressWarnings("unchecked") private List<CachePeer> listRemoteCachePeers(Ehcache cache) { final CacheManager cacheManager = cache.getCacheManager(); final CacheManagerPeerProvider provider = cacheManager.getCacheManagerPeerProvider(JGroupsCacheManagerPeerProvider.SCHEME_NAME); return provider.listRemoteCachePeers(cache); }
List<CachePeer> cachePeers = provider.listRemoteCachePeers(ehcache); for (CachePeer cachePeer : cachePeers) { StringBuilder cacheStatus = new StringBuilder();