if (isDistributed(cache)) { RMICachePeer rmiCachePeer = null; String url = null;
/** * Should be called on init because this is one of the last things that should happen on CacheManager startup. */ protected void populateListOfRemoteCachePeers() throws RemoteException { String[] names = cacheManager.getCacheNames(); for (int i = 0; i < names.length; i++) { String name = names[i]; Ehcache cache = cacheManager.getEhcache(name); synchronized (cachePeers) { if (cachePeers.get(name) == null) { if (isDistributed(cache)) { RMICachePeer peer; if (cache.getCacheConfiguration().getTransactionalMode().isTransactional()) { peer = new TransactionalRMICachePeer(cache, hostName, port, remoteObjectPort, socketTimeoutMillis); } else { peer = new RMICachePeer(cache, hostName, port, remoteObjectPort, socketTimeoutMillis); } cachePeers.put(name, peer); } } } } }
if (isDistributed(cache)) { RMICachePeer rmiCachePeer = null; String url = null;
/** * Should be called on init because this is one of the last things that should happen on CacheManager startup. */ protected void populateListOfRemoteCachePeers() throws RemoteException { String[] names = cacheManager.getCacheNames(); for (int i = 0; i < names.length; i++) { String name = names[i]; Ehcache cache = cacheManager.getEhcache(name); synchronized (cachePeers) { if (cachePeers.get(name) == null) { if (isDistributed(cache)) { RMICachePeer peer; if (cache.getCacheConfiguration().getTransactionalMode().isTransactional()) { peer = new TransactionalRMICachePeer(cache, hostName, port, remoteObjectPort, socketTimeoutMillis); } else { peer = new RMICachePeer(cache, hostName, port, remoteObjectPort, socketTimeoutMillis); } cachePeers.put(name, peer); } } } } }
if (isDistributed(cache)) { RMICachePeer rmiCachePeer = null; String url = null;
/** * Should be called on init because this is one of the last things that should happen on CacheManager startup. */ protected void populateListOfRemoteCachePeers() throws RemoteException { String[] names = cacheManager.getCacheNames(); for (int i = 0; i < names.length; i++) { String name = names[i]; Ehcache cache = cacheManager.getEhcache(name); synchronized (cachePeers) { if (cachePeers.get(name) == null) { if (isDistributed(cache)) { RMICachePeer peer; if (cache.getCacheConfiguration().getTransactionalMode().isTransactional()) { peer = new TransactionalRMICachePeer(cache, hostName, port, remoteObjectPort, socketTimeoutMillis); } else { peer = new RMICachePeer(cache, hostName, port, remoteObjectPort, socketTimeoutMillis); } cachePeers.put(name, peer); } } } } }
if (isDistributed(cache)) { RMICachePeer rmiCachePeer = null; String url = null;
/** * Should be called on init because this is one of the last things that should happen on CacheManager startup. */ protected void populateListOfRemoteCachePeers() throws RemoteException { String[] names = cacheManager.getCacheNames(); for (int i = 0; i < names.length; i++) { String name = names[i]; Ehcache cache = cacheManager.getEhcache(name); synchronized (cachePeers) { if (cachePeers.get(name) == null) { if (isDistributed(cache)) { RMICachePeer peer; if (cache.getCacheConfiguration().getTransactionalMode().isTransactional()) { peer = new TransactionalRMICachePeer(cache, hostName, port, remoteObjectPort, socketTimeoutMillis); } else { peer = new RMICachePeer(cache, hostName, port, remoteObjectPort, socketTimeoutMillis); } cachePeers.put(name, peer); } } } } }