FileDocCategorySizeDatePackage
LogRecordEnding.javaAPI DocGlassfish v2 API4758Fri May 04 22:36:38 BST 2007com.sun.jts.CosTransactions

LogRecordEnding

public class LogRecordEnding extends Object implements Serializable
A class containing ending information for a log record.
version
0.01
author
Simon Holdsworth, IBM Corporation
see
LogHandle

Fields Summary
static final int
SIZEOF
This constant holds the size of the LogRecordEnding object.
LogLSN
currentLSN
The log record ending contains the current LSN.
Constructors Summary
LogRecordEnding()
Default LogRecordEnding constructor.

param
return
see


              
     
    
LogRecordEnding(byte[] bytes, int index)
Constructs a LogReocrdEnding from the given byte array.

param
bytes The array of bytes from which the object is to be constructed.
param
index The index in the array where copy is to start.
return
see

        currentLSN = new LogLSN(bytes,index);
    
Methods Summary
final inttoBytes(byte[] bytes, int index)
Makes a byte representation of the LogRecordEnding.

param
bytes The array of bytes into which the object is to be copied.
param
index The index in the array where copy is to start.
return
Number of bytes copied.
see

        currentLSN.toBytes(bytes,index);

        return SIZEOF;
    
public final java.lang.StringtoString()
This method is called to direct the object to format its state to a String.

param
return
The formatted representation of the object.
see

        return "LRE(curr="/*#Frozen*/+currentLSN+")"/*#Frozen*/;