/** * Checks whether the specified failure message indicates that the worker failed with an INVALID_TASK status. * @param failureMessage The message to be tested * @return Whether the message indicates that the task status was INVALID_TASK */ private static boolean isInvalidTask(final String failureMessage) { return (failureMessage != null) && (failureMessage.contains(TaskStatus.INVALID_TASK.name())); }
failure.failureId= taskStatus.toString(); failure.failureTime = new Date(); failure.failureSource = getWorkerName(tm);
if (TaskStatus.isSuccessfulResponse(responseMessage.getTaskStatus())) { stats.incrementTasksSucceeded(); } else {