org.apache.derbyTesting.functionTests.tests.store
Class checkPoint
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
checkPoint
public checkPoint()
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()
Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.