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 boolean
accepts(ConfigurationGenerator cg)
Test if the check has to be done for the given configuration.void
check(ConfigurationGenerator cg)
Test the availbilty of the backing service.void
checkDatabaseConnection(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:BackingChecker
Test if the check has to be done for the given configuration.- Specified by:
accepts
in 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:BackingChecker
Test the availbilty of the backing service.- Specified by:
check
in 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
-
-