kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | c22112a5dbd0fef5fc06eec1138b9183635b0f50726c7bd96089ee05bef63711 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-12-10 11:03 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-12-10 11:03 +01:00 |
| Parents | 6393b4325a08 |
3 files changed
modified changelog/README.md +1 −0
| @@ -3,6 +3,7 @@ | ||
| 3 | 3 | ### 2.0.13 (in progress) |
| 4 | 4 | |
| 5 | 5 | - [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing. |
| 6 | +- [improvement] JAVA-805: Document that metrics are null until Cluster is initialized. | |
| 6 | 7 | |
| 7 | 8 | ### 2.0.12 |
| 8 | 9 |
modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +2 −3
| @@ -402,9 +402,8 @@ | ||
| 402 | 402 | /** |
| 403 | 403 | * The cluster metrics. |
| 404 | 404 | * |
| 405 | - * @return the cluster metrics, or {@code null} if metrics collection has | |
| 406 | - * been disabled (that is if {@link Configuration#getMetricsOptions} | |
| 407 | - * returns {@code null}). | |
| 405 | + * @return the cluster metrics, or {@code null} if this cluster has not yet been {@link #init() initialized}, or if | |
| 406 | + * metrics collection has been disabled (that is if {@link Configuration#getMetricsOptions} returns {@code null}). | |
| 408 | 407 | */ |
| 409 | 408 | public Metrics getMetrics() { |
| 410 | 409 | checkNotClosed(manager); |
modified upgrade_guide/README.md +2 −1
| @@ -54,7 +54,8 @@ | ||
| 54 | 54 | |
| 55 | 55 | 4. The internal initialization sequence of the Cluster object has been slightly changed: |
| 56 | 56 | some fields that were previously initialized in the constructor are now set when |
| 57 | - the `init()` method is called. This is unlikely to affect regular driver users. | |
| 57 | + the `init()` method is called. In particular, `Cluster#getMetrics()` will return | |
| 58 | + `null` until the cluster is initialized. | |
| 58 | 59 | |
| 59 | 60 | ### 1.0 to 2.0 |
| 60 | 61 |