|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
LogScan provides methods to read a log record and get its LogInstant in an already defined scan. A logscan also needs to know how to advance to the next log record.
Method Summary | |
void |
close()
Close this log scan. |
long |
getInstant()
Get the instant of the record just retrieved with getNextRecord(). |
LogInstant |
getLogInstant()
Get the LogInstant for the record just retrieved with getNextRecord(). |
long |
getLogRecordEnd()
Get the log instant that is right after the record just retrieved with getNextRecord(). |
LogRecord |
getNextRecord(ArrayInputStream input,
TransactionId tranId,
int groupmask)
Get the next record in the scan and place its data in the passed in array. |
boolean |
isLogEndFuzzy()
|
void |
resetPosition(LogInstant instant)
Reset the scan to the given LogInstant so that getNextRecord get the log record AFTER the given LogInstant. |
Method Detail |
public LogRecord getNextRecord(ArrayInputStream input, TransactionId tranId, int groupmask) throws StandardException, java.io.IOException
input
- the ArrayInputStream to put the log recordtranId
- if non-null, only log record that equals tranId
will be returned. If null, log records are not
filtered on transaction Id.groupmask
- if non-zero, only log record whose Loggable's group
value is included in the groupmask is returned.
groupmask can be a bit wise OR of many Loggable
groups. If zero, log records are not filtered on
the Loggable's group.
StandardException
- Standard Clooudscape error policy
java.io.IOException
- Some I/O exception raised during reading
the log record.public long getInstant()
public long getLogRecordEnd()
public boolean isLogEndFuzzy()
public LogInstant getLogInstant()
public void resetPosition(LogInstant instant) throws java.io.IOException, StandardException
instant
- the log instant to reset to
java.io.IOException
- Some I/O exception raised when accessing
the log file
StandardException
- reset to illegal position or beyond the
limit of the scan.public void close()
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |