public boolean validation ( ) throws ParallelTaskInvalidException { ParallelTask task = new ParallelTask ( ) ; targetHostMeta = new TargetHostMeta ( targetHosts ) ; task = new ParallelTask ( requestProtocol , concurrency , httpMeta , targetHostMeta , sshMeta , tcpMeta , udpMeta , pingMeta , null , responseContext , replacementVarMapNodeSpecific , replacementVarMap , requestReplacementType , config ) ; boolean valid = false ; try { valid = task . validateWithFillDefault ( ) ; } catch ( ParallelTaskInvalidException e ) { logger . info ( "task is invalid " + e ) ; } return valid ; }
add some validation to see if this miss anything .