protected RequestCorrelator removeEntry(long id) { Request req=requests.remove(id); if(req != null) { long time_ns=req.start_time > 0? System.nanoTime() - req.start_time : 0; if(req instanceof UnicastRequest) rpc_stats.add(RpcStats.Type.UNICAST, ((UnicastRequest)req).target, true, time_ns); else if(req instanceof GroupRequest) { if(req.options != null && req.options.anycasting()) rpc_stats.addAnycast(true, time_ns, ((GroupRequest)req).rsps.keySet()); else rpc_stats.add(RpcStats.Type.MULTICAST, null, true, time_ns); } else log.error("request type %s not known", req != null? req.getClass().getSimpleName() : req); } return this; }
boolean non_blocking=!sync || !block_for_results, anycast=options.anycasting(); if(non_blocking) updateStats(real_dests, anycast, sync, 0);
System.out.println("invoking method in " + dests + ": "); RspList<Object> rsps=disp.callRemoteMethods(dests, call, new RequestOptions(ResponseMode.GET_ALL, RPC_TIMEOUT).anycasting(true)); for(Map.Entry<Address,Rsp<Object>> entry: rsps.entrySet()) { Address sender=entry.getKey(); new RequestOptions(ResponseMode.GET_ALL, RPC_TIMEOUT).anycasting(false)); rsps.entrySet().stream().forEach( entry -> { Rsp<Object> val=entry.getValue();
if(opts != null && opts.anycasting()) rpc_stats.addAnycast(false, 0, dest_mbrs); else if(opts.anycasting()) { if(opts.useAnycastAddresses()) { transport.down(msg.dest(new AnycastAddress(dest_mbrs)));
protected RequestCorrelator removeEntry(long id) { Request req=requests.remove(id); if(req != null) { long time_ns=req.start_time > 0? System.nanoTime() - req.start_time : 0; if(req instanceof UnicastRequest) rpc_stats.add(RpcStats.Type.UNICAST, ((UnicastRequest)req).target, true, time_ns); else if(req instanceof GroupRequest) { if(req.options != null && req.options.anycasting()) rpc_stats.addAnycast(true, time_ns, ((GroupRequest)req).rsps.keySet()); else rpc_stats.add(RpcStats.Type.MULTICAST, null, true, time_ns); } else log.error("request type %s not known", req != null? req.getClass().getSimpleName() : req); } return this; }
System.out.println("invoking method in " + dests + ": "); RspList<Object> rsps=disp.callRemoteMethods(dests, call, new RequestOptions(ResponseMode.GET_ALL, RPC_TIMEOUT).anycasting(true)); for(Map.Entry<Address,Rsp<Object>> entry: rsps.entrySet()) { Address sender=entry.getKey(); new RequestOptions(ResponseMode.GET_ALL, RPC_TIMEOUT).anycasting(false)); rsps.entrySet().stream().forEach( entry -> { Rsp<Object> val=entry.getValue();
boolean non_blocking=!sync || !block_for_results, anycast=options.anycasting(); if(non_blocking) updateStats(real_dests, anycast, sync, 0);
if(opts != null && opts.anycasting()) rpc_stats.addAnycast(false, 0, dest_mbrs); else if(opts.anycasting()) { if(opts.useAnycastAddresses()) { transport.down(msg.dest(new AnycastAddress(dest_mbrs)));