@Override public Operation get() { List<ProxyInfo> proxyInfos = new ArrayList<ProxyInfo>(parameters.proxies.size()); for (Map.Entry<String, String> proxy : parameters.proxies) { proxyInfos.add(new ProxyInfo(proxy.getValue(), proxy.getKey())); } return new PostJoinProxyOperation(proxyInfos); }
@Override public Operation get() { List<ProxyInfo> proxyInfos = new ArrayList<ProxyInfo>(parameters.proxies.size()); for (Map.Entry<String, String> proxy : parameters.proxies) { proxyInfos.add(new ProxyInfo(proxy.getValue(), proxy.getKey())); } return new PostJoinProxyOperation(proxyInfos); }
/** * 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)); } } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); int len = in.readInt(); if (len > 0) { proxies = new ArrayList<ProxyInfo>(len); for (int i = 0; i < len; i++) { ProxyInfo proxy = new ProxyInfo(in.readUTF(), (String) in.readObject()); proxies.add(proxy); } } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); int len = in.readInt(); if (len > 0) { proxies = new ArrayList<ProxyInfo>(len); for (int i = 0; i < len; i++) { ProxyInfo proxy = new ProxyInfo(in.readUTF(), (String) in.readObject()); proxies.add(proxy); } } }