}
}
@Override
public JobLog getActiveJobLog(PlatformLayerKey jobKey, String executionId) {
ActiveJobExecution activeJobExecution = activeJobs.get(jobKey);
if (activeJobExecution != null) {
SimpleJobLogger logger = (SimpleJobLogger) activeJobExecution.getLogger();
JobLog log = new JobLog();
log.lines = Lists.newArrayList(logger.getLogEntries());
log.execution = activeJobExecution.getJobExecution();
return log;
}
return null;
}