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

LogControlDescriptor

public class LogControlDescriptor extends Object implements Serializable
A class containing control information relating to an open log file.
version
0.01
author
Simon Holdsworth, IBM Corporation
see
LogHandle

Fields Summary
static final int
SIZEOF
This constant holds the size of the LogControlDescriptor object.
LogLSN
headLSN
LogLSN
tailLSN
LogLSN
nextLSN
Constructors Summary
LogControlDescriptor()
Default LogControlDescriptor constructor.

param
return
see


              
     
        headLSN = new LogLSN();
        tailLSN = new LogLSN();
        nextLSN = new LogLSN();
    
LogControlDescriptor(byte[] bytes, int index)
Constructs a LogControlDescriptor 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

        headLSN = new LogLSN(bytes,index);  index += LogLSN.SIZEOF;
        tailLSN = new LogLSN(bytes,index);  index += LogLSN.SIZEOF;
        nextLSN = new LogLSN(bytes,index);  index += LogLSN.SIZEOF;
    
Methods Summary
final inttoBytes(byte[] bytes, int index)
Makes a byte representation of the LogControlDescriptor.

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

        index += headLSN.toBytes(bytes,index);
        index += tailLSN.toBytes(bytes,index);
        index += nextLSN.toBytes(bytes,index);

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

param
return
The formatted representation of the object.
see

        return "LCD(head="/*#Frozen*/+headLSN+",tail="/*#Frozen*/+tailLSN+",next="/*#Frozen*/+nextLSN+")"/*#Frozen*/;