Class AbstractHealthLogger
- java.lang.Object
-
- io.github.mfvanek.pg.common.health.logger.AbstractHealthLogger
-
- All Implemented Interfaces:
HealthLogger
- Direct Known Subclasses:
SimpleHealthLogger
public abstract class AbstractHealthLogger extends java.lang.Object implements HealthLogger
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractHealthLogger(ConnectionCredentials credentials, HighAvailabilityPgConnectionFactory connectionFactory, DatabaseHealthFactory databaseHealthFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
logAll(Exclusions exclusions, PgContext pgContext)
Logs indexes and tables health with given exclusions in given schema.protected abstract java.lang.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 Detail
-
AbstractHealthLogger
protected AbstractHealthLogger(@Nonnull ConnectionCredentials credentials, @Nonnull HighAvailabilityPgConnectionFactory connectionFactory, @Nonnull DatabaseHealthFactory databaseHealthFactory)
-
-
Method Detail
-
logAll
@Nonnull public final java.util.List<java.lang.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
protected abstract java.lang.String writeToLog(@Nonnull LoggingKey key, int value)
-
-