Class TablesWithoutDescriptionCheckOnCluster

java.lang.Object
io.github.mfvanek.pg.checks.cluster.TablesWithoutDescriptionCheckOnCluster
All Implemented Interfaces:
DatabaseCheckOnCluster<Table>, DiagnosticAware, RawTypeAware<Table>

public class TablesWithoutDescriptionCheckOnCluster extends Object
Check for tables without description on all hosts in the cluster.
Since:
0.6.0
  • Constructor Details

    • TablesWithoutDescriptionCheckOnCluster

      public TablesWithoutDescriptionCheckOnCluster(@Nonnull HighAvailabilityPgConnection haPgConnection)
  • Method Details

    • getType

      @Nonnull public Class<Table> getType()
      Gets original java type.
      Specified by:
      getType in interface RawTypeAware<T extends DbObject>
      Returns:
      java type representing database object
    • getDiagnostic

      @Nonnull public final Diagnostic getDiagnostic()
      Gets the diagnostic - a rule related to the check.
      Specified by:
      getDiagnostic in interface DiagnosticAware
      Returns:
      diagnostic
      See Also:
    • check

      @Nonnull public final List<Table> check(@Nonnull PgContext pgContext, @Nonnull Predicate<? super Table> exclusionsFilter)
      Executes the check in the specified schema.
      Specified by:
      check in interface DatabaseCheckOnCluster<T extends DbObject>
      Parameters:
      pgContext - check's context with the specified schema
      exclusionsFilter - predicate to filter out unnecessary results
      Returns:
      list of deviations from the specified rule
      See Also:
    • doBeforeExecuteOnHost

      protected void doBeforeExecuteOnHost(@Nonnull PgConnection connectionToHost)