org.objectweb.cjdbc.controller.recoverylog.events
Class LogRequestEvent

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.recoverylog.events.LogRequestEvent
All Implemented Interfaces:
LogEvent
Direct Known Subclasses:
LogRollbackEvent

public class LogRequestEvent
extends java.lang.Object
implements LogEvent

This class defines a LogRequestEvent to log a request log entry.

Version:
1.0
Author:
Emmanuel Cecchet

Field Summary
protected  LogEntry logEntry
           
 
Constructor Summary
LogRequestEvent(LogEntry entry)
          Creates a new LogRequestEvent object
 
Method Summary
 boolean belongToTransaction(long tid)
          Returns true if this logEvent belongs to the given transaction.
 void execute(LoggerThread loggerThread)
          Called by the LoggerThread to perform the needed operation on the log for this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logEntry

protected LogEntry logEntry
Constructor Detail

LogRequestEvent

public LogRequestEvent(LogEntry entry)
Creates a new LogRequestEvent object

Parameters:
entry - the log entry to use (not null)
Method Detail

belongToTransaction

public boolean belongToTransaction(long tid)
Description copied from interface: LogEvent
Returns true if this logEvent belongs to the given transaction.

Specified by:
belongToTransaction in interface LogEvent
Parameters:
tid - the transaction identifier
Returns:
true if this logEvent belongs to this transaction
See Also:
LogEvent.belongToTransaction(long)

execute

public void execute(LoggerThread loggerThread)
Description copied from interface: LogEvent
Called by the LoggerThread to perform the needed operation on the log for this entry.

Specified by:
execute in interface LogEvent
Parameters:
loggerThread - the logger thread calling this method
See Also:
LogEvent.execute(org.objectweb.cjdbc.controller.recoverylog.LoggerThread)


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.