Skip to content

Commit 0836ad0

Browse files
committed
spring-cloudGH-475: Add some missed nested props for apps
Fixes spring-cloud#475 * Fix JDBC props for limited listed number of them
1 parent 546eb0b commit 0836ad0

File tree

31 files changed

+257
-97
lines changed

31 files changed

+257
-97
lines changed

Diff for: applications/processor/aggregator-processor/README.adoc

+55-28
Original file line numberDiff line numberDiff line change
@@ -30,48 +30,30 @@ $$release$$:: $$SpEL expression for release strategy. Default is based on the se
3030

3131
=== spring.data.mongodb
3232

33+
$$additional-hosts$$:: $$Additional server hosts. Cannot be set with URI or if 'host' is not specified. Additional hosts will use the default mongo port of 27017. If you want to use a different port you can use the "host:port" syntax.$$ *($$List<String>$$, default: `$$<none>$$`)*
3334
$$authentication-database$$:: $$Authentication database name.$$ *($$String$$, default: `$$<none>$$`)*
3435
$$auto-index-creation$$:: $$Whether to enable auto-index creation.$$ *($$Boolean$$, default: `$$<none>$$`)*
3536
$$database$$:: $$Database name.$$ *($$String$$, default: `$$<none>$$`)*
3637
$$field-naming-strategy$$:: $$Fully qualified name of the FieldNamingStrategy to use.$$ *($$Class<?>$$, default: `$$<none>$$`)*
37-
$$grid-fs-database$$:: $$<documentation missing>$$ *($$String$$, default: `$$<none>$$`)*
3838
$$host$$:: $$Mongo server host. Cannot be set with URI.$$ *($$String$$, default: `$$<none>$$`)*
3939
$$password$$:: $$Login password of the mongo server. Cannot be set with URI.$$ *($$Character[]$$, default: `$$<none>$$`)*
4040
$$port$$:: $$Mongo server port. Cannot be set with URI.$$ *($$Integer$$, default: `$$<none>$$`)*
4141
$$replica-set-name$$:: $$Required replica set name for the cluster. Cannot be set with URI.$$ *($$String$$, default: `$$<none>$$`)*
42-
$$uri$$:: $$Mongo database URI. Cannot be set with host, port, credentials and replica set name.$$ *($$String$$, default: `$$mongodb://localhost/test$$`)*
42+
$$uri$$:: $$Mongo database URI. Overrides host, port, username, password, and database.$$ *($$String$$, default: `$$mongodb://localhost/test$$`)*
4343
$$username$$:: $$Login user of the mongo server. Cannot be set with URI.$$ *($$String$$, default: `$$<none>$$`)*
4444
$$uuid-representation$$:: $$Representation to use when converting a UUID to a BSON binary value.$$ *($$UuidRepresentation$$, default: `$$java-legacy$$`, possible values: `UNSPECIFIED`,`STANDARD`,`C_SHARP_LEGACY`,`JAVA_LEGACY`,`PYTHON_LEGACY`)*
4545

46-
=== spring.datasource
46+
=== spring.data.mongodb.gridfs
4747

