1 22 23 package org.continuent.sequoia.controller.recoverylog.events; 24 25 import java.sql.SQLException ; 26 27 import org.continuent.sequoia.controller.recoverylog.LoggerThread; 28 29 37 public class StoreCheckpointWithLogIdEvent implements LogEvent 38 { 39 private long checkpointId; 40 private String checkpointName; 41 42 48 public StoreCheckpointWithLogIdEvent(String checkpointName, long checkpointId) 49 { 50 this.checkpointId = checkpointId; 51 this.checkpointName = checkpointName; 52 } 53 54 57 public boolean belongToTransaction(long tid) 58 { 59 return false; 60 } 61 62 65 public void execute(LoggerThread loggerThread) 66 { 67 try 68 { 69 loggerThread.storeCheckpointWithLogId(checkpointName, checkpointId); 70 } 71 catch (SQLException e) 72 { 73 loggerThread.putBackAtHeadOfQueue(this, e); 76 } 77 } 78 79 82 public String toString() 83 { 84 return "Storing checkpoint " + checkpointName + " with id " + checkpointId; 85 } 86 87 } 88 | Popular Tags |