Class SQLConnectionChecker
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.core.impl.checker.SQLConnectionChecker
- All Implemented Interfaces:
ItemChecker
,LogEnabled
,Serviceable
Checks that a sql connection can be established with the provided values
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
check
(String url, String login, String password, ServiceManager manager) Check the sql connection infovoid
Checks the validity of the parameters.void
service
(ServiceManager manager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
SQLConnectionChecker
public SQLConnectionChecker()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
-
check
public static void check(String url, String login, String password, ServiceManager manager) throws ItemCheckerTestFailureException Check the sql connection info- Parameters:
url
- The sql urllogin
- The db loginpassword
- The db passwordmanager
- The service manager- Throws:
ItemCheckerTestFailureException
- If an error occurred
-
check
Description copied from interface:ItemChecker
Checks the validity of the parameters.- Specified by:
check
in interfaceItemChecker
- Parameters:
values
- the values to test- Throws:
ItemCheckerTestFailureException
- if the test failed
-