Package org.bridgedb.tools.qc
Class BridgeQC
- java.lang.Object
-
- org.bridgedb.tools.qc.BridgeQC
-
public class BridgeQC extends Object
Utility to do simple quality control on a BridgeDerby database. Run with two parameters: [old database] and [new database] Some basic comparisons will be done, which serves as a sanity check that not suddenly a whole identifier system has gone missing.The script produces a report on STDOUT (configurable), lines starting with "INFO" are strictly informative, whereas lines starting with "WARNING" are problems worth investigating further. Ideally there are no "WARNING" lines in the report.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBridgeQC.PropertyChecker
-
Constructor Summary
Constructors Constructor Description BridgeQC(File f1, File f2)Compares two Derby databases and reports the output to STDOUT.BridgeQC(File f1, File f2, OutputStream out)Compares two Derby databases and reports the output to the givenOutputStream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckDatabaseSanity()voidcompareAttributes()voidcompareDataSources()voidcompareFileSizes()voidcompareInfo()voidcompareLinks()voidinitDatabases()static voidmain(String[] args)static voidprintUsage()voidrun()static booleansafeEquals(Object a, Object b)
-
-
-
Constructor Detail
-
BridgeQC
public BridgeQC(File f1, File f2) throws IDMapperException
Compares two Derby databases and reports the output to STDOUT.- Parameters:
f1- the original Derby@prefix gpml: databasef2- the new Derby database- Throws:
IDMapperException
-
BridgeQC
public BridgeQC(File f1, File f2, OutputStream out) throws IDMapperException
Compares two Derby databases and reports the output to the givenOutputStream.- Parameters:
f1- the original Derby databasef2- the new Derby database- Throws:
IDMapperException
-
-
Method Detail
-
initDatabases
public void initDatabases() throws IDMapperException- Throws:
IDMapperException
-
compareDataSources
public void compareDataSources() throws IDMapperException- Throws:
IDMapperException
-
compareLinks
public void compareLinks() throws SQLException- Throws:
SQLException
-
checkDatabaseSanity
public void checkDatabaseSanity() throws SQLException- Throws:
SQLException
-
compareFileSizes
public void compareFileSizes() throws SQLException- Throws:
SQLException
-
compareAttributes
public void compareAttributes() throws IDMapperException- Throws:
IDMapperException
-
compareInfo
public void compareInfo()
-
run
public void run() throws IDMapperException, SQLException- Throws:
IDMapperExceptionSQLException
-
printUsage
public static void printUsage()
-
main
public static void main(String[] args) throws IDMapperException, SQLException
- Parameters:
args-- Throws:
IDMapperExceptionSQLException
-
-