Class DBCheck
- java.lang.Object
-
- org.nuxeo.launcher.config.backingservices.DBCheck
-
- All Implemented Interfaces:
BackingChecker
public class DBCheck extends Object implements BackingChecker
- Since:
- 9.2
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>DB_EXCLUDE_CHECK_LIST
-
Constructor Summary
Constructors Constructor Description DBCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(ConfigurationGenerator cg)Test if the check has to be done for the given configuration.voidcheck(ConfigurationGenerator cg)Test the availbilty of the backing service.voidcheckDatabaseConnection(ConfigurationGenerator cg)Check driver availability and database connection
-
-
-
Field Detail
-
DB_EXCLUDE_CHECK_LIST
public static final List<String> DB_EXCLUDE_CHECK_LIST
-
-
Constructor Detail
-
DBCheck
public DBCheck()
-
-
Method Detail
-
accepts
public boolean accepts(ConfigurationGenerator cg)
Description copied from interface:BackingCheckerTest if the check has to be done for the given configuration.- Specified by:
acceptsin interfaceBackingChecker- Parameters:
cg- The current configuration- Returns:
- true if
BackingChecker.check(ConfigurationGenerator)has to be called.
-
check
public void check(ConfigurationGenerator cg) throws ConfigurationException
Description copied from interface:BackingCheckerTest the availbilty of the backing service.- Specified by:
checkin interfaceBackingChecker- Parameters:
cg- The current configuration- Throws:
ConfigurationException- if backing service is not available.
-
checkDatabaseConnection
public void checkDatabaseConnection(ConfigurationGenerator cg) throws FileNotFoundException, IOException, DatabaseDriverException, SQLException
Check driver availability and database connection
-
-