| Modifier and Type | Field and Description |
|---|---|
| protected transient RawContainerHandle | |
| protected ContainerKey | |
| private long | |
| private transient boolean |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected RawContainerHandle | |
| protected RawContainerHandle | findContainerForRedoRecovery(RawTransaction tran)
Subclass (e.g., ContainerOperation) that wishes to do something abou missing container in load tran should override this method to return the recreated container |
| public ByteArray | getPreparedLog()
Implements org. the default for prepared log is always null for all the operations that don't have optionalData. |
| public int | group()
Implements org. A space operation is a RAWSTORE log record |
| public boolean | needsRedo(Transaction
The transaction trying to redo this operation xact)Implements org. Determine if the operation should be reapplied in recovery redo. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public void | releaseResource(Transaction tran)
Implements org. Release any resource that was acquired for doMe for rollback or recovery redo. |
| public String | |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| containerHdl | back to summary |
|---|---|
| protected transient RawContainerHandle containerHdl | |
| containerId | back to summary |
|---|---|
| protected ContainerKey containerId | |
| containerVersion | back to summary |
|---|---|
| private long containerVersion | |
| foundHere | back to summary |
|---|---|
| private transient boolean foundHere | |
| ContainerBasicOperation | back to summary |
|---|---|
| protected ContainerBasicOperation(RawContainerHandle hdl) throws StandardException | |
| ContainerBasicOperation | back to summary |
|---|---|
| public ContainerBasicOperation() | |
| findContainer | back to summary |
|---|---|
| protected RawContainerHandle findContainer(Transaction tran) throws StandardException Open the container with this segmentId and containerId. This method should only be called if the container has already been created.
| |
| findContainerForRedoRecovery | back to summary |
|---|---|
| protected RawContainerHandle findContainerForRedoRecovery(RawTransaction tran) throws StandardException Subclass (e.g., ContainerOperation) that wishes to do something abou missing container in load tran should override this method to return the recreated container
| |
| getPreparedLog | back to summary |
|---|---|
| public ByteArray getPreparedLog() Implements org. 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. Space Operation has no optional data to write out | |
| group | back to summary |
|---|---|
| public int group() Implements org. A space operation is a RAWSTORE log record | |
| needsRedo | back to summary |
|---|---|
| public boolean needsRedo(Transaction xact) throws StandardException Implements org. Doc from org. Determine if the operation should be reapplied in recovery redo. If redo is needed, acquire any resource that is necessary for the loggable's doMe method. These need to be released in the releaseResource method. The sequence of events in recovery redo of a Loggable operation is:
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| releaseResource | back to summary |
|---|---|
| public void releaseResource(Transaction tran) Implements org. Doc from org. Release any resource that was acquired for doMe for rollback or recovery redo. This resource is acquired in either generateUndo (if this is a compensation operation during run time rollback or recovery rollback) or in needsRedo (if this is during recovery redo). The run time transaction context should have all the resource already acquird for run time roll forward, so there is no need to releaseResource during run time roll forward. This method must be safe to be called multiple times. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |