org.apache.derbyTesting.functionTests.tests.store
Class checkPoint

java.lang.Object
  extended by org.apache.derbyTesting.functionTests.tests.store.checkPoint

public class checkPoint
extends java.lang.Object

Test to make sure checkpoint or occuring as expected. Check is done by looking at the timestamp for "log.ctrl" file, If modified time is more than what it was in the last lookup means , we know that checkpoint occured. Other thing that is counted is in this program is number of log switches.


Field Summary
private static java.io.File dbDir
           
private static java.lang.String derbyHome
           
private static long lastCheckPointTime
           
private static java.io.File logControlFile
           
private static java.io.File logDir
           
 
Constructor Summary
checkPoint()
           
 
Method Summary
private static boolean checkpointOccured()
           
private static void dumpSQLExceptions(java.sql.SQLException se)
           
static void main(java.lang.String[] args)
           
private static int numberOfLogFiles()
           
private static void setupAllTestFiles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

derbyHome

private static java.lang.String derbyHome

dbDir

private static java.io.File dbDir

logDir

private static java.io.File logDir

logControlFile

private static java.io.File logControlFile

lastCheckPointTime

private static long lastCheckPointTime
Constructor Detail

checkPoint

public checkPoint()
Method Detail

main

public static void main(java.lang.String[] args)

dumpSQLExceptions

private static void dumpSQLExceptions(java.sql.SQLException se)

setupAllTestFiles

private static void setupAllTestFiles()

checkpointOccured

private static boolean checkpointOccured()

numberOfLogFiles

private static int numberOfLogFiles()

Built on Sat 2009-11-28 18:44:18-0800, from revision 885187

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.