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 Type
    Method
    Description
    boolean
    Returns whether validate() should throw or log errors.
    void
    setThrowValidateError(boolean what)
    Sets whether validate() should throw or log errors.
    void
    Probe the data connector and conditionally fails if it is not valid and ready for use.
  • Method Details

    • validate

      void validate() throws ValidationException
      Probe the data connector and conditionally fails if it is not valid and ready for use.
      Throws:
      ValidationException - thrown if validation fails and isThrowValidateError() is true
    • setThrowValidateError

      void setThrowValidateError(boolean what)
      Sets whether validate() should throw or log errors.
      Parameters:
      what - whether validate() should throw or log errors
    • isThrowValidateError

      boolean isThrowValidateError()
      Returns whether validate() should throw or log errors.
      Returns:
      whether validate() should throw or log errors