io.deephaven.engine.tablelogger.EngineTableLoggers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-engine-table Show documentation
Show all versions of deephaven-engine-table Show documentation
Engine Table: Implementation and closely-coupled utilities
package io.deephaven.engine.tablelogger;
/**
* Provides the factory for providing engine table loggers.
*/
public class EngineTableLoggers {
private EngineTableLoggers() {}
private static Factory factory = Factory.Noop.INSTANCE;
public static Factory get() {
return factory;
}
public static void set(final Factory factory) {
EngineTableLoggers.factory = factory;
}
public interface Factory {
ProcessInfoLogLogger processInfoLogLogger();
ProcessMetricsLogLogger processMetricsLogLogger();
QueryOperationPerformanceLogLogger queryOperationPerformanceLogLogger();
QueryPerformanceLogLogger queryPerformanceLogLogger();
ServerStateLogLogger serverStateLogLogger();
UpdatePerformanceLogLogger updatePerformanceLogLogger();
enum Noop implements Factory {
INSTANCE;
@Override
public ProcessInfoLogLogger processInfoLogLogger() {
return ProcessInfoLogLogger.Noop.INSTANCE;
}
@Override
public ProcessMetricsLogLogger processMetricsLogLogger() {
return ProcessMetricsLogLogger.Noop.INSTANCE;
}
@Override
public QueryOperationPerformanceLogLogger queryOperationPerformanceLogLogger() {
return QueryOperationPerformanceLogLogger.Noop.INSTANCE;
}
@Override
public QueryPerformanceLogLogger queryPerformanceLogLogger() {
return QueryPerformanceLogLogger.Noop.INSTANCE;
}
@Override
public ServerStateLogLogger serverStateLogLogger() {
return ServerStateLogLogger.Noop.INSTANCE;
}
@Override
public UpdatePerformanceLogLogger updatePerformanceLogLogger() {
return UpdatePerformanceLogLogger.Noop.INSTANCE;
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy