Quadcap Embeddable Database

com.quadcap.sql.file.Log2 Class Reference

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

com.quadcap.sql.file.Log1 com.quadcap.sql.file.Log List of all members.

Detailed Description

Interface to logging subsystem.

Author:
Stan Bailes

Definition at line 56 of file Log2.java.

Public Member Functions

void init (Datafile db, boolean create, Properties props) throws IOException
 Initialize the logging subsystem.

void start ()
 Start the logging subsystem.

void addEntry (LogEntry entry) throws IOException
 Add a transaction's log record to the end of the open log file.

void reallyAddEntry (LogEntry entry) throws IOException
 XXX why public?

void close () throws IOException
 Flush and close the log file.

void flushLog () throws IOException
 Flush all log records to disk.

void checkpoint () throws IOException
 Perform a checkpoint operation.

void sync () throws IOException
 Wait for all queued ops to be processed by the log sync thread.

void rollbackTransaction (Transaction trans) throws IOException
 Transaction rollback.

void rollbackStatement (Transaction trans, int stmtId) throws IOException
 Statement rollback.

void restart () throws Exception
 Restart from a previous state.


Member Function Documentation

void com.quadcap.sql.file.Log2.addEntry LogEntry  entry  )  throws IOException
 

Add a transaction's log record to the end of the open log file.

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 75 of file Log2.java.

References com.quadcap.sql.file.Log2.addEntry().

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

void com.quadcap.sql.file.Log2.checkpoint  )  throws IOException
 

Perform a checkpoint operation.

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 114 of file Log2.java.

References com.quadcap.sql.file.Log1.reallyCheckpoint().

void com.quadcap.sql.file.Log2.close  )  throws IOException
 

Flush and close the log file.

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 93 of file Log2.java.

References com.quadcap.sql.file.Logger.close(), and com.quadcap.sql.file.Log1.reallyClose().

void com.quadcap.sql.file.Log2.flushLog  )  throws IOException
 

Flush all log records to disk.

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 104 of file Log2.java.

References com.quadcap.sql.file.Log1.maybeCheckpoint(), and com.quadcap.sql.file.Log1.reallyFlush().

void com.quadcap.sql.file.Log2.init Datafile  db,
boolean  create,
Properties  props
throws IOException
 

Initialize the logging subsystem.

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 61 of file Log2.java.

References com.quadcap.sql.file.Log2.init().

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

void com.quadcap.sql.file.Log2.reallyAddEntry LogEntry  entry  )  throws IOException
 

XXX why public?

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 84 of file Log2.java.

References com.quadcap.sql.file.Log2.reallyAddEntry().

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

void com.quadcap.sql.file.Log2.restart  )  throws Exception
 

Restart from a previous state.

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 160 of file Log2.java.

References com.quadcap.sql.file.Log1.reallyRestart().

void com.quadcap.sql.file.Log2.rollbackStatement Transaction  trans,
int  stmtId
throws IOException
 

Statement rollback.

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 145 of file Log2.java.

References com.quadcap.sql.file.Log2.rollbackStatement().

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

void com.quadcap.sql.file.Log2.rollbackTransaction Transaction  trans  )  throws IOException
 

Transaction rollback.

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 132 of file Log2.java.

References com.quadcap.sql.file.Log2.rollbackTransaction().

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

void com.quadcap.sql.file.Log2.start  ) 
 

Start the logging subsystem.

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 70 of file Log2.java.

void com.quadcap.sql.file.Log2.sync  )  throws IOException
 

Wait for all queued ops to be processed by the log sync thread.

Reimplemented from com.quadcap.sql.file.Log1.

Definition at line 123 of file Log2.java.