|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.appconsistency.db.DatabaseChecker
public class DatabaseChecker
Constructor Summary | |
---|---|
DatabaseChecker()
|
Method Summary | |
---|---|
(package private) void |
addCheck(DatabaseCheck check)
Registers a DatabaseCheck, adding to the end of the existing list of checks. |
void |
checkDatabase()
Check if there are problems with the configuration of the database such that it shouldn't be used. |
DatabaseCheck |
getFailedCheck()
Returns the first check that failed or null if none failed. |
String |
getFaultDescription()
|
String |
getFaultType()
|
static DatabaseChecker |
getInstance()
|
boolean |
isDatabaseOk()
Returns the current stored value of the result of the database checks if they have been run. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
DatabaseChecker()
Method Detail |
---|
public static DatabaseChecker getInstance()
public boolean isDatabaseOk()
public DatabaseCheck getFailedCheck()
public String getFaultDescription()
public String getFaultType()
void addCheck(DatabaseCheck check)
check
- database checkpublic void checkDatabase()
DatabaseChecks
.
The execution of checks stops at the first failure.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |