class FailedCheckpointStats extends AbstractCheckpointStats {

	@Override
	public long getEndToEndDuration() {
		return Math.max(0, failureTimestamp - triggerTimestamp);
	}

	  FailedCheckpointStats(
			long checkpointId,
			long triggerTimestamp,
			CheckpointProperties props,
			int totalSubtaskCount,
			Map<JobVertexID, TaskStateStats> taskStats,
			int numAcknowledgedSubtasks,
			long stateSize,
			long failureTimestamp,
			@Nullable SubtaskStateStats latestAcknowledgedSubtask,
			@Nullable Throwable cause);

}