Package com.exasol.adapter.request
Class AdapterTelemetryConfiguration
- java.lang.Object
-
- com.exasol.adapter.request.AdapterTelemetryConfiguration
-
public class AdapterTelemetryConfiguration extends Object
This class represents the telemetry configuration for the adapter, which is determined based on the request properties.
-
-
Field Summary
Fields Modifier and Type Field Description static StringTELEMETRY_PROPERTYName of the adapter property to disable telemetry for the adapter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisTelemetryDisabled()Check if telemetry is enabled for the adapter.static AdapterTelemetryConfigurationparseFromProperties(Map<String,String> properties)Parse the telemetry configuration from the given properties.
-
-
-
Field Detail
-
TELEMETRY_PROPERTY
public static final String TELEMETRY_PROPERTY
Name of the adapter property to disable telemetry for the adapter.- See Also:
- Constant Field Values
-
-
Method Detail
-
parseFromProperties
public static AdapterTelemetryConfiguration parseFromProperties(Map<String,String> properties)
Parse the telemetry configuration from the given properties. If the property is not set, telemetry will be enabled by default.- Parameters:
properties- the properties to parse the telemetry configuration from- Returns:
- the parsed telemetry configuration
-
isTelemetryDisabled
public boolean isTelemetryDisabled()
Check if telemetry is enabled for the adapter.- Returns:
trueif telemetry is disabled for the adapter,falseotherwise
-
-