/** * Gets the ProxyInfo of all fully initialized proxies in this registry. * The result is written into 'result'. * * @param result The ProxyInfo of all proxies in this registry. */ public void getProxyInfos(Collection<ProxyInfo> result) { for (Map.Entry<String, DistributedObjectFuture> entry : proxies.entrySet()) { DistributedObjectFuture future = entry.getValue(); if (future.isSetAndInitialized()) { String proxyName = entry.getKey(); result.add(new ProxyInfo(serviceName, proxyName)); } } }
/** * Gets the ProxyInfo of all fully initialized proxies in this registry. * The result is written into 'result'. * * @param result The ProxyInfo of all proxies in this registry. */ public void getProxyInfos(Collection<ProxyInfo> result) { for (Map.Entry<String, DistributedObjectFuture> entry : proxies.entrySet()) { DistributedObjectFuture future = entry.getValue(); if (future.isSetAndInitialized()) { String proxyName = entry.getKey(); result.add(new ProxyInfo(serviceName, proxyName)); } } }
/** * Destroys this proxy registry. */ void destroy() { for (DistributedObjectFuture future : proxies.values()) { if (!future.isSetAndInitialized()) { continue; } DistributedObject distributedObject = extractDistributedObject(future); invalidate(distributedObject); } proxies.clear(); }
/** * Destroys this proxy registry. */ void destroy() { for (DistributedObjectFuture future : proxies.values()) { if (!future.isSetAndInitialized()) { continue; } DistributedObject distributedObject = extractDistributedObject(future); invalidate(distributedObject); } proxies.clear(); }
/** * Gets the DistributedObjects in this registry. The result is written into 'result'. * * @param result The DistributedObjects in this registry. */ public void getDistributedObjects(Collection<DistributedObject> result) { Collection<DistributedObjectFuture> futures = proxies.values(); for (DistributedObjectFuture future : futures) { if (!future.isSetAndInitialized()) { continue; } try { DistributedObject object = future.get(); result.add(object); } catch (Throwable ignored) { // ignore if proxy creation failed ignore(ignored); } } }
/** * Gets the DistributedObjects in this registry. The result is written into 'result'. * * @param result The DistributedObjects in this registry. */ public void getDistributedObjects(Collection<DistributedObject> result) { Collection<DistributedObjectFuture> futures = proxies.values(); for (DistributedObjectFuture future : futures) { if (!future.isSetAndInitialized()) { continue; } try { DistributedObject object = future.get(); result.add(object); } catch (Throwable ignored) { // ignore if proxy creation failed ignore(ignored); } } }