Beispiel #1
0
 @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();
   }
 }
Beispiel #2
0
 public void output(String filename, byte[] fileContent, boolean append) {
   SchedulerSystem.getLogRepository().storeFile(log, filename, fileContent, append);
   updateLog(log.withFile(filename));
 }
Beispiel #3
0
 protected ExecutionLog createExecutionLog() {
   return ExecutionLog.newExecutionFor(getClassName());
 }