@Override public final void run() { log = createExecutionLog(); SchedulerSystem.getLogRepository().newExecution(log); try { innerAtomicRun(); updateLog(log.withSuccess()); } catch (Throwable t) { t.printStackTrace(); updateLog(log.withError(t)); } finally { resetLoggers(); Authenticate.unmock(); } }
public void output(String filename, byte[] fileContent, boolean append) { SchedulerSystem.getLogRepository().storeFile(log, filename, fileContent, append); updateLog(log.withFile(filename)); }
protected ExecutionLog createExecutionLog() { return ExecutionLog.newExecutionFor(getClassName()); }