48-
$$continue-on-error$$:: $$Whether to stop if an error occurs while initializing the database.$$ *($$Boolean$$, default: `$$false$$`)*
49-
$$data$$:: $$Data (DML) script resource references.$$ *($$List<String>$$, default: `$$<none>$$`)*
50-
$$data-password$$:: $$Password of the database to execute DML scripts (if different).$$ *($$String$$, default: `$$<none>$$`)*
51-
$$data-username$$:: $$Username of the database to execute DML scripts (if different).$$ *($$String$$, default: `$$<none>$$`)*
52-
$$driver-class-name$$:: $$Fully qualified name of the JDBC driver. Auto-detected based on the URL by default.$$ *($$String$$, default: `$$<none>$$`)*
53-
$$embedded-database-connection$$:: $$Connection details for an embedded database. Defaults to the most suitable embedded database that is available on the classpath.$$ *($$EmbeddedDatabaseConnection$$, default: `$$<none>$$`, possible values: `NONE`,`H2`,`DERBY`,`HSQL`,`HSQLDB`)*
54-
$$generate-unique-name$$:: $$Whether to generate a random datasource name.$$ *($$Boolean$$, default: `$$true$$`)*
55-
$$initialization-mode$$:: $$Mode to apply when determining if DataSource initialization should be performed using the available DDL and DML scripts.$$ *($$DataSourceInitializationMode$$, default: `$$embedded$$`, possible values: `ALWAYS`,`EMBEDDED`,`NEVER`)*
56-
$$jndi-name$$:: $$JNDI location of the datasource. Class, url, username and password are ignored when set.$$ *($$String$$, default: `$$<none>$$`)*
57-
$$name$$:: $$Datasource name to use if "generate-unique-name" is false. Defaults to "testdb" when using an embedded database, otherwise null.$$ *($$String$$, default: `$$<none>$$`)*
58-
$$password$$:: $$Login password of the database.$$ *($$String$$, default: `$$<none>$$`)*
59-
$$platform$$:: $$Platform to use in the DDL or DML scripts (such as schema-${platform}.sql or data-${platform}.sql).$$ *($$String$$, default: `$$all$$`)*
60-
$$schema$$:: $$Schema (DDL) script resource references.$$ *($$List<String>$$, default: `$$<none>$$`)*
61-
$$schema-password$$:: $$Password of the database to execute DDL scripts (if different).$$ *($$String$$, default: `$$<none>$$`)*
62-
$$schema-username$$:: $$Username of the database to execute DDL scripts (if different).$$ *($$String$$, default: `$$<none>$$`)*
63-
$$separator$$:: $$Statement separator in SQL initialization scripts.$$ *($$String$$, default: `$$;$$`)*
64-
$$sql-script-encoding$$:: $$SQL scripts encoding.$$ *($$Charset$$, default: `$$<none>$$`)*
65-
$$type$$:: $$Fully qualified name of the connection pool implementation to use. By default, it is auto-detected from the classpath.$$ *($$Class<DataSource>$$, default: `$$<none>$$`)*
66-
$$url$$:: $$JDBC URL of the database.$$ *($$String$$, default: `$$<none>$$`)*
67-
$$username$$:: $$Login username of the database.$$ *($$String$$, default: `$$<none>$$`)*
48+
$$bucket$$:: $$GridFS bucket name.$$ *($$String$$, default: `$$<none>$$`)*
49+
$$database$$:: $$GridFS database name.$$ *($$String$$, default: `$$<none>$$`)*
6850

69-
=== spring.mongodb.embedded
51+
=== spring.data.mongodb.ssl
7052

71-
$$features$$:: $$Comma-separated list of features to enable. Uses the defaults of the configured version by default.$$ *($$Set<Feature>$$, default: `$$[sync_delay]$$`)*
72-
$$version$$:: $$Version of Mongo to use.$$ *($$String$$, default: `$$3.5.5$$`)*
53+
$$bundle$$:: $$SSL bundle name.$$ *($$String$$, default: `$$<none>$$`)*
54+
$$enabled$$:: $$Whether to enable SSL support. Enabled automatically if "bundle" is provided unless specified otherwise.$$ *($$Boolean$$, default: `$$<none>$$`)*
7355

74-
=== spring.redis
56+
=== spring.data.redis
7557

