TaskUsage toTaskUsage(JobIdImpl jobId) { TaskId taskId = TaskIdImpl.createTaskId(jobId, getTaskName(), getId().getTaskId()); return new TaskUsage( taskId.value(), getTaskName(), getStartTime(), getFinishedTime(), getExecutionDuration(), getParallelEnvironment() == null ? 1 : getParallelEnvironment().getNodesNumber()); }
public TaskLoggerRelativePathGenerator(TaskId taskId) { this.fileName = LOG_FILE_PREFIX + "-" + taskId.getJobId() + "-" + taskId.value() + ".log"; this.relativePath = taskId.getJobId().toString() + "/" + fileName; }