|
|||||||||
| 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
public class CheckpointOperation
A Log Operation that represents a checkpoint.
Loggable,
Serialized Form| Field 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.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundExceptionpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormat
public void doMe(Transaction xact,
LogInstant instant,
LimitObjectInput in)
throws StandardException
doMe in interface Loggablexact - the Transactioninstant - the log instant of this operationin - optional data
StandardException - Standard Derby policy.public ByteArray getPreparedLog()
getPreparedLog in interface Loggablepublic boolean needsRedo(Transaction xact)
needsRedo in interface Loggablexact - The transaction trying to redo this operation
Loggable.releaseResource(org.apache.derby.iapi.store.raw.Transaction)public void releaseResource(Transaction xact)
releaseResource in interface Loggablepublic int group()
group in interface Loggablepublic long redoLWM()
public long undoLWM()
public Formatable getTransactionTable()
public java.lang.String toString()
toString in class java.lang.Object
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||