Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"headers": {
"CamelInfluxDB2MeasurementName": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of measurement", "constantName": "org.apache.camel.component.influxdb2.InfluxDb2Constants#MEASUREMENT" },
"camelInfluxDB.RetentionPolicy": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The string that defines the retention policy to the data created by the endpoint", "constantName": "org.apache.camel.component.influxdb2.InfluxDb2Constants#RETENTION_POLICY" },
"camelInfluxDB.RetentionPolicy": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": true, "deprecationNote": "Never read by the component: the InfluxDB 2.x write API has no retention policy, retention is a property of the bucket", "autowired": false, "secret": false, "description": "The string that defines the retention policy to the data created by the endpoint. Deprecation note: Never read by the component: the InfluxDB 2.x write API has no retention policy, retention is a property of the bucket", "constantName": "org.apache.camel.component.influxdb2.InfluxDb2Constants#RETENTION_POLICY" },
"CamelInfluxDB2WritePrecision": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "com.influxdb.client.domain.WritePrecision", "enum": [ "ms", "s", "us", "ns" ], "deprecated": false, "autowired": false, "secret": false, "description": "InfluxDb Write precision.", "constantName": "org.apache.camel.component.influxdb2.InfluxDb2Constants#WRITE_PRECISION" }
},
"bodyTypes": {
Expand All @@ -44,7 +44,7 @@
"bucket": { "index": 3, "kind": "parameter", "displayName": "Bucket", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the bucket where the time series will be stored." },
"operation": { "index": 4, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.influxdb2.enums.Operation", "enum": [ "INSERT", "PING" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "INSERT", "description": "Define if this operation is an insert or a ping." },
"org": { "index": 5, "kind": "parameter", "displayName": "Org", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the organization where the time series will be stored." },
"retentionPolicy": { "index": 6, "kind": "parameter", "displayName": "Retention Policy", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "default", "description": "Define the retention policy to the data created by the endpoint." },
"retentionPolicy": { "index": 6, "kind": "parameter", "displayName": "Retention Policy", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": true, "deprecationNote": "Never read by the component: the InfluxDB 2.x write API has no retention policy, retention is a property of the bucket", "autowired": false, "secret": false, "defaultValue": "default", "description": "Define the retention policy to the data created by the endpoint. Deprecation note: Never read by the component: the InfluxDB 2.x write API has no retention policy, retention is a property of the bucket" },
"writePrecision": { "index": 7, "kind": "parameter", "displayName": "Write Precision", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "com.influxdb.client.domain.WritePrecision", "enum": [ "ms", "s", "us", "ns" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "ms", "description": "The format or precision of time series timestamps." },
"lazyStartProducer": { "index": 8, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing." }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"headers": {
"CamelInfluxDB2MeasurementName": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of measurement", "constantName": "org.apache.camel.component.influxdb2.InfluxDb2Constants#MEASUREMENT" },
"camelInfluxDB.RetentionPolicy": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The string that defines the retention policy to the data created by the endpoint", "constantName": "org.apache.camel.component.influxdb2.InfluxDb2Constants#RETENTION_POLICY" },
"camelInfluxDB.RetentionPolicy": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": true, "deprecationNote": "Never read by the component: the InfluxDB 2.x write API has no retention policy, retention is a property of the bucket", "autowired": false, "secret": false, "description": "The string that defines the retention policy to the data created by the endpoint. Deprecation note: Never read by the component: the InfluxDB 2.x write API has no retention policy, retention is a property of the bucket", "constantName": "org.apache.camel.component.influxdb2.InfluxDb2Constants#RETENTION_POLICY" },
"CamelInfluxDB2WritePrecision": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "com.influxdb.client.domain.WritePrecision", "enum": [ "ms", "s", "us", "ns" ], "deprecated": false, "autowired": false, "secret": false, "description": "InfluxDb Write precision.", "constantName": "org.apache.camel.component.influxdb2.InfluxDb2Constants#WRITE_PRECISION" }
},
"bodyTypes": {
Expand All @@ -44,7 +44,7 @@
"bucket": { "index": 3, "kind": "parameter", "displayName": "Bucket", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the bucket where the time series will be stored." },
"operation": { "index": 4, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.influxdb2.enums.Operation", "enum": [ "INSERT", "PING" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "INSERT", "description": "Define if this operation is an insert or a ping." },
"org": { "index": 5, "kind": "parameter", "displayName": "Org", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the organization where the time series will be stored." },
"retentionPolicy": { "index": 6, "kind": "parameter", "displayName": "Retention Policy", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "default", "description": "Define the retention policy to the data created by the endpoint." },
"retentionPolicy": { "index": 6, "kind": "parameter", "displayName": "Retention Policy", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": true, "deprecationNote": "Never read by the component: the InfluxDB 2.x write API has no retention policy, retention is a property of the bucket", "autowired": false, "secret": false, "defaultValue": "default", "description": "Define the retention policy to the data created by the endpoint. Deprecation note: Never read by the component: the InfluxDB 2.x write API has no retention policy, retention is a property of the bucket" },
"writePrecision": { "index": 7, "kind": "parameter", "displayName": "Write Precision", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "com.influxdb.client.domain.WritePrecision", "enum": [ "ms", "s", "us", "ns" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "ms", "description": "The format or precision of time series timestamps." },
"lazyStartProducer": { "index": 8, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing." }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ public final class InfluxDb2Constants {
@Metadata(description = "The name of measurement", javaType = "String")
public static final String MEASUREMENT = "CamelInfluxDB2MeasurementName";
@Metadata(description = "The string that defines the retention policy to the data created by the endpoint",
javaType = "String")
javaType = "String",
deprecationNote = "Never read by the component: the InfluxDB 2.x write API has no retention policy,"
+ " retention is a property of the bucket")
@Deprecated
public static final String RETENTION_POLICY = "camelInfluxDB.RetentionPolicy";
public static final String ORG = "CamelInfluxDB2Org";
public static final String BUCKET = "CamelInfluxDB2Bucket";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public class InfluxDb2Endpoint extends DefaultEndpoint {
@Metadata(required = true, description = "The name of the bucket where the time series will be stored.")
private String bucket;
@UriParam(defaultValue = "default", description = "Define the retention policy to the data created by the endpoint.")
@Metadata(deprecationNote = "Never read by the component: the InfluxDB 2.x write API has no retention policy,"
+ " retention is a property of the bucket")
@Deprecated
private String retentionPolicy = "default";
Comment thread
davsclaus marked this conversation as resolved.
Resolved
Comment thread
davsclaus marked this conversation as resolved.
Resolved

@UriParam(defaultValue = "INSERT", description = "Define if this operation is an insert or a ping.")
Expand Down Expand Up @@ -134,10 +137,20 @@ public void setBucket(String bucket) {
this.bucket = bucket;
}

/**
* @deprecated Never read by the component: the InfluxDB 2.x write API has no retention policy, retention is a
* property of the bucket
*/
@Deprecated
public String getRetentionPolicy() {
return retentionPolicy;
}

/**
* @deprecated Never read by the component: the InfluxDB 2.x write API has no retention policy, retention is a
* property of the bucket
*/
@Deprecated
public void setRetentionPolicy(String retentionPolicy) {
this.retentionPolicy = retentionPolicy;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8211,3 +8211,14 @@ not pass a language on; a language header alone turns OCR on, unless the endpoin

The language itself is passed to docling untouched, in both forms: it is docling's own identifier (language codes such
as `en,de`, BCP-47 tags such as `iso:zh-Hant`, or `script/Latin`), and docling validates it.

=== camel-influxdb2 - the retentionPolicy option and the camelInfluxDB.RetentionPolicy header are deprecated

Neither has ever had any effect. A retention policy is an InfluxDB 1.x concept: its write API takes one per write, and
`camel-influxdb` passes it there. The InfluxDB 2.x write API that this component calls does not -- retention is a
property of the bucket -- so `InfluxDb2Producer` never reads the option or the header, and both were carried over from
`camel-influxdb` along with the header's 1.x spelling, `camelInfluxDB.RetentionPolicy`.

Both are now deprecated with a note that says so. Remove `retentionPolicy` from the endpoint URI and stop setting the
header: they are silently ignored. To control how long the data is kept, set the retention period on the bucket the
endpoint writes to.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ default InfluxDb2EndpointBuilder org(String org) {
}
/**
* Define the retention policy to the data created by the endpoint.
* Deprecation note: Never read by the component: the InfluxDB 2.x write
* API has no retention policy, retention is a property of the bucket.
*
* The option is a: <code>java.lang.String</code> type.
*
Expand All @@ -181,6 +183,7 @@ default InfluxDb2EndpointBuilder org(String org) {
* @param retentionPolicy the value to set
* @return the dsl builder
*/
@Deprecated
default InfluxDb2EndpointBuilder retentionPolicy(String retentionPolicy) {
doSetProperty("retentionPolicy", retentionPolicy);
return this;
Expand Down Expand Up @@ -359,14 +362,17 @@ public String influxDB2MeasurementName() {
}
/**
* The string that defines the retention policy to the data created by
* the endpoint.
* the endpoint. Deprecation note: Never read by the component: the
* InfluxDB 2.x write API has no retention policy, retention is a
* property of the bucket.
*
* The option is a: {@code String} type.
*
* Group: producer
*
* @return the name of the header {@code InfluxDB.RetentionPolicy}.
*/
@Deprecated
public String influxdbRetentionpolicy() {
return "camelInfluxDB.RetentionPolicy";
}
Expand Down