checkNotNull(httpClient, "httpClient is null");
checkNotNull(executor, "executor is null");
checkNotNull(taskInfoCodec, "taskInfoCodec is null");
checkNotNull(taskUpdateRequestCodec, "taskUpdateRequestCodec is null");
try (SetThreadName setThreadName = new SetThreadName("HttpRemoteTask-%s", taskId)) {
this.taskId = taskId;
this.session = session;
this.nodeId = node.getNodeIdentifier();
this.planFragment = planFragment;
this.outputReceivers = ImmutableMap.copyOf(outputReceivers);