|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.raw.log.CheckpointOperation
A Log Operation that represents a checkpoint.
Loggable
,
Serialized FormField Summary | |
protected long |
redoLWM
|
protected Formatable |
transactionTable
|
protected long |
undoLWM
|
Fields inherited from interface org.apache.derby.iapi.store.raw.Loggable |
ABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK |
Constructor Summary | |
CheckpointOperation()
|
|
CheckpointOperation(long redoLWM,
long undoLWM,
Formatable ttab)
|
Method Summary | |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected long redoLWM
protected long undoLWM
protected Formatable transactionTable
Constructor Detail |
public CheckpointOperation(long redoLWM, long undoLWM, Formatable ttab)
public CheckpointOperation()
Method Detail |
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException
doMe
in interface Loggable
xact
- the Transactioninstant
- the log instant of this operationin
- optional data
StandardException
- Standard Cloudscape policy.public ByteArray getPreparedLog()
getPreparedLog
in interface Loggable
public boolean needsRedo(Transaction xact)
needsRedo
in interface Loggable
xact
- The transaction trying to redo this operation
Loggable.releaseResource(org.apache.derby.iapi.store.raw.Transaction)
public void releaseResource(Transaction xact)
releaseResource
in interface Loggable
public int group()
group
in interface Loggable
public long redoLWM()
public long undoLWM()
public Formatable getTransactionTable()
public java.lang.String toString()
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |