| java.lang.Object org.apache.derby.impl.store.raw.data.EncryptContainerOperation
EncryptContainerOperation | public class EncryptContainerOperation implements Undoable(Code) | | Log operation to encrypt a container with a new encryption key or to encrypt
an unencrypted container while configuring the database for
encryption. Container is synced to the disk when encryption is
is successfull, there is nothing to do on a redo. If there is crash/error
while configuring a database for encryption; original version of the
container is put backup during undo.
author: Suresh Thalamati See Also: Undoable |
EncryptContainerOperation | public EncryptContainerOperation()(Code) | | |
doMe | final public void doMe(Transaction tran, LogInstant instant, LimitObjectInput in) throws StandardException(Code) | | Containers are not encryped on a redo. Nothing to do in this method.
Parameters: tran - transaction doing the operation. Parameters: instant - log instant for this operation. Parameters: in - unused by this log operation. exception: StandardException - Standard Cloudscape error policy |
generateUndo | public Compensation generateUndo(Transaction tran, LimitObjectInput in) throws StandardException(Code) | | Generate a Compensation (EncryptContainerUndoOperation) that
will rollback the changes made to the container during container
encryption.
Parameters: tran - the transaction doing the compensating Parameters: in - optional input; not used by this operation. exception: StandardException - Standard Cloudscape error policy |
getPreparedLog | public ByteArray getPreparedLog()(Code) | | the default for prepared log is always null for all the operations
that don't have optionalData. If an operation has optional data,
the operation need to prepare the optional data for this method.
Encrypt Operation has no optional data to write out
|
getTypeFormatId | public int getTypeFormatId()(Code) | | Return my format identifier.
|
group | public int group()(Code) | | A space operation is a RAWSTORE log record
|
needsRedo | public boolean needsRedo(Transaction xact) throws StandardException(Code) | | Check if this operation needs to be redone during recovery redo.
Returns true if this op should be redone during recovery redo,
Parameters: xact - the transaction that is doing the rollback true, if this operation needs to be redone during recovery. exception: StandardException - Standard Derby error policy |
undoMe | public void undoMe(Transaction tran) throws StandardException(Code) | | Undo of encrytpion of the container. Original version of the container
that existed before the start of the database encryption is put back.
Parameters: tran - the transaction that is undoing this operation exception: StandardException - Standard Cloudscape error policy |
|
|