public void genNodeDataMap ( ParallelTask task ) { TargetHostMeta targetHostMeta = task . getTargetHostMeta ( ) ; HttpMeta httpMeta = task . getHttpMeta ( ) ; String entityBody = httpMeta . getEntityBody ( ) ; String requestContent = HttpMeta . replaceDefaultFullRequestContent ( entityBody ) ; Map < String , NodeReqResponse > parallelTaskResult = task . getParallelTaskResult ( ) ; for ( String fqdn : targetHostMeta . getHosts ( ) ) { NodeReqResponse nodeReqResponse = new NodeReqResponse ( fqdn ) ; nodeReqResponse . setDefaultReqestContent ( requestContent ) ; parallelTaskResult . put ( fqdn , nodeReqResponse ) ; } }
Generate node data map .