Class AbstractHealthLogger
java.lang.Object
io.github.mfvanek.pg.common.health.logger.AbstractHealthLogger
- All Implemented Interfaces:
HealthLogger
- Direct Known Subclasses:
KeyValueFileHealthLogger
,StandardHealthLogger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractHealthLogger
(ConnectionCredentials credentials, HighAvailabilityPgConnectionFactory connectionFactory, Function<HighAvailabilityPgConnection, DatabaseChecks> databaseChecksFactory) -
Method Summary
Modifier and TypeMethodDescriptionlogAll
(Exclusions exclusions, PgContext pgContext) Logs indexes and tables health with given exclusions in given schema.protected abstract String
writeToLog
(LoggingKey key, int value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.mfvanek.pg.common.health.logger.HealthLogger
logAll
-
Constructor Details
-
AbstractHealthLogger
protected AbstractHealthLogger(@Nonnull ConnectionCredentials credentials, @Nonnull HighAvailabilityPgConnectionFactory connectionFactory, @Nonnull Function<HighAvailabilityPgConnection, DatabaseChecks> databaseChecksFactory)
-
-
Method Details
-
logAll
@Nonnull public final List<String> logAll(@Nonnull Exclusions exclusions, @Nonnull PgContext pgContext) Logs indexes and tables health with given exclusions in given schema.- Specified by:
logAll
in interfaceHealthLogger
- Parameters:
exclusions
-Exclusions
pgContext
-PgContext
- Returns:
- results of logging health indexes
-
writeToLog
-