Class SnowflakeTelemetryChannelCreation
- java.lang.Object
-
- com.snowflake.kafka.connector.internal.telemetry.SnowflakeTelemetryBasicInfo
-
- com.snowflake.kafka.connector.internal.streaming.telemetry.SnowflakeTelemetryChannelCreation
-
public class SnowflakeTelemetryChannelCreation extends SnowflakeTelemetryBasicInfo
This object is sent only once when a channel starts. No concurrent modification is made on this object, thus no lock is required.
-
-
Field Summary
-
Fields inherited from class com.snowflake.kafka.connector.internal.telemetry.SnowflakeTelemetryBasicInfo
LOGGER, tableName, telemetryType
-
-
Constructor Summary
Constructors Constructor Description SnowflakeTelemetryChannelCreation(String tableName, String channelName, long startTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddumpTo(net.snowflake.client.jdbc.internal.fasterxml.jackson.databind.node.ObjectNode msg)Adds the required fields into the given ObjectNode which will then be used as payload in Telemetry APIbooleanisEmpty()voidsetReuseTable(boolean reuseTable)
-
-
-
Method Detail
-
dumpTo
public void dumpTo(net.snowflake.client.jdbc.internal.fasterxml.jackson.databind.node.ObjectNode msg)
Description copied from class:SnowflakeTelemetryBasicInfoAdds the required fields into the given ObjectNode which will then be used as payload in Telemetry API- Specified by:
dumpToin classSnowflakeTelemetryBasicInfo- Parameters:
msg- ObjectNode in which extra fields needs to be added.
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin classSnowflakeTelemetryBasicInfo- Returns:
- true if it would suggest that their was no update to corresponding implementation's member variables. Or, in other words, the corresponding partition didnt receive any records, in which case we would not call telemetry API.
-
setReuseTable
public void setReuseTable(boolean reuseTable)
-
-