public class CheckpointOperation extends java.lang.Object implements Loggable
Loggable,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected long |
redoLWM |
protected Formatable |
transactionTable |
protected long |
undoLWM |
ABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK| Constructor and Description |
|---|
CheckpointOperation() |
CheckpointOperation(long redoLWM,
long undoLWM,
Formatable ttab) |
| Modifier and Type | Method and Description |
|---|---|
void |
doMe(Transaction xact,
LogInstant instant,
LimitObjectInput in)
Nothing to do unless we are rollforward recovery;
Redoing of checkpoints during rollforward recovery allows us to restart
the roll-forward recovery from the last checkpoint redone during rollforward recovery, if
we happen to crash during the roll-forward recovery process.
|
ByteArray |
getPreparedLog()
the default for prepared log is always null for all the operations
that don't have optionalData.
|
Formatable |
getTransactionTable() |
int |
getTypeFormatId()
Return my format identifier.
|
int |
group()
Checkpoint is a raw store operation
|
boolean |
needsRedo(Transaction xact)
Checkpoint does not need to be redone unless
we are doing rollforward recovery.
|
void |
readExternal(java.io.ObjectInput in) |
long |
redoLWM()
Access attributes of the checkpoint record
|
void |
releaseResource(Transaction xact)
Checkpoint has not resource to release
|
java.lang.String |
toString()
DEBUG: Print self.
|
long |
undoLWM() |
void |
writeExternal(java.io.ObjectOutput out) |
protected long redoLWM
protected long undoLWM
protected Formatable transactionTable
public CheckpointOperation(long redoLWM,
long undoLWM,
Formatable ttab)
public CheckpointOperation()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException
doMe in interface Loggablexact - the Transactioninstant - the log instant of this operationin - optional dataStandardException - Standard Derby policy.public ByteArray getPreparedLog()
getPreparedLog in interface Loggablepublic boolean needsRedo(Transaction xact)
needsRedo in interface Loggablexact - The transaction trying to redo this operationLoggable.releaseResource(org.apache.derby.iapi.store.raw.Transaction)public void releaseResource(Transaction xact)
releaseResource in interface Loggablepublic int group()
public long redoLWM()
public long undoLWM()
public Formatable getTransactionTable()
public java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.