Azkaban的Web Server源码探究系列25: 一次性执行execute任务实际分发过程
下面就讲解如何把一个任务真正的分发到指定的executor上!!! ================================================================= 上节讲到了在函数azkaban.executor.ExecutorManager.callExecutorServer中有这么一行 Map<String, Object> jsonResponse = callExecutorForJsonObject( host , port , "/executor" , paramList ); 进入这个函数一探究竟! --- // 构造http client ExecutorApiClient apiclient = ExecutorApiClient. getInstance (); @SuppressWarnings ( "unchecked" ) // 构造URI URI uri = ExecutorApiClient. buildUri ( host , port , path , true , paramList .toArray( new Pair[0])); return apiclient .httpGet( uri , null ); --- 具体产生的URL类似于: uri = "http://x.x.x.x:port