public class BridgeQC extends Object
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BridgeQC.PropertyChecker |
| Constructor and 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 given
OutputStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
checkDatabaseSanity() |
void |
compareAttributes() |
void |
compareDataSources() |
void |
compareFileSizes() |
void |
compareInfo() |
void |
compareLinks() |
void |
initDatabases() |
static void |
main(String[] args) |
static void |
printUsage() |
void |
run() |
static boolean |
safeEquals(Object a,
Object b) |
public BridgeQC(File f1, File f2) throws IDMapperException
f1 - the original Derby@prefix gpml: f2 - the new Derby databaseIDMapperExceptionpublic BridgeQC(File f1, File f2, OutputStream out) throws IDMapperException
OutputStream.f1 - the original Derby databasef2 - the new Derby databaseIDMapperExceptionpublic void initDatabases()
throws IDMapperException
IDMapperExceptionpublic void compareDataSources()
throws IDMapperException
IDMapperExceptionpublic void compareLinks()
throws SQLException
SQLExceptionpublic void checkDatabaseSanity()
throws SQLException
SQLExceptionpublic void compareFileSizes()
throws SQLException
SQLExceptionpublic void compareAttributes()
throws IDMapperException
IDMapperExceptionpublic void compareInfo()
public void run()
throws IDMapperException,
SQLException
IDMapperExceptionSQLExceptionpublic static void printUsage()
public static void main(String[] args) throws IDMapperException, SQLException
args - IDMapperExceptionSQLExceptionCopyright © 2006–2020 BridgeDb project. All rights reserved.