Class NoOpTelemetryClient
- java.lang.Object
-
- net.snowflake.client.jdbc.telemetry.NoOpTelemetryClient
-
-
Constructor Summary
Constructors Constructor Description NoOpTelemetryClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLogToBatch(TelemetryData log)
Attempt to add log to batch, and suppress exceptions thrown in case of failurevoid
close()
Close telemetry connector and send any unsubmitted logsvoid
postProcess(String queryId, String sqlState, int vendorCode, Throwable ex)
A hook for post-processing after sending telemetry data.Future<Boolean>
sendBatchAsync()
Send all cached logs to server
-
-
-
Method Detail
-
addLogToBatch
public void addLogToBatch(TelemetryData log)
Description copied from interface:Telemetry
Attempt to add log to batch, and suppress exceptions thrown in case of failure- Specified by:
addLogToBatch
in interfaceTelemetry
- Parameters:
log
- entry to add
-
close
public void close()
Description copied from interface:Telemetry
Close telemetry connector and send any unsubmitted logs
-
sendBatchAsync
public Future<Boolean> sendBatchAsync()
Description copied from interface:Telemetry
Send all cached logs to server- Specified by:
sendBatchAsync
in interfaceTelemetry
- Returns:
- future indicating whether the logs were sent successfully
-
postProcess
public void postProcess(String queryId, String sqlState, int vendorCode, Throwable ex)
Description copied from interface:Telemetry
A hook for post-processing after sending telemetry data. Can be used, for example, for additional error handling.- Specified by:
postProcess
in interfaceTelemetry
- Parameters:
queryId
- The query idsqlState
- The SQL state as defined in net.snowflake.common.core.SqlStatevendorCode
- The vendor code for localized messagesex
- The throwable that caused this.
-
-