Elffuss BraidHub

kikocis/java-driver public

Merge branch '2.0' into 2.1
Changeset0c8d75acc5a031e6489231c7fc763a2ae5ffeef9bd2e234b8ec53c7ad984410d
Authorolim7t <omichallat+github@gmail.com> · 2015-12-10 11:04 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2015-12-10 11:04 +01:00
Parentsbe5573a0837a, c22112a5dbd0

Browse the files at this changeset

3 files changed

modified changelog/README.md +2 −0
@@ -12,6 +12,7 @@
1212 Merged from 2.0 branch:
1313
1414 - [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.
1516
1617
1718 ### 2.1.9
@@ -352,6 +353,7 @@
352353 ### 2.0.13 (in progress)
353354
354355 - [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.
355357
356358 ### 2.0.12
357359
modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +2 −3
@@ -404,9 +404,8 @@
404404 /**
405405 * The cluster metrics.
406406 *
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}).
410409 */
411410 public Metrics getMetrics() {
412411 checkNotClosed(manager);
modified upgrade_guide/README.md +2 −1
@@ -211,7 +211,8 @@
211211
212212 4. The internal initialization sequence of the Cluster object has been slightly changed:
213213 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.
215216
216217 ### 1.0 to 2.0
217218