1 23 24 package org.objectweb.cjdbc.controller.recoverylog.events; 25 26 import java.sql.SQLException ; 27 28 import org.objectweb.cjdbc.common.i18n.Translate; 29 import org.objectweb.cjdbc.common.log.Trace; 30 import org.objectweb.cjdbc.controller.recoverylog.LoggerThread; 31 32 39 public class LogRollbackEvent extends LogRequestEvent 40 { 41 47 public LogRollbackEvent(LogEntry entry) 48 { 49 super(entry); 50 } 51 52 55 public void execute(LoggerThread loggerThread) 56 { 57 Trace logger = loggerThread.getLogger(); 58 59 try 62 { 63 if (!loggerThread.getRecoveryLog().isRecovering()) 64 { 65 loggerThread.removeRollbackedTransaction(logEntry.getId()); 66 return; 67 } 68 } 69 catch (SQLException e) 70 { 71 loggerThread.invalidateLogStatements(); 72 logger.error(Translate.get("recovery.jdbc.loggerthread.log.failed", 73 new String []{"rollback", String.valueOf(logEntry.getTid())}), e); 74 loggerThread.putBackAtHeadOfQueue(this); 76 } 77 78 super.execute(loggerThread); 80 } 81 82 } 83 | Popular Tags |