org.objectweb.cjdbc.controller.recoverylog.events
Class ResetLogEvent
java.lang.Object
org.objectweb.cjdbc.controller.recoverylog.events.ResetLogEvent
- All Implemented Interfaces:
- LogEvent
- public class ResetLogEvent
- extends java.lang.Object
- implements LogEvent
This class defines a ResetLogEvent to reset the log
- Version:
- 1.0
- Author:
- Emmanuel Cecchet
Constructor Summary |
ResetLogEvent(long oldCheckpointId,
long newCheckpointId,
java.lang.String checkpointName)
Creates a new ResetLogEvent 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 |
oldId
private long oldId
newId
private long newId
checkpointName
private java.lang.String checkpointName
ResetLogEvent
public ResetLogEvent(long oldCheckpointId,
long newCheckpointId,
java.lang.String checkpointName)
- Creates a new
ResetLogEvent
object
- Parameters:
oldCheckpointId
- the old id of the checkpointnewCheckpointId
- the new checkpoint identifiercheckpointName
- the checkpoint name to delete from.
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.