kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 0c8d75acc5a031e6489231c7fc763a2ae5ffeef9bd2e234b8ec53c7ad984410d |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-12-10 11:04 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-12-10 11:04 +01:00 |
| Parents | be5573a0837a, c22112a5dbd0 |
3 files changed
modified changelog/README.md +2 −0
| @@ -12,6 +12,7 @@ | ||
| 12 | 12 | Merged from 2.0 branch: |
| 13 | 13 | |
| 14 | 14 | - [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing. |
| 15 | +- [improvement] JAVA-805: Document that metrics are null until Cluster is initialized. | |
| 15 | 16 | |
| 16 | 17 | |
| 17 | 18 | ### 2.1.9 |
| @@ -352,6 +353,7 @@ | ||
| 352 | 353 | ### 2.0.13 (in progress) |
| 353 | 354 | |
| 354 | 355 | - [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing. |
| 356 | +- [improvement] JAVA-805: Document that metrics are null until Cluster is initialized. | |
| 355 | 357 | |
| 356 | 358 | ### 2.0.12 |
| 357 | 359 |
modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +2 −3
| @@ -404,9 +404,8 @@ | ||
| 404 | 404 | /** |
| 405 | 405 | * The cluster metrics. |
| 406 | 406 | * |
| 407 | - * @return the cluster metrics, or {@code null} if metrics collection has | |
| 408 | - * been disabled (that is if {@link Configuration#getMetricsOptions} | |
| 409 | - * returns {@code null}). | |
| 407 | + * @return the cluster metrics, or {@code null} if this cluster has not yet been {@link #init() initialized}, or if | |
| 408 | + * metrics collection has been disabled (that is if {@link Configuration#getMetricsOptions} returns {@code null}). | |
| 410 | 409 | */ |
| 411 | 410 | public Metrics getMetrics() { |
| 412 | 411 | checkNotClosed(manager); |
modified upgrade_guide/README.md +2 −1
| @@ -211,7 +211,8 @@ | ||
| 211 | 211 | |
| 212 | 212 | 4. The internal initialization sequence of the Cluster object has been slightly changed: |
| 213 | 213 | some fields that were previously initialized in the constructor are now set when |
| 214 | - the `init()` method is called. This is unlikely to affect regular driver users. | |
| 214 | + the `init()` method is called. In particular, `Cluster#getMetrics()` will return | |
| 215 | + `null` until the cluster is initialized. | |
| 215 | 216 | |
| 216 | 217 | ### 1.0 to 2.0 |
| 217 | 218 |