/** * Get the non functional props from the executed call. * @return The call props. */ protected Map<String, Object> getNFProps(boolean intermediate) { // if(method.getName().indexOf("method")!=-1) // System.out.println("aas"); Map<String, Object> ret = nonfunc; // During intermediate results the call is still running and nf vals must be fetched from current invoc ServiceCall sc = intermediate? ServiceCall.getCurrentInvocation(): ServiceCall.getLastInvocation(); if(sc!=null) ret = sc.getProperties(); return ret; } }
/** * Call a method that must use a secure * transport under the hood. */ public IFuture<Void> method(String msg) { ServiceCall sc = ServiceCall.getCurrentInvocation(); System.out.println("Called method: "+msg+" "+sc.getTimeout() +" "+sc.isRealtime()+" "+sc.getProperties()); sc.setProperty("extra", "someotherval"); sc.setProperty("new", "new"); // Future<Void> ret = new Future<Void>(); // return ret; return IFuture.DONE; } }
if(inh!=null && inh.booleanValue()) props = new HashMap<String, Object>(lastcall.getProperties()); if(!call.getProperties().containsKey(ServiceCall.TIMEOUT)) if(!call.getProperties().containsKey(ServiceCall.REALTIME))
props = new HashMap<String, Object>(currentcall.getProperties()); if(!nextcall.getProperties().containsKey(ServiceCall.TIMEOUT)) if(!nextcall.getProperties().containsKey(ServiceCall.REALTIME))
Map<String, Object> nf = invoc!=null? invoc.getProperties(): new HashMap<String, Object>(); boolean sec = pi.isSecure(method); if(sec)
Map<String, Object> nf = invoc!=null? invoc.getProperties(): new HashMap<String, Object>(); if(sec)