java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat, Loggable, Undoablepublic class EncryptContainerOperation extends java.lang.Object implements Undoable
Undoable,
Serialized Form| Format ID | LOGOP_ENCRYPT_CONTAINER the formatId is written by FormatIdOutputStream when this object is written out by writeObject |
| Purpose | |
| to record enctyption of container with a new encryption key. | |
| Upgrade | |
| Disk Layout | containerId(ContainerKey) the id of the container this operation applies to |
| Modifier and Type | Field | Description |
|---|---|---|
private ContainerKey |
containerId |
ABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK| Modifier | Constructor | Description |
|---|---|---|
|
EncryptContainerOperation() |
|
protected |
EncryptContainerOperation(RawContainerHandle hdl) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doMe(Transaction tran,
LogInstant instant,
LimitObjectInput in) |
Containers are not encryped on a redo.
|
Compensation |
generateUndo(Transaction tran,
LimitObjectInput in) |
Generate a Compensation (EncryptContainerUndoOperation) that
will rollback the changes made to the container during container
encryption.
|
ByteArray |
getPreparedLog() |
the default for prepared log is always null for all the operations
that don't have optionalData.
|
int |
getTypeFormatId() |
Return my format identifier.
|
int |
group() |
A space operation is a RAWSTORE log record
|
boolean |
needsRedo(Transaction xact) |
Check if this operation needs to be redone during recovery redo.
|
void |
readExternal(java.io.ObjectInput in) |
|
void |
releaseResource(Transaction tran) |
Release any resource that was acquired for doMe for rollback or
recovery redo.
|
java.lang.String |
toString() |
debug
|
void |
undoMe(Transaction tran) |
Undo of encrytpion of the container.
|
void |
writeExternal(java.io.ObjectOutput out) |
private ContainerKey containerId
protected EncryptContainerOperation(RawContainerHandle hdl) throws StandardException
StandardExceptionpublic EncryptContainerOperation()
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 ByteArray getPreparedLog()
getPreparedLog in interface Loggablepublic void releaseResource(Transaction tran)
LoggablereleaseResource in interface Loggablepublic int group()
public boolean needsRedo(Transaction xact) throws StandardException
needsRedo in interface Loggablexact - the transaction that is doing the rollbackStandardException - Standard Derby error policyLoggable.releaseResource(org.apache.derby.iapi.store.raw.Transaction)public int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic final void doMe(Transaction tran, LogInstant instant, LimitObjectInput in) throws StandardException
doMe in interface Loggabletran - transaction doing the operation.instant - log instant for this operation.in - unused by this log operation.StandardException - Standard Derby error policypublic void undoMe(Transaction tran) throws StandardException
tran - the transaction that is undoing this operationStandardException - Standard Derby error policypublic Compensation generateUndo(Transaction tran, LimitObjectInput in) throws StandardException
generateUndo in interface Undoabletran - the transaction doing the compensatingin - optional input; not used by this operation.StandardException - Standard Derby error policyLoggable.releaseResource(org.apache.derby.iapi.store.raw.Transaction),
Loggable.needsRedo(org.apache.derby.iapi.store.raw.Transaction)public java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.