Interface Validator
- All Known Implementing Classes:
ConnectionFactoryValidator
,DataSourceValidator
,NonFailFastValidator
public interface Validator
Used to determine whether a Data Connector initialized properly and continues to be fit for use.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whethervalidate()
should throw or log errors.void
setThrowValidateError
(boolean what) Sets whethervalidate()
should throw or log errors.void
validate()
Probe the data connector and conditionally fails if it is not valid and ready for use.
-
Method Details
-
validate
Probe the data connector and conditionally fails if it is not valid and ready for use.- Throws:
ValidationException
- thrown if validation fails andisThrowValidateError()
is true
-
setThrowValidateError
void setThrowValidateError(boolean what) Sets whethervalidate()
should throw or log errors.- Parameters:
what
- whethervalidate()
should throw or log errors
-
isThrowValidateError
boolean isThrowValidateError()Returns whethervalidate()
should throw or log errors.- Returns:
- whether
validate()
should throw or log errors
-