public abstract class IntegrityCheck extends java.lang.Object implements ICConstants
| Modifier and Type | Field and Description |
|---|---|
protected DatabaseInformation |
di
Link to the database, include a connection object.
|
protected ReportCollector |
rc |
protected ValidateLogger |
vl |
IC_ALLREPAIRS, IC_CANCEL, IC_CHECK, IC_CHECKDONE, IC_NOTAPPLY, IC_REPAIR, IC_REPORT, IC_TENANT| Constructor and Description |
|---|
IntegrityCheck(DatabaseInformation di,
ReportCollector reportCollector)
Constructor takes the object where to report problems.
|
IntegrityCheck(DatabaseInformation di,
ReportCollector reportCollector,
ValidateLogger validateLogger) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
check()
Override this to perform the check.
|
abstract boolean |
conditionsCheck()
Should this test be run?
This is for things like preMerlin or DB2 only checks.
|
void |
doCheck()
Perform this check.
|
abstract MXException |
getTitle()
Returns an MXException that tells the user what is being checked now.
|
abstract boolean |
prerequisitesCheck()
Can this test be run now?
This is for things like loading the meta data, or having valid data in the
MaxAttribute table.
|
protected void |
reportProblem(Report report)
Called by sub-classes to report problems.
|
protected DatabaseInformation di
protected ReportCollector rc
protected ValidateLogger vl
public IntegrityCheck(DatabaseInformation di, ReportCollector reportCollector)
di - This object has information about the database.reportCollector - Where to report problems.public IntegrityCheck(DatabaseInformation di, ReportCollector reportCollector, ValidateLogger validateLogger)
protected void reportProblem(Report report) throws java.lang.Exception
report - java.lang.Exceptionpublic abstract MXException getTitle()
public abstract boolean conditionsCheck()
throws java.lang.Exception
mdi - java.sql.SQLExceptionjava.lang.Exceptionpublic abstract boolean prerequisitesCheck()
mdi - public final void doCheck()
throws java.lang.Exception
mdi - java.lang.Exceptioncalled first,
called second,
only called if the first two return true.protected abstract void check()
throws java.lang.Exception
java.lang.ExceptionProblems are reported to the report collector.