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