All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.snowflake.client.jdbc.diagnostic.DiagnosticCheck Maven / Gradle / Ivy

There is a newer version: 3.21.0
Show newest version
package net.snowflake.client.jdbc.diagnostic;

import net.snowflake.client.log.SFLogger;
import net.snowflake.client.log.SFLoggerFactory;

abstract class DiagnosticCheck {
  protected final String name;
  protected final ProxyConfig proxyConf;
  private static final SFLogger logger = SFLoggerFactory.getLogger(DiagnosticCheck.class);

  abstract void doCheck(SnowflakeEndpoint snowflakeEndpoint);

  final void run(SnowflakeEndpoint snowflakeEndpoint) {
    logger.info("JDBC Diagnostics - {}: hostname: {}", this.name, snowflakeEndpoint.getHost());
    doCheck(snowflakeEndpoint);
  }

  protected DiagnosticCheck(String name, ProxyConfig proxyConf) {
    this.name = name;
    this.proxyConf = proxyConf;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy