kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 10b4a181d487549ee45b7986aad8cc1aa9159d8e71299a516d66b380ab6f0910 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-05-05 10:26 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-05-05 10:26 +02:00 |
| Parents | b658bd0f1023, 2a77dff86abf |
7 files changed
modified README.md +12 −12
| @@ -26,15 +26,15 @@ | ||
| 26 | 26 | * Works with any cluster size |
| 27 | 27 | * [Query builder][query_builder] |
| 28 | 28 | |
| 29 | -[sync]: http://datastax.com/drivers/java/2.0/com/datastax/driver/core/Session.html#execute(com.datastax.driver.core.Statement) | |
| 30 | -[async]: http://datastax.com/drivers/java/2.0/com/datastax/driver/core/Session.html#executeAsync(com.datastax.driver.core.Statement) | |
| 31 | -[simple_st]: http://datastax.com/drivers/java/2.0/com/datastax/driver/core/SimpleStatement.html | |
| 32 | -[prepared_st]: http://datastax.com/drivers/java/2.0/com/datastax/driver/core/Session.html#prepare(com.datastax.driver.core.RegularStatement) | |
| 33 | -[batch_st]: http://datastax.com/drivers/java/2.0/com/datastax/driver/core/BatchStatement.html | |
| 29 | +[sync]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Session.html#execute(com.datastax.driver.core.Statement) | |
| 30 | +[async]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Session.html#executeAsync(com.datastax.driver.core.Statement) | |
| 31 | +[simple_st]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/SimpleStatement.html | |
| 32 | +[prepared_st]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Session.html#prepare(com.datastax.driver.core.RegularStatement) | |
| 33 | +[batch_st]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/BatchStatement.html | |
| 34 | 34 | [pool]: features/pooling/ |
| 35 | -[lbp]: http://datastax.com/drivers/java/2.0/com/datastax/driver/core/policies/LoadBalancingPolicy.html | |
| 36 | -[retry_policy]: http://datastax.com/drivers/java/2.0/com/datastax/driver/core/policies/RetryPolicy.html | |
| 37 | -[query_builder]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/querybuilder/QueryBuilder.html | |
| 35 | +[lbp]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/policies/LoadBalancingPolicy.html | |
| 36 | +[retry_policy]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/policies/RetryPolicy.html | |
| 37 | +[query_builder]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/querybuilder/QueryBuilder.html | |
| 38 | 38 | |
| 39 | 39 | The driver architecture is based on layers. At the bottom lies the driver core. |
| 40 | 40 | This core handles everything related to the connections to a Cassandra |
| @@ -57,8 +57,8 @@ | ||
| 57 | 57 | - MAILING LIST: https://groups.google.com/a/lists.datastax.com/forum/#!forum/java-driver-user |
| 58 | 58 | - IRC: #datastax-drivers on [irc.freenode.net](http://freenode.net) |
| 59 | 59 | - TWITTER: Follow the latest news about DataStax Drivers - [@olim7t](http://twitter.com/olim7t), [@mfiguiere](http://twitter.com/mfiguiere) |
| 60 | -- DOCS: http://www.datastax.com/documentation/developer/java-driver/2.0/index.html | |
| 61 | -- API: http://www.datastax.com/drivers/java/2.0 | |
| 60 | +- DOCS: http://docs.datastax.com/en/developer/java-driver/2.0/java-driver/whatsNew2.html | |
| 61 | +- API: http://docs.datastax.com/en/drivers/java/2.0 | |
| 62 | 62 | - CHANGELOG: https://github.com/datastax/java-driver/blob/2.0/driver-core/CHANGELOG.rst |
| 63 | 63 | |
| 64 | 64 | ## What's new in 2.0.10 |
| @@ -102,8 +102,8 @@ | ||
| 102 | 102 | The Java client driver 2.0 ([branch 2.0](https://github.com/datastax/java-driver/tree/2.0)) is compatible with Apache |
| 103 | 103 | Cassandra 1.2 and 2.0, but some features are available only when using Apache Cassandra 2.0 (e.g. result set paging, |
| 104 | 104 | [BatchStatement](https://github.com/datastax/java-driver/blob/2.0/driver-core/src/main/java/com/datastax/driver/core/BatchStatement.java), |
| 105 | -[lightweight transactions](http://www.datastax.com/documentation/cql/3.1/cql/cql_using/use_ltweight_transaction_t.html) | |
| 106 | --- see [What's new in Cassandra 2.0](http://www.datastax.com/documentation/cassandra/2.0/cassandra/features/features_key_c.html)). | |
| 105 | +[lightweight transactions](http://docs.datastax.com/en/cql/3.1/cql/cql_using/use_ltweight_transaction_t.html) | |
| 106 | +-- see [What's new in Cassandra 2.0](http://docs.datastax.com/en/cassandra/2.0/cassandra/features/features_key_c.html)). | |
| 107 | 107 | Trying to use these with a cluster running Cassandra 1.2 will result in |
| 108 | 108 | an [UnsupportedFeatureException](https://github.com/datastax/java-driver/blob/2.0/driver-core/src/main/java/com/datastax/driver/core/exceptions/UnsupportedFeatureException.java) being thrown. |
| 109 | 109 |
modified driver-core/README.rst +1 −1
| @@ -96,5 +96,5 @@ | ||
| 96 | 96 | would use this host to discover the other ones and use the whole cluster |
| 97 | 97 | automatically. This is also true for new nodes joining the cluster. |
| 98 | 98 | |
| 99 | -For now, please refer to the API reference (http://www.datastax.com/drivers/java/apidocs/). | |
| 99 | +For now, please refer to the API reference (http://docs.datastax.com/en/drivers/java/2.0). | |
| 100 | 100 | More informations and documentation will come later. |
modified features/README.md +1 −1
| @@ -13,5 +13,5 @@ | ||
| 13 | 13 | features or document new ones. |
| 14 | 14 | |
| 15 | 15 | You can also find more help in the legacy |
| 16 | -[user documentation](http://www.datastax.com/documentation/developer/java-driver/2.0/java-driver/whatsNew2.html) | |
| 16 | +[user documentation](http://docs.datastax.com/en/developer/java-driver/2.0/java-driver/whatsNew2.html) | |
| 17 | 17 | on the DataStax website. |
modified features/address_resolution/README.md +3 −3
| @@ -38,8 +38,8 @@ | ||
| 38 | 38 | reasons, the `close()` method will be merged in `AddressTranslater` in a |
| 39 | 39 | future release. |
| 40 | 40 | |
| 41 | -[at]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/policies/AddressTranslater.html | |
| 42 | -[cat]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/policies/CloseableAddressTranslater.html | |
| 41 | +[at]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/policies/AddressTranslater.html | |
| 42 | +[cat]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/policies/CloseableAddressTranslater.html | |
| 43 | 43 | |
| 44 | 44 | ### EC2 multi-region |
| 45 | 45 | |
| @@ -64,4 +64,4 @@ | ||
| 64 | 64 | target instance. Then it performs a forward DNS lookup of the domain name; the EC2 DNS does the |
| 65 | 65 | private/public switch automatically based on location. |
| 66 | 66 | |
| 67 | -[ec2]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/policies/EC2MultiRegionAddressTranslater.html | |
| 67 | +[ec2]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/policies/EC2MultiRegionAddressTranslater.html |
modified features/metadata/README.md +17 −17
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | is connected to. It is available via |
| 5 | 5 | [Cluster#getMetadata()][getMetadata]. |
| 6 | 6 | |
| 7 | -[getMetadata]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Cluster.html#getMetadata() | |
| 7 | +[getMetadata]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Cluster.html#getMetadata() | |
| 8 | 8 | |
| 9 | 9 | ### Schema metadata |
| 10 | 10 | |
| @@ -12,8 +12,8 @@ | ||
| 12 | 12 | to get keyspace-level metadata. From there you can access the keyspace's |
| 13 | 13 | objects (tables, and UDTs and UDFs if relevant). |
| 14 | 14 | |
| 15 | -[getKeyspace]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metadata.html#getKeyspace(java.lang.String) | |
| 16 | -[getKeyspaces]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metadata.html#getKeyspaces() | |
| 15 | +[getKeyspace]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metadata.html#getKeyspace(java.lang.String) | |
| 16 | +[getKeyspaces]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metadata.html#getKeyspaces() | |
| 17 | 17 | |
| 18 | 18 | #### Refreshes |
| 19 | 19 | |
| @@ -112,9 +112,9 @@ | ||
| 112 | 112 | |
| 113 | 113 | Check out the API docs for the features in this section: |
| 114 | 114 | |
| 115 | -* [withMaxSchemaAgreementWaitSeconds(int)](http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Cluster.Builder.html#withMaxSchemaAgreementWaitSeconds(int)) | |
| 116 | -* [isSchemaInAgreement()](http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/ExecutionInfo.html#isSchemaInAgreement()) | |
| 117 | -* [checkSchemaAgreement()](http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metadata.html#checkSchemaAgreement()) | |
| 115 | +* [withMaxSchemaAgreementWaitSeconds(int)](http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Cluster.Builder.html#withMaxSchemaAgreementWaitSeconds(int)) | |
| 116 | +* [isSchemaInAgreement()](http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/ExecutionInfo.html#isSchemaInAgreement()) | |
| 117 | +* [checkSchemaAgreement()](http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metadata.html#checkSchemaAgreement()) | |
| 118 | 118 | |
| 119 | 119 | |
| 120 | 120 | ### Token metadata |
| @@ -158,14 +158,14 @@ | ||
| 158 | 158 | table (see |
| 159 | 159 | [CASSANDRA-7688](https://issues.apache.org/jira/browse/CASSANDRA-7688)). |
| 160 | 160 | |
| 161 | -[metadata]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metadata.html | |
| 162 | -[getTokenRanges]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metadata.html#getTokenRanges() | |
| 163 | -[getTokenRanges2]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metadata.html#getTokenRanges(java.lang.String,%20com.datastax.driver.core.Host) | |
| 164 | -[getReplicas]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metadata.html#getReplicas(java.lang.String,%20com.datastax.driver.core.TokenRange) | |
| 165 | -[newToken]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metadata.html#newToken(java.lang.String) | |
| 166 | -[newTokenRange]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metadata.html#newTokenRange(com.datastax.driver.core.Token,%20com.datastax.driver.core.Token) | |
| 167 | -[TokenRange]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/TokenRange.html | |
| 168 | -[getTokens]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Host.html#getTokens() | |
| 169 | -[setToken]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/BoundStatement.html#setToken(int,%20com.datastax.driver.core.Token) | |
| 170 | -[getToken]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Row.html#getToken(int) | |
| 171 | -[getPKToken]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Row.html#getPartitionKeyToken() | |
| 161 | +[metadata]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metadata.html | |
| 162 | +[getTokenRanges]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metadata.html#getTokenRanges() | |
| 163 | +[getTokenRanges2]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metadata.html#getTokenRanges(java.lang.String,%20com.datastax.driver.core.Host) | |
| 164 | +[getReplicas]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metadata.html#getReplicas(java.lang.String,%20com.datastax.driver.core.TokenRange) | |
| 165 | +[newToken]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metadata.html#newToken(java.lang.String) | |
| 166 | +[newTokenRange]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metadata.html#newTokenRange(com.datastax.driver.core.Token,%20com.datastax.driver.core.Token) | |
| 167 | +[TokenRange]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/TokenRange.html | |
| 168 | +[getTokens]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Host.html#getTokens() | |
| 169 | +[setToken]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/BoundStatement.html#setToken(int,%20com.datastax.driver.core.Token) | |
| 170 | +[getToken]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Row.html#getToken(int) | |
| 171 | +[getPKToken]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Row.html#getPartitionKeyToken() |
modified features/pooling/README.md +5 −5
| @@ -180,8 +180,8 @@ | ||
| 180 | 180 | [pooling_options]:http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/PoolingOptions.html |
| 181 | 181 | [lbp]:http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/policies/LoadBalancingPolicy.html |
| 182 | 182 | [msrpct]:http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/PoolingOptions.html#setMaxSimultaneousRequestsPerConnectionThreshold(com.datastax.driver.core.HostDistance,%20int) |
| 183 | -[rtm]:http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/SocketOptions.html#getReadTimeoutMillis() | |
| 184 | -[exec_async]:http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Session.html#executeAsync(com.datastax.driver.core.Statement) | |
| 185 | -[ptm]:http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/PoolingOptions.html#setPoolTimeoutMillis(int) | |
| 186 | -[nhae]:http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/exceptions/NoHostAvailableException.html | |
| 187 | -[get_state]:http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Session.html#getState() | |
| No newline at the end of the file | ||
| 183 | +[rtm]:http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/SocketOptions.html#getReadTimeoutMillis() | |
| 184 | +[exec_async]:http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Session.html#executeAsync(com.datastax.driver.core.Statement) | |
| 185 | +[ptm]:http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/PoolingOptions.html#setPoolTimeoutMillis(int) | |
| 186 | +[nhae]:http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/exceptions/NoHostAvailableException.html | |
| 187 | +[get_state]:http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Session.html#getState() | |
| No newline at the end of the file |
modified features/speculative_execution/README.md +11 −11
| @@ -106,8 +106,8 @@ | ||
| 106 | 106 | cluster.getConfiguration().getQueryOptions().setDefaultIdempotence(true); |
| 107 | 107 | ``` |
| 108 | 108 | |
| 109 | -[isIdempotent]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Statement.html#isIdempotent() | |
| 110 | -[QueryBuilder]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/querybuilder/QueryBuilder.html | |
| 109 | +[isIdempotent]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Statement.html#isIdempotent() | |
| 110 | +[QueryBuilder]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/querybuilder/QueryBuilder.html | |
| 111 | 111 | |
| 112 | 112 | ### Enabling speculative executions |
| 113 | 113 | |
| @@ -116,7 +116,7 @@ | ||
| 116 | 116 | `Cluster`. This policy defines the threshold after which a new |
| 117 | 117 | speculative execution will be triggered. |
| 118 | 118 | |
| 119 | -[sep]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/policies/SpeculativeExecutionPolicy.html | |
| 119 | +[sep]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/policies/SpeculativeExecutionPolicy.html | |
| 120 | 120 | |
| 121 | 121 | Two implementations are provided with the driver: |
| 122 | 122 | |
| @@ -144,7 +144,7 @@ | ||
| 144 | 144 | * if no response has been received at t0 + 1000 milliseconds, start |
| 145 | 145 | another speculative execution on a third node. |
| 146 | 146 | |
| 147 | -[csep]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/policies/ConstantSpeculativeExecutionPolicy.html | |
| 147 | +[csep]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/policies/ConstantSpeculativeExecutionPolicy.html | |
| 148 | 148 | |
| 149 | 149 | #### [PercentileSpeculativeExecutionPolicy][psep] |
| 150 | 150 | |
| @@ -205,9 +205,9 @@ | ||
| 205 | 205 | logger (see the [Logging](../logging/) section). In that case, you would |
| 206 | 206 | create a single tracker object and share it with both components. |
| 207 | 207 | |
| 208 | -[psep]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/policies/PercentileSpeculativeExecutionPolicy.html | |
| 208 | +[psep]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/policies/PercentileSpeculativeExecutionPolicy.html | |
| 209 | 209 | [hdr]: http://hdrhistogram.github.io/HdrHistogram/ |
| 210 | -[phpt]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/PerHostPercentileTracker.html | |
| 210 | +[phpt]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/PerHostPercentileTracker.html | |
| 211 | 211 | |
| 212 | 212 | #### Using your own |
| 213 | 213 | |
| @@ -261,7 +261,7 @@ | ||
| 261 | 261 | The only impact is that all executions of the same query always share |
| 262 | 262 | the same query plan, so each host will be used by at most one execution. |
| 263 | 263 | |
| 264 | -[retry_policy]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/policies/RetryPolicy.html | |
| 264 | +[retry_policy]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/policies/RetryPolicy.html | |
| 265 | 265 | |
| 266 | 266 | ### Tuning and practical details |
| 267 | 267 | |
| @@ -276,8 +276,8 @@ | ||
| 276 | 276 | It should only be a few percents of the total number of requests |
| 277 | 277 | ([cluster.getMetrics().getRequestsTimer().getCount()][request_metric]). |
| 278 | 278 | |
| 279 | -[se_metric]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metrics.Errors.html#getSpeculativeExecutions() | |
| 280 | -[request_metric]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Metrics.html#getRequestsTimer() | |
| 279 | +[se_metric]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metrics.Errors.html#getSpeculativeExecutions() | |
| 280 | +[request_metric]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Metrics.html#getRequestsTimer() | |
| 281 | 281 | |
| 282 | 282 | #### Stream id exhaustion |
| 283 | 283 | |
| @@ -306,8 +306,8 @@ | ||
| 306 | 306 | using, you can check with |
| 307 | 307 | [cluster.getConfiguration().getProtocolOptions().getProtocolVersion()][protocol_version]. |
| 308 | 308 | |
| 309 | -[session_state]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Session.State.html | |
| 310 | -[protocol_version]: http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/ProtocolOptions.html#getProtocolVersion() | |
| 309 | +[session_state]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/Session.State.html | |
| 310 | +[protocol_version]: http://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/ProtocolOptions.html#getProtocolVersion() | |
| 311 | 311 | |
| 312 | 312 | #### Request ordering and client timestamps |
| 313 | 313 |