1 22 23 package org.continuent.sequoia.controller.virtualdatabase.protocol; 24 25 import java.io.Serializable ; 26 27 import org.continuent.hedera.common.Member; 28 import org.continuent.sequoia.controller.recoverylog.events.LogEntry; 29 import org.continuent.sequoia.controller.virtualdatabase.DistributedVirtualDatabase; 30 31 41 public class CopyLogEntry extends DistributedVirtualDatabaseMessage 42 { 43 private static final long serialVersionUID = 1L; 44 45 private LogEntry entry; 46 47 52 public CopyLogEntry(LogEntry entry) 53 { 54 this.entry = entry; 55 } 56 57 62 public LogEntry getEntry() 63 { 64 return entry; 65 } 66 67 71 public Object handleMessageSingleThreaded(DistributedVirtualDatabase dvdb, 72 Member sender) 73 { 74 if (!dvdb.hasRecoveryLog()) 75 { 76 dvdb.getLogger().warn( 77 "Tentative CopyLogEntry on vdb with no recovery log"); 78 return null; 79 } 80 81 dvdb.getRequestManager().getRecoveryLog().logLogEntry(entry); 82 return null; 83 } 84 85 89 public Serializable handleMessageMultiThreaded( 90 DistributedVirtualDatabase dvdb, Member sender, 91 Object handleMessageSingleThreadedResult) 92 { 93 return null; 94 } 95 } 96 | Popular Tags |