7658
$$client-name$$:: $$Client name to be set on connections with CLIENT SETNAME.$$ *($$String$$, default: `$$<none>$$`)*
7759
$$client-type$$:: $$Type of client to use. By default, auto-detected according to the classpath.$$ *($$ClientType$$, default: `$$<none>$$`, possible values: `LETTUCE`,`JEDIS`)*
@@ -80,10 +62,55 @@ $$database$$:: $$Database index used by the connection factory.$$ *($$Integer$$,
8062
$$host$$:: $$Redis server host.$$ *($$String$$, default: `$$localhost$$`)*
8163
$$password$$:: $$Login password of the redis server.$$ *($$String$$, default: `$$<none>$$`)*
8264
$$port$$:: $$Redis server port.$$ *($$Integer$$, default: `$$6379$$`)*
83-
$$ssl$$:: $$Whether to enable SSL support.$$ *($$Boolean$$, default: `$$false$$`)*
8465
$$timeout$$:: $$Read timeout.$$ *($$Duration$$, default: `$$<none>$$`)*
8566
$$url$$:: $$Connection URL. Overrides host, port, and password. User is ignored. Example: redis://user:[email protected]:6379$$ *($$String$$, default: `$$<none>$$`)*
8667
$$username$$:: $$Login username of the redis server.$$ *($$String$$, default: `$$<none>$$`)*
68+
69+
=== spring.data.redis.cluster
70+
71+
$$max-redirects$$:: $$Maximum number of redirects to follow when executing commands across the cluster.$$ *($$Integer$$, default: `$$<none>$$`)*
72+
$$nodes$$:: $$Comma-separated list of "host:port" pairs to bootstrap from. This represents an "initial" list of cluster nodes and is required to have at least one entry.$$ *($$List<String>$$, default: `$$<none>$$`)*
73+
74+
=== spring.data.redis.jedis.pool
75+
76+
$$enabled$$:: $$Whether to enable the pool. Enabled automatically if "commons-pool2" is available. With Jedis, pooling is implicitly enabled in sentinel mode and this setting only applies to single node setup.$$ *($$Boolean$$, default: `$$<none>$$`)*
77+
$$max-active$$:: $$Maximum number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.$$ *($$Integer$$, default: `$$8$$`)*
78+
$$max-idle$$:: $$Maximum number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.$$ *($$Integer$$, default: `$$8$$`)*
79+
$$max-wait$$:: $$Maximum amount of time a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.$$ *($$Duration$$, default: `$$-1ms$$`)*
80+
$$min-idle$$:: $$Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if both it and time between eviction runs are positive.$$ *($$Integer$$, default: `$$0$$`)*
81+
$$time-between-eviction-runs$$:: $$Time between runs of the idle object evictor thread. When positive, the idle object evictor thread starts, otherwise no idle object eviction is performed.$$ *($$Duration$$, default: `$$<none>$$`)*
82+
83+
=== spring.data.redis.lettuce.pool
84+
85+
$$enabled$$:: $$Whether to enable the pool. Enabled automatically if "commons-pool2" is available. With Jedis, pooling is implicitly enabled in sentinel mode and this setting only applies to single node setup.$$ *($$Boolean$$, default: `$$<none>$$`)*
86+
$$max-active$$:: $$Maximum number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.$$ *($$Integer$$, default: `$$8$$`)*
87+
$$max-idle$$:: $$Maximum number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.$$ *($$Integer$$, default: `$$8$$`)*
88+
$$max-wait$$:: $$Maximum amount of time a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.$$ *($$Duration$$, default: `$$-1ms$$`)*
89+
$$min-idle$$:: $$Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if both it and time between eviction runs are positive.$$ *($$Integer$$, default: `$$0$$`)*
90+
$$time-between-eviction-runs$$:: $$Time between runs of the idle object evictor thread. When positive, the idle object evictor thread starts, otherwise no idle object eviction is performed.$$ *($$Duration$$, default: `$$<none>$$`)*
91+
92+
=== spring.data.redis.lettuce
93+
94+
$$shutdown-timeout$$:: $$Shutdown timeout.$$ *($$Duration$$, default: `$$100ms$$`)*
95+
96+
=== spring.data.redis.sentinel
97+
98+
$$master$$:: $$Name of the Redis server.$$ *($$String$$, default: `$$<none>$$`)*
99+
$$nodes$$:: $$Comma-separated list of "host:port" pairs.$$ *($$List<String>$$, default: `$$<none>$$`)*
100+
$$password$$:: $$Password for authenticating with sentinel(s).$$ *($$String$$, default: `$$<none>$$`)*
101+
$$username$$:: $$Login username for authenticating with sentinel(s).$$ *($$String$$, default: `$$<none>$$`)*
102+
103+
=== spring.data.redis.ssl
104+
105+
$$bundle$$:: $$SSL bundle name.$$ *($$String$$, default: `$$<none>$$`)*
106+
$$enabled$$:: $$Whether to enable SSL support. Enabled automatically if "bundle" is provided unless specified otherwise.$$ *($$Boolean$$, default: `$$<none>$$`)*
107+
108+
=== spring.datasource
109+
110+
$$driver-class-name$$:: $$Fully qualified name of the JDBC driver. Auto-detected based on the URL by default.$$ *($$String$$, default: `$$<none>$$`)*
111+
$$password$$:: $$Login password of the database.$$ *($$String$$, default: `$$<none>$$`)*
112+
$$url$$:: $$JDBC URL of the database.$$ *($$String$$, default: `$$<none>$$`)*
113+
$$username$$:: $$Login username of the database.$$ *($$String$$, default: `$$<none>$$`)*
87114
//end::configuration-properties[]
88115

89116
//end::ref-doc[]

Diff for: applications/processor/aggregator-processor/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323

2424
<build>
2525
<plugins>
26+
<plugin>
27+
<groupId>org.springframework.cloud</groupId>
28+
<artifactId>spring-cloud-dataflow-apps-docs-plugin</artifactId>
29+
</plugin>
2630
<plugin>
2731
<groupId>org.springframework.cloud</groupId>
2832
<artifactId>spring-cloud-dataflow-apps-generator-plugin</artifactId>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
configuration-properties.classes=org.springframework.cloud.fn.aggregator.AggregatorFunctionProperties,\
22
org.springframework.boot.autoconfigure.mongo.MongoProperties,\
3+
org.springframework.boot.autoconfigure.mongo.MongoProperties$Ssl,\
4+
org.springframework.boot.autoconfigure.mongo.MongoProperties$Gridfs, \
35
org.springframework.boot.autoconfigure.data.redis.RedisProperties,\
4-
org.springframework.boot.autoconfigure.jdbc.DataSourceProperties
6+
org.springframework.boot.autoconfigure.data.redis.RedisProperties$Sentinel,\
7+
org.springframework.boot.autoconfigure.data.redis.RedisProperties$Cluster,\
8+
org.springframework.boot.autoconfigure.data.redis.RedisProperties$Ssl,\
9+
org.springframework.boot.autoconfigure.data.redis.RedisProperties$Jedis,\
10+
org.springframework.boot.autoconfigure.data.redis.RedisProperties$Lettuce,\
11+
org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool
12+
configuration-properties.names=\
13+
spring.datasource.url,\
14+
spring.datasource.driver-class-name,\
15+
spring.datasource.username,\
16+
spring.datasource.password

Diff for: applications/processor/bridge-processor/README.adoc.tmp

-11
This file was deleted.

Diff for: applications/sink/cassandra-sink/README.adoc

+64-10
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,70 @@ The **$$cassandra$$** $$sink$$ has the following options:
1414

1515

1616
//tag::configuration-properties[]
17-
$$spring.cassandra.compression$$:: $$Compression supported by the Cassandra binary protocol.$$ *($$Compression$$, default: `$$none$$`, possible values: `LZ4`,`SNAPPY`,`NONE`)*
18-
$$spring.cassandra.config$$:: $$Location of the configuration file to use.$$ *($$Resource$$, default: `$$<none>$$`)*
19-
$$spring.cassandra.contact-points$$:: $$Cluster node addresses in the form 'host:port', or a simple 'host' to use the configured port.$$ *($$List<String>$$, default: `$$[127.0.0.1:9042]$$`)*
20-
$$spring.cassandra.keyspace-name$$:: $$Keyspace name to use.$$ *($$String$$, default: `$$<none>$$`)*
21-
$$spring.cassandra.local-datacenter$$:: $$Datacenter that is considered "local". Contact points should be from this datacenter.$$ *($$String$$, default: `$$<none>$$`)*
22-
$$spring.cassandra.password$$:: $$Login password of the server.$$ *($$String$$, default: `$$<none>$$`)*
23-
$$spring.cassandra.port$$:: $$Port to use if a contact point does not specify one.$$ *($$Integer$$, default: `$$9042$$`)*
24-
$$spring.cassandra.schema-action$$:: $$Schema action to take at startup.$$ *($$String$$, default: `$$none$$`)*
25-
$$spring.cassandra.session-name$$:: $$Name of the Cassandra session.$$ *($$String$$, default: `$$<none>$$`)*
26-
$$spring.cassandra.username$$:: $$Login user of the server.$$ *($$String$$, default: `$$<none>$$`)*
17+
Properties grouped by prefix:
18+
19+
20+
=== cassandra.cluster
21+
22+
$$create-keyspace$$:: $$Flag to create (or not) keyspace on application startup.$$ *($$Boolean$$, default: `$$false$$`)*
23+
$$entity-base-packages$$:: $$Base packages to scan for entities annotated with Table annotations.$$ *($$String[]$$, default: `$$[]$$`)*
24+
$$init-script$$:: $$Resource with CQL scripts (delimited by ';') to initialize keyspace schema.$$ *($$Resource$$, default: `$$<none>$$`)*
25+
$$skip-ssl-validation$$:: $$Flag to validate the Servers' SSL certs.$$ *($$Boolean$$, default: `$$false$$`)*
26+
27+
=== cassandra
28+
29+
$$consistency-level$$:: $$The consistency level for write operation.$$ *($$ConsistencyLevel$$, default: `$$<none>$$`)*
30+
$$ingest-query$$:: $$Ingest Cassandra query.$$ *($$String$$, default: `$$<none>$$`)*
31+
$$query-type$$:: $$QueryType for Cassandra Sink.$$ *($$Type$$, default: `$$<none>$$`, possible values: `INSERT`,`UPDATE`,`DELETE`,`STATEMENT`)*
32+
$$statement-expression$$:: $$Expression in Cassandra query DSL style.$$ *($$Expression$$, default: `$$<none>$$`)*
33+
$$ttl$$:: $$Time-to-live option of WriteOptions.$$ *($$Integer$$, default: `$$0$$`)*
34+
35+
=== spring.cassandra
36+
37+
$$compression$$:: $$Compression supported by the Cassandra binary protocol.$$ *($$Compression$$, default: `$$none$$`, possible values: `LZ4`,`SNAPPY`,`NONE`)*
38+
$$config$$:: $$Location of the configuration file to use.$$ *($$Resource$$, default: `$$<none>$$`)*
39+
$$contact-points$$:: $$Cluster node addresses in the form 'host:port', or a simple 'host' to use the configured port.$$ *($$List<String>$$, default: `$$[127.0.0.1:9042]$$`)*
40+
$$keyspace-name$$:: $$Keyspace name to use.$$ *($$String$$, default: `$$<none>$$`)*
41+
$$local-datacenter$$:: $$Datacenter that is considered "local". Contact points should be from this datacenter.$$ *($$String$$, default: `$$<none>$$`)*
42+
$$password$$:: $$Login password of the server.$$ *($$String$$, default: `$$<none>$$`)*
43+
$$port$$:: $$Port to use if a contact point does not specify one.$$ *($$Integer$$, default: `$$9042$$`)*
44+
$$schema-action$$:: $$Schema action to take at startup.$$ *($$String$$, default: `$$none$$`)*
45+
$$session-name$$:: $$Name of the Cassandra session.$$ *($$String$$, default: `$$<none>$$`)*
46+
$$username$$:: $$Login user of the server.$$ *($$String$$, default: `$$<none>$$`)*
47+
48+
=== spring.cassandra.connection
49+
50+
$$connect-timeout$$:: $$Timeout to use when establishing driver connections.$$ *($$Duration$$, default: `$$5s$$`)*
51+
$$init-query-timeout$$:: $$Timeout to use for internal queries that run as part of the initialization process, just after a connection is opened.$$ *($$Duration$$, default: `$$5s$$`)*
52+
53+
=== spring.cassandra.controlconnection
54+
55+
$$timeout$$:: $$Timeout to use for control queries.$$ *($$Duration$$, default: `$$5s$$`)*
56+
57+
=== spring.cassandra.pool
58+
59+
$$heartbeat-interval$$:: $$Heartbeat interval after which a message is sent on an idle connection to make sure it's still alive.$$ *($$Duration$$, default: `$$30s$$`)*
60+
$$idle-timeout$$:: $$Idle timeout before an idle connection is removed.$$ *($$Duration$$, default: `$$5s$$`)*
61+
62+
=== spring.cassandra.request
63+
64+
$$consistency$$:: $$Queries consistency level.$$ *($$DefaultConsistencyLevel$$, default: `$$<none>$$`, possible values: `ANY`,`ONE`,`TWO`,`THREE`,`QUORUM`,`ALL`,`LOCAL_ONE`,`LOCAL_QUORUM`,`EACH_QUORUM`,`SERIAL`,`LOCAL_SERIAL`)*
65+
$$page-size$$:: $$How many rows will be retrieved simultaneously in a single network round-trip.$$ *($$Integer$$, default: `$$5000$$`)*
66+
$$serial-consistency$$:: $$Queries serial consistency level.$$ *($$DefaultConsistencyLevel$$, default: `$$<none>$$`, possible values: `ANY`,`ONE`,`TWO`,`THREE`,`QUORUM`,`ALL`,`LOCAL_ONE`,`LOCAL_QUORUM`,`EACH_QUORUM`,`SERIAL`,`LOCAL_SERIAL`)*
67+
$$timeout$$:: $$How long the driver waits for a request to complete.$$ *($$Duration$$, default: `$$2s$$`)*
68+
69+
=== spring.cassandra.request.throttler
70+
71+
$$drain-interval$$:: $$How often the throttler attempts to dequeue requests. Set this high enough that each attempt will process multiple entries in the queue, but not delay requests too much.$$ *($$Duration$$, default: `$$<none>$$`)*
72+
$$max-concurrent-requests$$:: $$Maximum number of requests that are allowed to execute in parallel.$$ *($$Integer$$, default: `$$<none>$$`)*
73+
$$max-queue-size$$:: $$Maximum number of requests that can be enqueued when the throttling threshold is exceeded.$$ *($$Integer$$, default: `$$<none>$$`)*
74+
$$max-requests-per-second$$:: $$Maximum allowed request rate.$$ *($$Integer$$, default: `$$<none>$$`)*
75+
$$type$$:: $$Request throttling type.$$ *($$ThrottlerType$$, default: `$$none$$`, possible values: `CONCURRENCY_LIMITING`,`RATE_LIMITING`,`NONE`)*
76+
77+
=== spring.cassandra.ssl
78+
79+
$$bundle$$:: $$SSL bundle name.$$ *($$String$$, default: `$$<none>$$`)*
80+
$$enabled$$:: $$Whether to enable SSL support.$$ *($$Boolean$$, default: `$$<none>$$`)*
2781
//end::configuration-properties[]
2882

2983
//end::ref-doc[]
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
configuration-properties.classes=CassandraConsumerProperties, \
2-
CassandraClusterProperties, \
3-
org.springframework.boot.autoconfigure.cassandra.CassandraProperties
1+
configuration-properties.classes=org.springframework.cloud.fn.consumer.cassandra.CassandraConsumerProperties, \
2+
org.springframework.cloud.fn.consumer.cassandra.cluster.CassandraClusterProperties, \
3+
org.springframework.boot.autoconfigure.cassandra.CassandraProperties, \
4+
org.springframework.boot.autoconfigure.cassandra.CassandraProperties$Ssl, \
5+
org.springframework.boot.autoconfigure.cassandra.CassandraProperties$Connection, \
6+
org.springframework.boot.autoconfigure.cassandra.CassandraProperties$Pool, \
7+
org.springframework.boot.autoconfigure.cassandra.CassandraProperties$Request, \
8+
org.springframework.boot.autoconfigure.cassandra.CassandraProperties$Controlconnection, \
9+
org.springframework.boot.autoconfigure.cassandra.CassandraProperties$Throttler

0 commit comments

Comments
 (0)