Interface InfluxDBClientKotlin

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public interface InfluxDBClientKotlin
     implements Closeable
                        

    The reference Kotlin client that allows query and write for the InfluxDB 2.x by Kotlin Channel coroutines.

    Author:

    Jakub Bednar (bednar@github) (07/02/2019 13:11)

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • health

        @Deprecated(message = "This method is obsolete. Use `ping()` or `version()`", replaceWith = @ReplaceWith(imports = {}, expression = "ping()")) abstract HealthCheck health()

        Get the health of an instance.

        Returns:

        health of an instance

      • ping

        @Nonnull() abstract Boolean ping()

        Check the status of InfluxDB Server.

        Returns:

        true if server is healthy otherwise return false

      • version

        @Nonnull() abstract String version()

        Returns the version of the connected InfluxDB Server.

        Returns:

        the version String, otherwise unknown.

      • getLogLevel

         abstract LogLevel getLogLevel()

        Gets the LogLevel that is used for logging requests and responses.

        Returns:

        the LogLevel that is used for logging requests and responses

      • setLogLevel

         abstract InfluxDBClientKotlin setLogLevel(LogLevel logLevel)

        Sets the log level for the request and response information.

        Parameters:
        logLevel - the log level to set.
        Returns:

        the InfluxDBClientKotlin instance to be able to use it in a fluent manner.

      • enableGzip

         abstract InfluxDBClientKotlin enableGzip()

        Enable Gzip compress for http requests.

        Currently only the "Write" and "Query" endpoints supports the Gzip compression.

        Returns:

        the InfluxDBClientKotlin instance to be able to use it in a fluent manner.

      • isGzipEnabled

         abstract Boolean isGzipEnabled()

        Returns whether Gzip compress for http request body is enabled.

        Returns:

        true if gzip is enabled.

      • close

         abstract Unit close()

        Shutdown and close the client.