LogControlDescriptorpublic class LogControlDescriptor extends Object implements SerializableA class containing control information relating to an open log file. |
Fields Summary |
---|
static final int | SIZEOFThis constant holds the size of the LogControlDescriptor object. | LogLSN | headLSN | LogLSN | tailLSN | LogLSN | nextLSN |
Constructors Summary |
---|
LogControlDescriptor()Default LogControlDescriptor constructor.
headLSN = new LogLSN();
tailLSN = new LogLSN();
nextLSN = new LogLSN();
| LogControlDescriptor(byte[] bytes, int index)Constructs a LogControlDescriptor from the given byte array.
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 int | toBytes(byte[] bytes, int index)Makes a byte representation of the LogControlDescriptor.
index += headLSN.toBytes(bytes,index);
index += tailLSN.toBytes(bytes,index);
index += nextLSN.toBytes(bytes,index);
return SIZEOF;
| public final java.lang.String | toString()This method is called to direct the object to format its state into a String.
return "LCD(head="/*#Frozen*/+headLSN+",tail="/*#Frozen*/+tailLSN+",next="/*#Frozen*/+nextLSN+")"/*#Frozen*/;
|
|