Quadcap Embeddable Database

com.quadcap.sql.file.Logger Interface Reference

Inheritance diagram for com.quadcap.sql.file.Logger:

com.quadcap.sql.file.Logger1 List of all members.

Detailed Description

Author:
Stan Bailes

Definition at line 52 of file Logger.java.

Public Member Functions

void init (Log log, boolean create, Properties props) throws IOException
 Initialization.


Package Functions

void sync () throws IOException
 Make it so.

void checkpoint () throws IOException
 Checkpoint.

void close () throws IOException
 Dismissed.

void reset () throws IOException
 Reset the entire log to be empty.

long getOldestTransaction ()
 Return the id of the oldest active transaction.

int getActiveTransactionCount ()
 Return the number of active transactions.

LongMap getActiveTransactions ()
 Return a map containing the active transaction ids as keys.

void put (LogEntry op) throws IOException
 Write a single op to the buffer.

void setRedoState (LogEntry op, int state) throws IOException
 Set the 'redo' value for the most recently read LogEntry.

LogEntry getLastOp (long t) throws IOException
 Return the last op in the log for the specified transaction.

LogEntry getPrevOp (LogEntry op) throws IOException
 Return the preceding op (of the same transaction).

LogEntry getFirstOp () throws IOException
 Return the first op in the log.

LogEntry getNextOp () throws IOException
 Return the next op.

int getCheckpoint ()
 Return the position of the last checkpoint.

int getEnd ()
 Return the end position of the log buffer.


Member Function Documentation

void com.quadcap.sql.file.Logger.checkpoint  )  throws IOException [package]
 

Checkpoint.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyCheckpoint().

void com.quadcap.sql.file.Logger.close  )  throws IOException [package]
 

Dismissed.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log2.close().

int com.quadcap.sql.file.Logger.getActiveTransactionCount  )  [package]
 

Return the number of active transactions.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.maybeCheckpoint(), and com.quadcap.sql.file.Log1.reallyCheckpoint().

LongMap com.quadcap.sql.file.Logger.getActiveTransactions  )  [package]
 

Return a map containing the active transaction ids as keys.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyCheckpoint().

int com.quadcap.sql.file.Logger.getCheckpoint  )  [package]
 

Return the position of the last checkpoint.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyRestart().

int com.quadcap.sql.file.Logger.getEnd  )  [package]
 

Return the end position of the log buffer.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyRestart().

LogEntry com.quadcap.sql.file.Logger.getFirstOp  )  throws IOException [package]
 

Return the first op in the log.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyRestart(), and com.quadcap.sql.file.Log1.scanLog().

LogEntry com.quadcap.sql.file.Logger.getLastOp long  t  )  throws IOException [package]
 

Return the last op in the log for the specified transaction.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyRollbackStatement(), and com.quadcap.sql.file.Log1.reallyRollbackTransaction().

LogEntry com.quadcap.sql.file.Logger.getNextOp  )  throws IOException [package]
 

Return the next op.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyRestart(), and com.quadcap.sql.file.Log1.scanLog().

long com.quadcap.sql.file.Logger.getOldestTransaction  )  [package]
 

Return the id of the oldest active transaction.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.abortOldestTransaction().

LogEntry com.quadcap.sql.file.Logger.getPrevOp LogEntry  op  )  throws IOException [package]
 

Return the preceding op (of the same transaction).

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyRestart(), com.quadcap.sql.file.Log1.reallyRollbackStatement(), and com.quadcap.sql.file.Log1.reallyRollbackTransaction().

void com.quadcap.sql.file.Logger.init Log  log,
boolean  create,
Properties  props
throws IOException
 

Initialization.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.init().

void com.quadcap.sql.file.Logger.put LogEntry  op  )  throws IOException [package]
 

Write a single op to the buffer.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyAddEntry().

void com.quadcap.sql.file.Logger.reset  )  throws IOException [package]
 

Reset the entire log to be empty.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.abortOldestTransaction(), com.quadcap.sql.file.Log1.reallyCheckpoint(), and com.quadcap.sql.file.Log1.reallyRestart().

void com.quadcap.sql.file.Logger.setRedoState LogEntry  op,
int  state
throws IOException [package]
 

Set the 'redo' value for the most recently read LogEntry.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyRollbackStatement(), and com.quadcap.sql.file.Log1.reallyRollbackTransaction().

void com.quadcap.sql.file.Logger.sync  )  throws IOException [package]
 

Make it so.

Implemented in com.quadcap.sql.file.Logger1.

Referenced by com.quadcap.sql.file.Log1.reallyCheckpoint(), com.quadcap.sql.file.Log1.reallyFlush(), and com.quadcap.sql.file.Log1.reallyRestart().