Class IndexesWithBloatCheckOnCluster

java.lang.Object
io.github.mfvanek.pg.checks.cluster.IndexesWithBloatCheckOnCluster
All Implemented Interfaces:
DatabaseCheckOnCluster<io.github.mfvanek.pg.model.index.IndexWithBloat>, DiagnosticAware, RawTypeAware<io.github.mfvanek.pg.model.index.IndexWithBloat>

public class IndexesWithBloatCheckOnCluster extends Object
Check for indexes bloat on all hosts in the cluster.
Since:
0.6.0
  • Constructor Details

    • IndexesWithBloatCheckOnCluster

      public IndexesWithBloatCheckOnCluster(@Nonnull io.github.mfvanek.pg.connection.HighAvailabilityPgConnection haPgConnection)
  • Method Details

    • getType

      @Nonnull public Class<io.github.mfvanek.pg.model.index.IndexWithBloat> getType()
      Gets original java type.
      Specified by:
      getType in interface RawTypeAware<T extends io.github.mfvanek.pg.model.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<io.github.mfvanek.pg.model.index.IndexWithBloat> check(@Nonnull io.github.mfvanek.pg.model.PgContext pgContext, @Nonnull Predicate<? super io.github.mfvanek.pg.model.index.IndexWithBloat> exclusionsFilter)
      Executes the check in the specified schema.
      Specified by:
      check in interface DatabaseCheckOnCluster<T extends io.github.mfvanek.pg.model.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:
      • PgContext
    • doBeforeExecuteOnHost

      protected void doBeforeExecuteOnHost(@Nonnull io.github.mfvanek.pg.connection.PgConnection connectionToHost)