Elffuss BraidHub

kikocis/java-driver public

Merge pull request #565 from datastax/3.0_minor_fixes

3.0 minor fixes
Changeset5d81d81dd605626676d2913e91ec783b1bf212411c933bd98683c6e03e469c17
AuthorOlivier Michallat <olim7t@users.noreply.github.com> · 2016-01-04 18:11 +01:00
CommitterOlivier Michallat <olim7t@users.noreply.github.com> · 2016-01-04 18:11 +01:00
Parents9ef4091fabd4, 00a052b7ec2a

Browse the files at this changeset

32 files changed

modified driver-core/pom.xml +487 −472
@@ -15,480 +15,495 @@
1515 limitations under the License.
1616
1717 -->
18-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19- <modelVersion>4.0.0</modelVersion>
20- <parent>
21- <groupId>com.datastax.cassandra</groupId>
22- <artifactId>cassandra-driver-parent</artifactId>
23- <version>3.0.0-SNAPSHOT</version>
24- </parent>
25- <artifactId>cassandra-driver-core</artifactId>
26- <packaging>bundle</packaging>
27- <name>DataStax Java Driver for Apache Cassandra - Core</name>
28- <description>A driver for Apache Cassandra 1.2+ that works exclusively with the Cassandra Query Language version 3 (CQL3) and Cassandra's binary protocol.</description>
29- <url>https://github.com/datastax/java-driver</url>
30-
31- <properties>
32- <main.basedir>${project.parent.basedir}</main.basedir>
33- </properties>
34-
35- <dependencies>
36- <dependency>
37- <groupId>io.netty</groupId>
38- <artifactId>netty-handler</artifactId>
39- <version>${netty.version}</version>
40- </dependency>
41-
42- <dependency>
43- <groupId>com.google.guava</groupId>
44- <artifactId>guava</artifactId>
45- <version>${guava.version}</version>
46- </dependency>
47-
48- <dependency>
49- <groupId>io.dropwizard.metrics</groupId>
50- <artifactId>metrics-core</artifactId>
51- <version>${metrics.version}</version>
52- </dependency>
53-
54- <!-- Compression libraries for the protocol. -->
55- <!-- Each of them is only a mandatory runtime dependency if you want to use the compression it offers -->
56-
57- <dependency>
58- <groupId>org.xerial.snappy</groupId>
59- <artifactId>snappy-java</artifactId>
60- <version>${snappy.version}</version>
61- <optional>true</optional>
62- </dependency>
63-
64- <dependency>
65- <groupId>net.jpountz.lz4</groupId>
66- <artifactId>lz4</artifactId>
67- <version>${lz4.version}</version>
68- <optional>true</optional>
69- </dependency>
70-
71- <!-- End of compression libraries -->
72-
73- <dependency>
74- <groupId>io.netty</groupId>
75- <artifactId>netty-transport-native-epoll</artifactId>
76- <version>${netty.version}</version>
77- <optional>true</optional>
78- </dependency>
79-
80- <dependency>
81- <groupId>org.hdrhistogram</groupId>
82- <artifactId>HdrHistogram</artifactId>
83- <version>${hdr.version}</version>
84- <optional>true</optional>
85- </dependency>
86-
87- <dependency>
88- <groupId>org.testng</groupId>
89- <artifactId>testng</artifactId>
90- <version>${testng.version}</version>
91- <scope>test</scope>
92- </dependency>
93-
94- <dependency>
95- <groupId>org.assertj</groupId>
96- <artifactId>assertj-core</artifactId>
97- <version>${assertj.version}</version>
98- <scope>test</scope>
99- </dependency>
100-
101- <dependency>
102- <groupId>org.mockito</groupId>
103- <artifactId>mockito-all</artifactId>
104- <version>${mockito.version}</version>
105- <scope>test</scope>
106- </dependency>
107-
108- <dependency>
109- <groupId>org.scassandra</groupId>
110- <artifactId>java-client</artifactId>
111- <version>${scassandra.version}</version>
112- <scope>test</scope>
113- <exclusions>
114- <exclusion>
115- <groupId>ch.qos.logback</groupId>
116- <artifactId>logback-classic</artifactId>
117- </exclusion>
118- </exclusions>
119- </dependency>
120-
121- <dependency>
122- <groupId>org.apache.commons</groupId>
123- <artifactId>commons-exec</artifactId>
124- <version>${commons-exec.version}</version>
125- <scope>test</scope>
126- </dependency>
127-
128- <dependency>
129- <groupId>io.netty</groupId>
130- <artifactId>netty-tcnative</artifactId>
131- <version>1.1.33.Fork10</version>
132- <classifier>${os.detected.classifier}</classifier>
133- <scope>test</scope>
134- </dependency>
135-
136- </dependencies>
137-
138- <build>
139- <resources>
140- <resource>
141- <directory>src/main/resources</directory>
142- <filtering>true</filtering>
143- </resource>
144- </resources>
145- <plugins>
146- <plugin>
147- <groupId>org.apache.maven.plugins</groupId>
148- <artifactId>maven-jar-plugin</artifactId>
149- <version>2.2</version>
150- <executions>
151- <execution>
152- <goals>
153- <goal>test-jar</goal>
154- </goals>
155- <phase>test-compile</phase>
156- </execution>
157- </executions>
158- </plugin>
159- <plugin>
160- <groupId>org.apache.felix</groupId>
161- <artifactId>maven-bundle-plugin</artifactId>
162- <extensions>true</extensions>
163- <version>2.4.0</version>
164- <!--
165- Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
166- (because the project uses the `bundle` packaging)
167- -->
168- <configuration>
169- <instructions>
170- <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
171- <Bundle-Version>${project.version}</Bundle-Version>
172- <_include>-osgi.bnd</_include>
173- <Import-Package><![CDATA[com.google.common*;version="[16.0.1,19)",*]]></Import-Package>
174- </instructions>
175- <supportedProjectTypes>
176- <supportedProjectType>jar</supportedProjectType>
177- <supportedProjectType>bundle</supportedProjectType>
178- <supportedProjectType>pom</supportedProjectType>
179- </supportedProjectTypes>
180- </configuration>
181- <executions>
182- <!-- Alternate execution to generate the shaded JAR's manifest -->
183- <execution>
184- <id>bundle-manifest-shaded</id>
185- <phase>prepare-package</phase>
186- <goals>
187- <goal>manifest</goal>
188- </goals>
189- <configuration>
190- <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation>
191- <instructions>
192- <Import-Package><![CDATA[com.google.common.*;version="[16.0.1,19)",!io.netty.*,*]]></Import-Package>
193- <Private-Package>com.datastax.shaded.*</Private-Package>
194- </instructions>
195- </configuration>
196- </execution>
197- </executions>
198- </plugin>
199- <plugin>
200- <artifactId>maven-shade-plugin</artifactId>
201- <version>2.3</version>
202- <executions>
203- <execution>
204- <phase>package</phase>
205- <goals><goal>shade</goal></goals>
206- <configuration>
207- <shadedArtifactAttached>true</shadedArtifactAttached>
208- <artifactSet>
209- <includes>
210- <include>io.netty:*</include>
211- </includes>
212- <excludes>
213- <exclude>io.netty:netty-transport-native-epoll</exclude>
214- </excludes>
215- </artifactSet>
216- <relocations>
217- <relocation>
218- <pattern>io.netty</pattern>
219- <shadedPattern>com.datastax.shaded.netty</shadedPattern>
220- </relocation>
221- </relocations>
222- <transformers>
223- <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
224- <resources>
225- <resource>META-INF/MANIFEST.MF</resource>
226- <resource>META-INF/io.netty.versions.properties</resource>
227- <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource>
228- <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource>
229- <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource>
230- <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource>
231- <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource>
232- <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource>
233- <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource>
234- <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource>
235- <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource>
236- <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource>
237- </resources>
238- </transformer>
239- <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
240- <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
241- <resource>META-INF/MANIFEST.MF</resource>
242- <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
243- </transformer>
244- </transformers>
245- </configuration>
246- </execution>
247- </executions>
248- </plugin>
249- </plugins>
250-
251- <pluginManagement>
252- <plugins>
253- <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
254- <plugin>
255- <groupId>org.eclipse.m2e</groupId>
256- <artifactId>lifecycle-mapping</artifactId>
257- <version>1.0.0</version>
258- <configuration>
259- <lifecycleMappingMetadata>
260- <pluginExecutions>
261- <pluginExecution>
262- <pluginExecutionFilter>
263- <groupId>org.apache.maven.plugins</groupId>
264- <artifactId>maven-jar-plugin</artifactId>
265- <versionRange>[2.2,)</versionRange>
266- <goals>
267- <goal>test-jar</goal>
268- </goals>
269- </pluginExecutionFilter>
270- <action>
271- <ignore />
272- </action>
273- </pluginExecution>
274- </pluginExecutions>
275- </lifecycleMappingMetadata>
276- </configuration>
277- </plugin>
278- </plugins>
279- </pluginManagement>
280- <extensions>
281- <extension>
282- <groupId>kr.motd.maven</groupId>
283- <artifactId>os-maven-plugin</artifactId>
284- <version>1.4.1.Final</version>
285- </extension>
286- </extensions>
287- </build>
288-
289- <profiles>
290- <profile>
291- <id>unit</id>
292- <properties>
293- <env>default</env>
294- </properties>
295- <!-- do not use activeByDefault as other profiles might be active -->
296- <activation>
297- <property>
298- <name>!activateUnitTests</name>
299- </property>
300- </activation>
301- <build>
302- <plugins>
303- <plugin>
304- <groupId>org.apache.maven.plugins</groupId>
305- <artifactId>maven-surefire-plugin</artifactId>
306- <version>2.16</version>
307- <configuration>
308- <groups>unit</groups>
309- <useFile>false</useFile>
310- <systemPropertyVariables>
311- <cassandra.version>${cassandra.version}</cassandra.version>
312- <ipprefix>${ipprefix}</ipprefix>
313- <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
314- </systemPropertyVariables>
315- <classpathDependencyExcludes>
316- <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
317- </classpathDependencyExcludes>
318- <!--May be needed for debugging-->
319- <!--<forkMode>never</forkMode>-->
320- </configuration>
321- </plugin>
322- </plugins>
323- </build>
324- </profile>
325-
326- <profile>
327- <id>short</id>
328- <properties>
329- <env>default</env>
330- </properties>
331- <build>
332- <plugins>
333- <plugin>
334- <groupId>org.apache.maven.plugins</groupId>
335- <artifactId>maven-surefire-plugin</artifactId>
336- <version>2.16</version>
337- <configuration>
338- <groups>unit,short</groups>
339- <useFile>false</useFile>
340- <systemPropertyVariables>
341- <cassandra.version>${cassandra.version}</cassandra.version>
342- <ipprefix>${ipprefix}</ipprefix>
343- </systemPropertyVariables>
344- <classpathDependencyExcludes>
345- <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
346- </classpathDependencyExcludes>
347- </configuration>
348- </plugin>
349- </plugins>
350- </build>
351- </profile>
352-
353- <profile>
354- <id>isolated</id>
355- <properties>
356- <env>default</env>
357- </properties>
358- <build>
359- <plugins>
360- <plugin>
361- <groupId>org.apache.maven.plugins</groupId>
362- <artifactId>maven-surefire-plugin</artifactId>
363- <version>2.16</version>
364- <configuration>
365- <forkCount>1</forkCount>
366- <reuseForks>false</reuseForks>
367- <groups>isolated</groups>
368- <!-- Files containing tests to be included must be added here.
369- this prevents a fork being created for each test class. -->
370- <includes>
371- <include>**/SSL*Test.java</include>
372- </includes>
373- <reportNameSuffix>isolated</reportNameSuffix>
374- <useFile>false</useFile>
375- <systemPropertyVariables>
376- <cassandra.version>${cassandra.version}</cassandra.version>
377- <ipprefix>${ipprefix}</ipprefix>
378- </systemPropertyVariables>
379- <classpathDependencyExcludes>
380- <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
381- </classpathDependencyExcludes>
382- </configuration>
383- </plugin>
384- </plugins>
385- </build>
386- </profile>
387-
388- <profile>
389- <id>long</id>
390- <properties>
391- <env>default</env>
392- </properties>
393- <build>
394- <plugins>
395- <plugin>
396- <groupId>org.apache.maven.plugins</groupId>
397- <artifactId>maven-surefire-plugin</artifactId>
398- <version>2.16</version>
399- <configuration>
400- <groups>unit,short,long</groups>
401- <useFile>false</useFile>
402- <systemPropertyVariables>
403- <cassandra.version>${cassandra.version}</cassandra.version>
404- <ipprefix>${ipprefix}</ipprefix>
405- </systemPropertyVariables>
406- <classpathDependencyExcludes>
407- <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
408- </classpathDependencyExcludes>
409- </configuration>
410- </plugin>
411- </plugins>
412- </build>
413- </profile>
414-
415- <profile>
416- <id>duration</id>
417- <properties>
418- <env>default</env>
419- </properties>
420- <build>
421- <plugins>
422- <plugin>
423- <groupId>org.apache.maven.plugins</groupId>
424- <artifactId>maven-surefire-plugin</artifactId>
425- <version>2.16</version>
426- <configuration>
427- <groups>unit,short,long,duration</groups>
428- <useFile>false</useFile>
429- <systemPropertyVariables>
430- <cassandra.version>${cassandra.version}</cassandra.version>
431- <ipprefix>${ipprefix}</ipprefix>
432- </systemPropertyVariables>
433- <classpathDependencyExcludes>
434- <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
435- </classpathDependencyExcludes>
436- </configuration>
437- </plugin>
438- </plugins>
439- </build>
440- </profile>
441-
442- <profile>
443- <id>doc</id>
444- <properties>
445- <env>default</env>
446- </properties>
447- <build>
18+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+ <modelVersion>4.0.0</modelVersion>
21+ <parent>
22+ <groupId>com.datastax.cassandra</groupId>
23+ <artifactId>cassandra-driver-parent</artifactId>
24+ <version>3.0.0-SNAPSHOT</version>
25+ </parent>
26+ <artifactId>cassandra-driver-core</artifactId>
27+ <packaging>bundle</packaging>
28+ <name>DataStax Java Driver for Apache Cassandra - Core</name>
29+ <description>A driver for Apache Cassandra 1.2+ that works exclusively with the Cassandra Query Language version 3
30+ (CQL3) and Cassandra's binary protocol.
31+ </description>
32+ <url>https://github.com/datastax/java-driver</url>
33+
34+ <properties>
35+ <main.basedir>${project.parent.basedir}</main.basedir>
36+ </properties>
37+
38+ <dependencies>
39+ <dependency>
40+ <groupId>io.netty</groupId>
41+ <artifactId>netty-handler</artifactId>
42+ <version>${netty.version}</version>
43+ </dependency>
44+
45+ <dependency>
46+ <groupId>com.google.guava</groupId>
47+ <artifactId>guava</artifactId>
48+ <version>${guava.version}</version>
49+ </dependency>
50+
51+ <dependency>
52+ <groupId>io.dropwizard.metrics</groupId>
53+ <artifactId>metrics-core</artifactId>
54+ <version>${metrics.version}</version>
55+ </dependency>
56+
57+ <!-- Compression libraries for the protocol. -->
58+ <!-- Each of them is only a mandatory runtime dependency if you want to use the compression it offers -->
59+
60+ <dependency>
61+ <groupId>org.xerial.snappy</groupId>
62+ <artifactId>snappy-java</artifactId>
63+ <version>${snappy.version}</version>
64+ <optional>true</optional>
65+ </dependency>
66+
67+ <dependency>
68+ <groupId>net.jpountz.lz4</groupId>
69+ <artifactId>lz4</artifactId>
70+ <version>${lz4.version}</version>
71+ <optional>true</optional>
72+ </dependency>
73+
74+ <!-- End of compression libraries -->
75+
76+ <dependency>
77+ <groupId>io.netty</groupId>
78+ <artifactId>netty-transport-native-epoll</artifactId>
79+ <version>${netty.version}</version>
80+ <optional>true</optional>
81+ </dependency>
82+
83+ <dependency>
84+ <groupId>org.hdrhistogram</groupId>
85+ <artifactId>HdrHistogram</artifactId>
86+ <version>${hdr.version}</version>
87+ <optional>true</optional>
88+ </dependency>
89+
90+ <dependency>
91+ <groupId>org.testng</groupId>
92+ <artifactId>testng</artifactId>
93+ <version>${testng.version}</version>
94+ <scope>test</scope>
95+ </dependency>
96+
97+ <dependency>
98+ <groupId>org.assertj</groupId>
99+ <artifactId>assertj-core</artifactId>
100+ <version>${assertj.version}</version>
101+ <scope>test</scope>
102+ </dependency>
103+
104+ <dependency>
105+ <groupId>org.mockito</groupId>
106+ <artifactId>mockito-all</artifactId>
107+ <version>${mockito.version}</version>
108+ <scope>test</scope>
109+ </dependency>
110+
111+ <dependency>
112+ <groupId>org.scassandra</groupId>
113+ <artifactId>java-client</artifactId>
114+ <version>${scassandra.version}</version>
115+ <scope>test</scope>
116+ <exclusions>
117+ <exclusion>
118+ <groupId>ch.qos.logback</groupId>
119+ <artifactId>logback-classic</artifactId>
120+ </exclusion>
121+ </exclusions>
122+ </dependency>
123+
124+ <dependency>
125+ <groupId>org.apache.commons</groupId>
126+ <artifactId>commons-exec</artifactId>
127+ <version>${commons-exec.version}</version>
128+ <scope>test</scope>
129+ </dependency>
130+
131+ <dependency>
132+ <groupId>io.netty</groupId>
133+ <artifactId>netty-tcnative</artifactId>
134+ <version>1.1.33.Fork10</version>
135+ <classifier>${os.detected.classifier}</classifier>
136+ <scope>test</scope>
137+ </dependency>
138+
139+ </dependencies>
140+
141+ <build>
142+ <resources>
143+ <resource>
144+ <directory>src/main/resources</directory>
145+ <filtering>true</filtering>
146+ </resource>
147+ </resources>
448148 <plugins>
449- <plugin>
450- <groupId>org.apache.maven.plugins</groupId>
451- <artifactId>maven-surefire-plugin</artifactId>
452- <version>2.16</version>
453- <configuration>
454- <groups>unit,doc</groups>
455- <useFile>false</useFile>
456- <systemPropertyVariables>
457- <cassandra.version>${cassandra.version}</cassandra.version>
458- <ipprefix>${ipprefix}</ipprefix>
459- </systemPropertyVariables>
460- <classpathDependencyExcludes>
461- <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
462- </classpathDependencyExcludes>
463- </configuration>
464- </plugin>
149+ <plugin>
150+ <groupId>org.apache.maven.plugins</groupId>
151+ <artifactId>maven-jar-plugin</artifactId>
152+ <version>2.2</version>
153+ <executions>
154+ <execution>
155+ <goals>
156+ <goal>test-jar</goal>
157+ </goals>
158+ <phase>test-compile</phase>
159+ </execution>
160+ </executions>
161+ </plugin>
162+ <plugin>
163+ <groupId>org.apache.felix</groupId>
164+ <artifactId>maven-bundle-plugin</artifactId>
165+ <extensions>true</extensions>
166+ <version>2.4.0</version>
167+ <!--
168+ Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
169+ (because the project uses the `bundle` packaging)
170+ -->
171+ <configuration>
172+ <instructions>
173+ <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
174+ <Bundle-Version>${project.version}</Bundle-Version>
175+ <_include>-osgi.bnd</_include>
176+ <Import-Package><![CDATA[com.google.common*;version="[16.0.1,19)",*]]></Import-Package>
177+ </instructions>
178+ <supportedProjectTypes>
179+ <supportedProjectType>jar</supportedProjectType>
180+ <supportedProjectType>bundle</supportedProjectType>
181+ <supportedProjectType>pom</supportedProjectType>
182+ </supportedProjectTypes>
183+ </configuration>
184+ <executions>
185+ <!-- Alternate execution to generate the shaded JAR's manifest -->
186+ <execution>
187+ <id>bundle-manifest-shaded</id>
188+ <phase>prepare-package</phase>
189+ <goals>
190+ <goal>manifest</goal>
191+ </goals>
192+ <configuration>
193+ <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation>
194+ <instructions>
195+ <Import-Package>
196+ <![CDATA[com.google.common.*;version="[16.0.1,19)",!io.netty.*,*]]></Import-Package>
197+ <Private-Package>com.datastax.shaded.*</Private-Package>
198+ </instructions>
199+ </configuration>
200+ </execution>
201+ </executions>
202+ </plugin>
203+ <plugin>
204+ <artifactId>maven-shade-plugin</artifactId>
205+ <version>2.3</version>
206+ <executions>
207+ <execution>
208+ <phase>package</phase>
209+ <goals>
210+ <goal>shade</goal>
211+ </goals>
212+ <configuration>
213+ <shadedArtifactAttached>true</shadedArtifactAttached>
214+ <artifactSet>
215+ <includes>
216+ <include>io.netty:*</include>
217+ </includes>
218+ <excludes>
219+ <exclude>io.netty:netty-transport-native-epoll</exclude>
220+ </excludes>
221+ </artifactSet>
222+ <relocations>
223+ <relocation>
224+ <pattern>io.netty</pattern>
225+ <shadedPattern>com.datastax.shaded.netty</shadedPattern>
226+ </relocation>
227+ </relocations>
228+ <transformers>
229+ <transformer
230+ implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
231+ <resources>
232+ <resource>META-INF/MANIFEST.MF</resource>
233+ <resource>META-INF/io.netty.versions.properties</resource>
234+ <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource>
235+ <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource>
236+ <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource>
237+ <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource>
238+ <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource>
239+ <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource>
240+ <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource>
241+ <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource>
242+ <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource>
243+ <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource>
244+ </resources>
245+ </transformer>
246+ <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
247+ <transformer
248+ implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
249+ <resource>META-INF/MANIFEST.MF</resource>
250+ <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
251+ </transformer>
252+ </transformers>
253+ </configuration>
254+ </execution>
255+ </executions>
256+ </plugin>
465257 </plugins>
466- </build>
467- </profile>
468- </profiles>
469-
470- <licenses>
471- <license>
472- <name>Apache 2</name>
473- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
474- <distribution>repo</distribution>
475- <comments>Apache License Version 2.0</comments>
476- </license>
477- </licenses>
478-
479- <scm>
480- <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
481- <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
482- <url>https://github.com/datastax/java-driver</url>
483- <tag>HEAD</tag>
484- </scm>
485-
486- <developers>
487- <developer>
488- <name>Various</name>
489- <organization>DataStax</organization>
490- </developer>
491- </developers>
258+
259+ <pluginManagement>
260+ <plugins>
261+ <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
262+ <plugin>
263+ <groupId>org.eclipse.m2e</groupId>
264+ <artifactId>lifecycle-mapping</artifactId>
265+ <version>1.0.0</version>
266+ <configuration>
267+ <lifecycleMappingMetadata>
268+ <pluginExecutions>
269+ <pluginExecution>
270+ <pluginExecutionFilter>
271+ <groupId>org.apache.maven.plugins</groupId>
272+ <artifactId>maven-jar-plugin</artifactId>
273+ <versionRange>[2.2,)</versionRange>
274+ <goals>
275+ <goal>test-jar</goal>
276+ </goals>
277+ </pluginExecutionFilter>
278+ <action>
279+ <ignore/>
280+ </action>
281+ </pluginExecution>
282+ </pluginExecutions>
283+ </lifecycleMappingMetadata>
284+ </configuration>
285+ </plugin>
286+ </plugins>
287+ </pluginManagement>
288+ <extensions>
289+ <extension>
290+ <groupId>kr.motd.maven</groupId>
291+ <artifactId>os-maven-plugin</artifactId>
292+ <version>1.4.1.Final</version>
293+ </extension>
294+ </extensions>
295+ </build>
296+
297+ <profiles>
298+ <profile>
299+ <id>unit</id>
300+ <properties>
301+ <env>default</env>
302+ </properties>
303+ <!-- do not use activeByDefault as other profiles might be active -->
304+ <activation>
305+ <property>
306+ <name>!activateUnitTests</name>
307+ </property>
308+ </activation>
309+ <build>
310+ <plugins>
311+ <plugin>
312+ <groupId>org.apache.maven.plugins</groupId>
313+ <artifactId>maven-surefire-plugin</artifactId>
314+ <version>2.16</version>
315+ <configuration>
316+ <groups>unit</groups>
317+ <useFile>false</useFile>
318+ <systemPropertyVariables>
319+ <cassandra.version>${cassandra.version}</cassandra.version>
320+ <ipprefix>${ipprefix}</ipprefix>
321+ <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60
322+ </com.datastax.driver.NEW_NODE_DELAY_SECONDS>
323+ </systemPropertyVariables>
324+ <classpathDependencyExcludes>
325+ <classpathDependencyExcludes>io.netty:netty-transport-native-epoll
326+ </classpathDependencyExcludes>
327+ </classpathDependencyExcludes>
328+ <!--May be needed for debugging-->
329+ <!--<forkMode>never</forkMode>-->
330+ </configuration>
331+ </plugin>
332+ </plugins>
333+ </build>
334+ </profile>
335+
336+ <profile>
337+ <id>short</id>
338+ <properties>
339+ <env>default</env>
340+ </properties>
341+ <build>
342+ <plugins>
343+ <plugin>
344+ <groupId>org.apache.maven.plugins</groupId>
345+ <artifactId>maven-surefire-plugin</artifactId>
346+ <version>2.16</version>
347+ <configuration>
348+ <groups>unit,short</groups>
349+ <useFile>false</useFile>
350+ <systemPropertyVariables>
351+ <cassandra.version>${cassandra.version}</cassandra.version>
352+ <ipprefix>${ipprefix}</ipprefix>
353+ </systemPropertyVariables>
354+ <classpathDependencyExcludes>
355+ <classpathDependencyExcludes>io.netty:netty-transport-native-epoll
356+ </classpathDependencyExcludes>
357+ </classpathDependencyExcludes>
358+ </configuration>
359+ </plugin>
360+ </plugins>
361+ </build>
362+ </profile>
363+
364+ <profile>
365+ <id>isolated</id>
366+ <properties>
367+ <env>default</env>
368+ </properties>
369+ <build>
370+ <plugins>
371+ <plugin>
372+ <groupId>org.apache.maven.plugins</groupId>
373+ <artifactId>maven-surefire-plugin</artifactId>
374+ <version>2.16</version>
375+ <configuration>
376+ <forkCount>1</forkCount>
377+ <reuseForks>false</reuseForks>
378+ <groups>isolated</groups>
379+ <!-- Files containing tests to be included must be added here.
380+ this prevents a fork being created for each test class. -->
381+ <includes>
382+ <include>**/SSL*Test.java</include>
383+ </includes>
384+ <reportNameSuffix>isolated</reportNameSuffix>
385+ <useFile>false</useFile>
386+ <systemPropertyVariables>
387+ <cassandra.version>${cassandra.version}</cassandra.version>
388+ <ipprefix>${ipprefix}</ipprefix>
389+ </systemPropertyVariables>
390+ <classpathDependencyExcludes>
391+ <classpathDependencyExcludes>io.netty:netty-transport-native-epoll
392+ </classpathDependencyExcludes>
393+ </classpathDependencyExcludes>
394+ </configuration>
395+ </plugin>
396+ </plugins>
397+ </build>
398+ </profile>
399+
400+ <profile>
401+ <id>long</id>
402+ <properties>
403+ <env>default</env>
404+ </properties>
405+ <build>
406+ <plugins>
407+ <plugin>
408+ <groupId>org.apache.maven.plugins</groupId>
409+ <artifactId>maven-surefire-plugin</artifactId>
410+ <version>2.16</version>
411+ <configuration>
412+ <groups>unit,short,long</groups>
413+ <useFile>false</useFile>
414+ <systemPropertyVariables>
415+ <cassandra.version>${cassandra.version}</cassandra.version>
416+ <ipprefix>${ipprefix}</ipprefix>
417+ </systemPropertyVariables>
418+ <classpathDependencyExcludes>
419+ <classpathDependencyExcludes>io.netty:netty-transport-native-epoll
420+ </classpathDependencyExcludes>
421+ </classpathDependencyExcludes>
422+ </configuration>
423+ </plugin>
424+ </plugins>
425+ </build>
426+ </profile>
427+
428+ <profile>
429+ <id>duration</id>
430+ <properties>
431+ <env>default</env>
432+ </properties>
433+ <build>
434+ <plugins>
435+ <plugin>
436+ <groupId>org.apache.maven.plugins</groupId>
437+ <artifactId>maven-surefire-plugin</artifactId>
438+ <version>2.16</version>
439+ <configuration>
440+ <groups>unit,short,long,duration</groups>
441+ <useFile>false</useFile>
442+ <systemPropertyVariables>
443+ <cassandra.version>${cassandra.version}</cassandra.version>
444+ <ipprefix>${ipprefix}</ipprefix>
445+ </systemPropertyVariables>
446+ <classpathDependencyExcludes>
447+ <classpathDependencyExcludes>io.netty:netty-transport-native-epoll
448+ </classpathDependencyExcludes>
449+ </classpathDependencyExcludes>
450+ </configuration>
451+ </plugin>
452+ </plugins>
453+ </build>
454+ </profile>
455+
456+ <profile>
457+ <id>doc</id>
458+ <properties>
459+ <env>default</env>
460+ </properties>
461+ <build>
462+ <plugins>
463+ <plugin>
464+ <groupId>org.apache.maven.plugins</groupId>
465+ <artifactId>maven-surefire-plugin</artifactId>
466+ <version>2.16</version>
467+ <configuration>
468+ <groups>unit,doc</groups>
469+ <useFile>false</useFile>
470+ <systemPropertyVariables>
471+ <cassandra.version>${cassandra.version}</cassandra.version>
472+ <ipprefix>${ipprefix}</ipprefix>
473+ </systemPropertyVariables>
474+ <classpathDependencyExcludes>
475+ <classpathDependencyExcludes>io.netty:netty-transport-native-epoll
476+ </classpathDependencyExcludes>
477+ </classpathDependencyExcludes>
478+ </configuration>
479+ </plugin>
480+ </plugins>
481+ </build>
482+ </profile>
483+ </profiles>
484+
485+ <licenses>
486+ <license>
487+ <name>Apache 2</name>
488+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
489+ <distribution>repo</distribution>
490+ <comments>Apache License Version 2.0</comments>
491+ </license>
492+ </licenses>
493+
494+ <scm>
495+ <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
496+ <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
497+ <url>https://github.com/datastax/java-driver</url>
498+ <tag>HEAD</tag>
499+ </scm>
500+
501+ <developers>
502+ <developer>
503+ <name>Various</name>
504+ <organization>DataStax</organization>
505+ </developer>
506+ </developers>
492507
493508 </project>
494509
modified driver-core/src/main/java/com/datastax/driver/core/CodecRegistry.java +2 −2
@@ -80,7 +80,7 @@
8080 * <li>all driver types that implement {@link GettableByIndexData}, {@link GettableByNameData},
8181 * {@link SettableByIndexData} and/or {@link SettableByNameData}. Namely: {@link Row},
8282 * {@link BoundStatement}, {@link UDTValue} and {@link TupleValue};</li>
83- * <li>{@link SimpleStatement(String, Object...) simple statements};</li>
83+ * <li>{@link SimpleStatement#SimpleStatement(String, Object...) simple statements};</li>
8484 * <li>statements created with the {@link com.datastax.driver.core.querybuilder.QueryBuilder Query builder}.</li>
8585 * </ul>
8686 * <p/>
@@ -378,7 +378,7 @@
378378 * Furthermore, this method returns the first matching codec, regardless of its accepted CQL type.
379379 * It should be reserved for situations where the target CQL type is not available or unknown.
380380 * In the Java driver, this happens mainly when serializing a value in a
381- * {@link SimpleStatement(String, Object...) SimpleStatement} or in the
381+ * {@link SimpleStatement#SimpleStatement(String, Object...) SimpleStatement} or in the
382382 * {@link com.datastax.driver.core.querybuilder.QueryBuilder}, where no CQL type information is available.
383383 * <p/>
384384 * Codecs returned by this method are <em>NOT</em> cached (see the {@link CodecRegistry top-level documentation}
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +43 −43
@@ -70,7 +70,7 @@
7070
7171 volatile long maxIdleTime;
7272
73- public final InetSocketAddress address;
73+ final InetSocketAddress address;
7474 private final String name;
7575
7676 @VisibleForTesting
@@ -81,7 +81,7 @@
8181 final Dispatcher dispatcher;
8282
8383 // Used by connection pooling to count how many requests are "in flight" on that connection.
84- public final AtomicInteger inFlight = new AtomicInteger(0);
84+ final AtomicInteger inFlight = new AtomicInteger(0);
8585
8686 private final AtomicInteger writer = new AtomicInteger(0);
8787 private volatile String keyspace;
@@ -118,7 +118,7 @@
118118 this(name, address, factory, null);
119119 }
120120
121- public ListenableFuture<Void> initAsync() {
121+ ListenableFuture<Void> initAsync() {
122122 if (factory.isShutdown)
123123 return Futures.immediateFailedFuture(new ConnectionException(address, "Connection factory is shut down"));
124124
@@ -386,11 +386,11 @@
386386 return new UnsupportedProtocolVersionException(address, triedVersion, serverProtocolVersion);
387387 }
388388
389- public boolean isDefunct() {
389+ boolean isDefunct() {
390390 return isDefunct.get();
391391 }
392392
393- public int maxAvailableStreams() {
393+ int maxAvailableStreams() {
394394 return dispatcher.streamIdHandler.maxAvailableStreams();
395395 }
396396
@@ -420,11 +420,11 @@
420420 owner.onConnectionDefunct(this);
421421 }
422422
423- public String keyspace() {
423+ String keyspace() {
424424 return keyspace;
425425 }
426426
427- public void setKeyspace(String keyspace) throws ConnectionException {
427+ void setKeyspace(String keyspace) throws ConnectionException {
428428 if (keyspace == null)
429429 return;
430430
@@ -482,17 +482,17 @@
482482 * @throws ConnectionException if the connection is closed
483483 * @throws TransportException if an I/O error while sending the request
484484 */
485- public Future write(Message.Request request) throws ConnectionException, BusyConnectionException {
485+ Future write(Message.Request request) throws ConnectionException, BusyConnectionException {
486486 Future future = new Future(request);
487487 write(future);
488488 return future;
489489 }
490490
491- public ResponseHandler write(ResponseCallback callback) throws ConnectionException, BusyConnectionException {
491+ ResponseHandler write(ResponseCallback callback) throws ConnectionException, BusyConnectionException {
492492 return write(callback, true);
493493 }
494494
495- public ResponseHandler write(ResponseCallback callback, boolean startTimeout) throws ConnectionException, BusyConnectionException {
495+ ResponseHandler write(ResponseCallback callback, boolean startTimeout) throws ConnectionException, BusyConnectionException {
496496
497497 Message.Request request = callback.request();
498498
@@ -591,7 +591,7 @@
591591 ((HostConnectionPool) owner).returnConnection(this);
592592 }
593593
594- public boolean isClosed() {
594+ boolean isClosed() {
595595 return closeFuture.get() != null;
596596 }
597597
@@ -605,7 +605,7 @@
605605 * @return a future that will complete once the connection has terminated.
606606 * @see #tryTerminate(boolean)
607607 */
608- public CloseFuture closeAsync() {
608+ CloseFuture closeAsync() {
609609
610610 ConnectionCloseFuture future = new ConnectionCloseFuture();
611611 if (!closeFuture.compareAndSet(null, future)) {
@@ -674,9 +674,9 @@
674674 return String.format("Connection[%s, inFlight=%d, closed=%b]", name, inFlight.get(), isClosed());
675675 }
676676
677- public static class Factory {
677+ static class Factory {
678678
679- public final Timer timer;
679+ final Timer timer;
680680
681681 private final EventLoopGroup eventLoopGroup;
682682 private final Class<? extends Channel> channelClass;
@@ -684,12 +684,12 @@
684684 private final ChannelGroup allChannels = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
685685
686686 private final ConcurrentMap<Host, AtomicInteger> idGenerators = new ConcurrentHashMap<Host, AtomicInteger>();
687- public final DefaultResponseHandler defaultHandler;
687+ final DefaultResponseHandler defaultHandler;
688688 final Cluster.Manager manager;
689689 final Cluster.ConnectionReaper reaper;
690- public final Configuration configuration;
690+ final Configuration configuration;
691691
692- public final AuthProvider authProvider;
692+ final AuthProvider authProvider;
693693 private volatile boolean isShutdown;
694694
695695 volatile ProtocolVersion protocolVersion;
@@ -708,7 +708,7 @@
708708 this.timer = nettyOptions.timer(manager.threadFactory("timeouter"));
709709 }
710710
711- public int getPort() {
711+ int getPort() {
712712 return configuration.getProtocolOptions().getPort();
713713 }
714714
@@ -718,7 +718,7 @@
718718 * @return the newly created (and initialized) connection.
719719 * @throws ConnectionException if connection attempt fails.
720720 */
721- public Connection open(Host host) throws ConnectionException, InterruptedException, UnsupportedProtocolVersionException, ClusterNameMismatchException {
721+ Connection open(Host host) throws ConnectionException, InterruptedException, UnsupportedProtocolVersionException, ClusterNameMismatchException {
722722 InetSocketAddress address = host.getSocketAddress();
723723
724724 if (isShutdown)
@@ -738,7 +738,7 @@
738738 /**
739739 * Same as open, but associate the created connection to the provided connection pool.
740740 */
741- public Connection open(HostConnectionPool pool) throws ConnectionException, InterruptedException, UnsupportedProtocolVersionException, ClusterNameMismatchException {
741+ Connection open(HostConnectionPool pool) throws ConnectionException, InterruptedException, UnsupportedProtocolVersionException, ClusterNameMismatchException {
742742 pool.host.convictionPolicy.signalConnectionsOpening(1);
743743 Connection connection = new Connection(buildConnectionName(pool.host), pool.host.getSocketAddress(), this, pool);
744744 try {
@@ -752,7 +752,7 @@
752752 /**
753753 * Creates new connections and associate them to the provided connection pool, but does not start them.
754754 */
755- public List<Connection> newConnections(HostConnectionPool pool, int count) {
755+ List<Connection> newConnections(HostConnectionPool pool, int count) {
756756 pool.host.convictionPolicy.signalConnectionsOpening(count);
757757 List<Connection> connections = Lists.newArrayListWithCapacity(count);
758758 for (int i = 0; i < count; i++)
@@ -791,7 +791,7 @@
791791 return g;
792792 }
793793
794- public long getReadTimeoutMillis() {
794+ long getReadTimeoutMillis() {
795795 return configuration.getSocketOptions().getReadTimeoutMillis();
796796 }
797797
@@ -826,7 +826,7 @@
826826 return b;
827827 }
828828
829- public void shutdown() {
829+ void shutdown() {
830830 // Make sure we skip creating connection from now on.
831831 isShutdown = true;
832832
@@ -927,7 +927,7 @@
927927
928928 class Dispatcher extends SimpleChannelInboundHandler<Message.Response> {
929929
930- public final StreamIdGenerator streamIdHandler;
930+ final StreamIdGenerator streamIdHandler;
931931 private final ConcurrentMap<Integer, ResponseHandler> pending = new ConcurrentHashMap<Integer, ResponseHandler>();
932932
933933 Dispatcher() {
@@ -940,12 +940,12 @@
940940 streamIdHandler = StreamIdGenerator.newInstance(protocolVersion);
941941 }
942942
943- public void add(ResponseHandler handler) {
943+ void add(ResponseHandler handler) {
944944 ResponseHandler old = pending.put(handler.streamId, handler);
945945 assert old == null;
946946 }
947947
948- public void removeHandler(ResponseHandler handler, boolean releaseStreamId) {
948+ void removeHandler(ResponseHandler handler, boolean releaseStreamId) {
949949
950950 // If we don't release the ID, mark first so that we can rely later on the fact that if
951951 // we receive a response for an ID with no handler, it's that this ID has been marked.
@@ -1042,7 +1042,7 @@
10421042 defunct(new TransportException(address, String.format("Unexpected exception triggered (%s)", cause), cause));
10431043 }
10441044
1045- public void errorOutAllHandler(ConnectionException ce) {
1045+ void errorOutAllHandler(ConnectionException ce) {
10461046 Iterator<ResponseHandler> iter = pending.values().iterator();
10471047 while (iter.hasNext()) {
10481048 ResponseHandler handler = iter.next();
@@ -1143,7 +1143,7 @@
11431143 private final Message.Request request;
11441144 private volatile InetSocketAddress address;
11451145
1146- public Future(Message.Request request) {
1146+ Future(Message.Request request) {
11471147 this.request = request;
11481148 }
11491149
@@ -1190,36 +1190,36 @@
11901190 return super.setException(new OperationTimedOutException(connection.address));
11911191 }
11921192
1193- public InetSocketAddress getAddress() {
1193+ InetSocketAddress getAddress() {
11941194 return address;
11951195 }
11961196 }
11971197
11981198 interface ResponseCallback {
1199- public Message.Request request();
1199+ Message.Request request();
12001200
1201- public int retryCount();
1201+ int retryCount();
12021202
1203- public void onSet(Connection connection, Message.Response response, long latency, int retryCount);
1203+ void onSet(Connection connection, Message.Response response, long latency, int retryCount);
12041204
1205- public void onException(Connection connection, Exception exception, long latency, int retryCount);
1205+ void onException(Connection connection, Exception exception, long latency, int retryCount);
12061206
1207- public boolean onTimeout(Connection connection, long latency, int retryCount);
1207+ boolean onTimeout(Connection connection, long latency, int retryCount);
12081208 }
12091209
12101210 static class ResponseHandler {
12111211
1212- public final Connection connection;
1213- public final int streamId;
1214- public final ResponseCallback callback;
1215- public final int retryCount;
1212+ final Connection connection;
1213+ final int streamId;
1214+ final ResponseCallback callback;
1215+ final int retryCount;
12161216
12171217 private final long startTime;
12181218 private volatile Timeout timeout;
12191219
12201220 private final AtomicBoolean isCancelled = new AtomicBoolean();
12211221
1222- public ResponseHandler(Connection connection, ResponseCallback callback) throws BusyConnectionException {
1222+ ResponseHandler(Connection connection, ResponseCallback callback) throws BusyConnectionException {
12231223 this.connection = connection;
12241224 this.streamId = connection.dispatcher.streamIdHandler.next();
12251225 if (streamId == -1)
@@ -1240,7 +1240,7 @@
12401240 timeout.cancel();
12411241 }
12421242
1243- public boolean cancelHandler() {
1243+ boolean cancelHandler() {
12441244 if (!isCancelled.compareAndSet(false, true))
12451245 return false;
12461246
@@ -1263,8 +1263,8 @@
12631263 }
12641264 }
12651265
1266- public interface DefaultResponseHandler {
1267- public void handle(Message.Response response);
1266+ interface DefaultResponseHandler {
1267+ void handle(Message.Response response);
12681268 }
12691269
12701270 private static class Initializer extends ChannelInitializer<SocketChannel> {
@@ -1284,7 +1284,7 @@
12841284 private final ChannelHandler idleStateHandler;
12851285 private final CodecRegistry codecRegistry;
12861286
1287- public Initializer(Connection connection, ProtocolVersion protocolVersion, FrameCompressor compressor, SSLOptions sslOptions, int heartBeatIntervalSeconds, NettyOptions nettyOptions, CodecRegistry codecRegistry) {
1287+ Initializer(Connection connection, ProtocolVersion protocolVersion, FrameCompressor compressor, SSLOptions sslOptions, int heartBeatIntervalSeconds, NettyOptions nettyOptions, CodecRegistry codecRegistry) {
12881288 this.connection = connection;
12891289 this.protocolVersion = protocolVersion;
12901290 this.compressor = compressor;
modified driver-core/src/main/java/com/datastax/driver/core/Frame.java +19 −19
@@ -76,8 +76,8 @@
7676 */
7777 class Frame {
7878
79- public final Header header;
80- public final ByteBuf body;
79+ final Header header;
80+ final ByteBuf body;
8181
8282 private Frame(Header header, ByteBuf body) {
8383 this.header = header;
@@ -116,17 +116,17 @@
116116 }
117117 }
118118
119- public static Frame create(ProtocolVersion version, int opcode, int streamId, EnumSet<Header.Flag> flags, ByteBuf body) {
119+ static Frame create(ProtocolVersion version, int opcode, int streamId, EnumSet<Header.Flag> flags, ByteBuf body) {
120120 Header header = new Header(version, flags, streamId, opcode);
121121 return new Frame(header, body);
122122 }
123123
124- public static class Header {
124+ static class Header {
125125
126- public final ProtocolVersion version;
127- public final EnumSet<Flag> flags;
128- public final int streamId;
129- public final int opcode;
126+ final ProtocolVersion version;
127+ final EnumSet<Flag> flags;
128+ final int streamId;
129+ final int opcode;
130130
131131 private Header(ProtocolVersion version, int flags, int streamId, int opcode) {
132132 this(version, Flag.deserialize(flags), streamId, opcode);
@@ -145,7 +145,7 @@
145145 * @param version the protocol version in use
146146 * @return the expected frame header length in bytes
147147 */
148- public static int lengthFor(ProtocolVersion version) {
148+ static int lengthFor(ProtocolVersion version) {
149149 switch (version) {
150150 case V1:
151151 case V2:
@@ -158,14 +158,14 @@
158158 }
159159 }
160160
161- public static enum Flag {
161+ enum Flag {
162162 // The order of that enum matters!!
163163 COMPRESSED,
164164 TRACING,
165165 CUSTOM_PAYLOAD,
166166 WARNING;
167167
168- public static EnumSet<Flag> deserialize(int flags) {
168+ static EnumSet<Flag> deserialize(int flags) {
169169 EnumSet<Flag> set = EnumSet.noneOf(Flag.class);
170170 Flag[] values = Flag.values();
171171 for (int n = 0; n < 8; n++) {
@@ -175,7 +175,7 @@
175175 return set;
176176 }
177177
178- public static int serialize(EnumSet<Flag> flags) {
178+ static int serialize(EnumSet<Flag> flags) {
179179 int i = 0;
180180 for (Flag flag : flags)
181181 i |= 1 << flag.ordinal();
@@ -184,11 +184,11 @@
184184 }
185185 }
186186
187- public Frame with(ByteBuf newBody) {
187+ Frame with(ByteBuf newBody) {
188188 return new Frame(header, newBody);
189189 }
190190
191- public static final class Decoder extends ByteToMessageDecoder {
191+ static final class Decoder extends ByteToMessageDecoder {
192192 static final DecoderForStreamIdSize decoderV1 = new DecoderForStreamIdSize(1);
193193 static final DecoderForStreamIdSize decoderV3 = new DecoderForStreamIdSize(2);
194194
@@ -243,7 +243,7 @@
243243 }
244244
245245 @ChannelHandler.Sharable
246- public static class Encoder extends MessageToMessageEncoder<Frame> {
246+ static class Encoder extends MessageToMessageEncoder<Frame> {
247247
248248 @Override
249249 protected void encode(ChannelHandlerContext ctx, Frame frame, List<Object> out) throws Exception {
@@ -276,11 +276,11 @@
276276 }
277277 }
278278
279- public static class Decompressor extends MessageToMessageDecoder<Frame> {
279+ static class Decompressor extends MessageToMessageDecoder<Frame> {
280280
281281 private final FrameCompressor compressor;
282282
283- public Decompressor(FrameCompressor compressor) {
283+ Decompressor(FrameCompressor compressor) {
284284 assert compressor != null;
285285 this.compressor = compressor;
286286 }
@@ -302,11 +302,11 @@
302302 }
303303 }
304304
305- public static class Compressor extends MessageToMessageEncoder<Frame> {
305+ static class Compressor extends MessageToMessageEncoder<Frame> {
306306
307307 private final FrameCompressor compressor;
308308
309- public Compressor(FrameCompressor compressor) {
309+ Compressor(FrameCompressor compressor) {
310310 assert compressor != null;
311311 this.compressor = compressor;
312312 }
modified driver-core/src/main/java/com/datastax/driver/core/Message.java +30 −31
@@ -36,16 +36,16 @@
3636
3737 protected static final Logger logger = LoggerFactory.getLogger(Message.class);
3838
39- static AttributeKey<CodecRegistry> CODEC_REGISTRY_ATTRIBUTE_KEY = AttributeKey.newInstance("com.datastax.driver.core.CodecRegistry");
39+ static AttributeKey<CodecRegistry> CODEC_REGISTRY_ATTRIBUTE_KEY = AttributeKey.valueOf("com.datastax.driver.core.CodecRegistry");
4040
41- public interface Coder<R extends Request> {
42- public void encode(R request, ByteBuf dest, ProtocolVersion version);
41+ interface Coder<R extends Request> {
42+ void encode(R request, ByteBuf dest, ProtocolVersion version);
4343
44- public int encodedSize(R request, ProtocolVersion version);
44+ int encodedSize(R request, ProtocolVersion version);
4545 }
4646
47- public interface Decoder<R extends Response> {
48- public R decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry);
47+ interface Decoder<R extends Response> {
48+ R decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry);
4949 }
5050
5151 private volatile int streamId;
@@ -61,27 +61,27 @@
6161 protected Message() {
6262 }
6363
64- public Message setStreamId(int streamId) {
64+ Message setStreamId(int streamId) {
6565 this.streamId = streamId;
6666 return this;
6767 }
6868
69- public int getStreamId() {
69+ int getStreamId() {
7070 return streamId;
7171 }
7272
73- public Map<String, ByteBuffer> getCustomPayload() {
73+ Map<String, ByteBuffer> getCustomPayload() {
7474 return customPayload;
7575 }
7676
77- public Message setCustomPayload(Map<String, ByteBuffer> customPayload) {
77+ Message setCustomPayload(Map<String, ByteBuffer> customPayload) {
7878 this.customPayload = customPayload;
7979 return this;
8080 }
8181
82- public static abstract class Request extends Message {
82+ static abstract class Request extends Message {
8383
84- public enum Type {
84+ enum Type {
8585 STARTUP(1, Requests.Startup.coder),
8686 CREDENTIALS(4, Requests.Credentials.coder),
8787 OPTIONS(5, Requests.Options.coder),
@@ -92,16 +92,16 @@
9292 BATCH(13, Requests.Batch.coder),
9393 AUTH_RESPONSE(15, Requests.AuthResponse.coder);
9494
95- public final int opcode;
96- public final Coder<?> coder;
95+ final int opcode;
96+ final Coder<?> coder;
9797
98- private Type(int opcode, Coder<?> coder) {
98+ Type(int opcode, Coder<?> coder) {
9999 this.opcode = opcode;
100100 this.coder = coder;
101101 }
102102 }
103103
104- public final Type type;
104+ final Type type;
105105 private final boolean tracingRequested;
106106
107107 protected Request(Type type) {
@@ -113,7 +113,7 @@
113113 this.tracingRequested = tracingRequested;
114114 }
115115
116- public boolean isTracingRequested() {
116+ boolean isTracingRequested() {
117117 return tracingRequested;
118118 }
119119
@@ -176,9 +176,9 @@
176176 }
177177 }
178178
179- public static abstract class Response extends Message {
179+ static abstract class Response extends Message {
180180
181- public enum Type {
181+ enum Type {
182182 ERROR(0, Responses.Error.decoder),
183183 READY(2, Responses.Ready.decoder),
184184 AUTHENTICATE(3, Responses.Authenticate.decoder),
@@ -188,8 +188,8 @@
188188 AUTH_CHALLENGE(14, Responses.AuthChallenge.decoder),
189189 AUTH_SUCCESS(16, Responses.AuthSuccess.decoder);
190190
191- public final int opcode;
192- public final Decoder<?> decoder;
191+ final int opcode;
192+ final Decoder<?> decoder;
193193
194194 private static final Type[] opcodeIdx;
195195
@@ -205,12 +205,12 @@
205205 }
206206 }
207207
208- private Type(int opcode, Decoder<?> decoder) {
208+ Type(int opcode, Decoder<?> decoder) {
209209 this.opcode = opcode;
210210 this.decoder = decoder;
211211 }
212212
213- public static Type fromOpcode(int opcode) {
213+ static Type fromOpcode(int opcode) {
214214 if (opcode < 0 || opcode >= opcodeIdx.length)
215215 throw new DriverInternalError(String.format("Unknown response opcode %d", opcode));
216216 Type t = opcodeIdx[opcode];
@@ -220,7 +220,7 @@
220220 }
221221 }
222222
223- public final Type type;
223+ final Type type;
224224 protected volatile UUID tracingId;
225225 protected volatile List<String> warnings;
226226
@@ -228,23 +228,23 @@
228228 this.type = type;
229229 }
230230
231- public Response setTracingId(UUID tracingId) {
231+ Response setTracingId(UUID tracingId) {
232232 this.tracingId = tracingId;
233233 return this;
234234 }
235235
236- public UUID getTracingId() {
236+ UUID getTracingId() {
237237 return tracingId;
238238 }
239239
240- public Response setWarnings(List<String> warnings) {
240+ Response setWarnings(List<String> warnings) {
241241 this.warnings = warnings;
242242 return this;
243243 }
244244 }
245245
246246 @ChannelHandler.Sharable
247- public static class ProtocolDecoder extends MessageToMessageDecoder<Frame> {
247+ static class ProtocolDecoder extends MessageToMessageDecoder<Frame> {
248248
249249 @Override
250250 protected void decode(ChannelHandlerContext ctx, Frame frame, List<Object> out) throws Exception {
@@ -278,11 +278,11 @@
278278 }
279279
280280 @ChannelHandler.Sharable
281- public static class ProtocolEncoder extends MessageToMessageEncoder<Request> {
281+ static class ProtocolEncoder extends MessageToMessageEncoder<Request> {
282282
283283 private final ProtocolVersion protocolVersion;
284284
285- public ProtocolEncoder(ProtocolVersion version) {
285+ ProtocolEncoder(ProtocolVersion version) {
286286 this.protocolVersion = version;
287287 }
288288
@@ -350,7 +350,6 @@
350350 // this method doesn't modify the given ByteBuffer
351351 static void bytesToHex(ByteBuffer bytes, StringBuilder sb) {
352352 int length = Math.min(bytes.remaining(), 50);
353- char[] hexChars = new char[length * 2];
354353 sb.append("0x");
355354 for (int i = 0; i < length; i++) {
356355 int v = bytes.get(i) & 0xFF;
modified driver-core/src/main/java/com/datastax/driver/core/ParseUtils.java +4 −8
@@ -266,8 +266,7 @@
266266 * to parse date strings)..
267267 *
268268 * @throws ParseException If the given string is not a valid ISO-8601 date.
269- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
270- * section of CQL specification.
269+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
271270 */
272271 public static Date parseDate(String str) throws ParseException {
273272 SimpleDateFormat parser = new SimpleDateFormat();
@@ -301,8 +300,7 @@
301300 * to parse date strings)..
302301 *
303302 * @throws ParseException If the given string cannot be parsed with the given pattern.
304- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
305- * section of CQL specification.
303+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
306304 */
307305 public static Date parseDate(String str, String pattern) throws ParseException {
308306 SimpleDateFormat parser = new SimpleDateFormat();
@@ -335,8 +333,7 @@
335333 * @param str The string to parse.
336334 * @return A long value representing the number of nanoseconds since midnight.
337335 * @throws ParseException if the string cannot be parsed.
338- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">Working with time</a>
339- * section of CQL specification.
336+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">'Working with time' section of CQL specification</a>
340337 */
341338 public static long parseTime(String str) throws ParseException {
342339 String nanos_s;
@@ -403,8 +400,7 @@
403400 *
404401 * @param value A long value representing the number of nanoseconds since midnight.
405402 * @return The formatted value.
406- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">Working with time</a>
407- * section of CQL specification.
403+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">'Working with time' section of CQL specification</a>
408404 */
409405 public static String formatTime(long value) {
410406 int nano = (int) (value % 1000000000);
modified driver-core/src/main/java/com/datastax/driver/core/PoolingOptions.java +0 −51
@@ -509,55 +509,4 @@
509509 distance, core, max));
510510 }
511511
512- /**
513- * @deprecated this option isn't used anymore with the current pool resizing algorithm.
514- */
515- @Deprecated
516- public int getMinSimultaneousRequestsPerConnectionThreshold(HostDistance distance) {
517- return 0;
518- }
519-
520- /**
521- * @deprecated this option isn't used anymore with the current pool resizing algorithm.
522- */
523- @Deprecated
524- public synchronized PoolingOptions setMinSimultaneousRequestsPerConnectionThreshold(HostDistance distance, int newMinSimultaneousRequests) {
525- return this;
526- }
527-
528- /**
529- * @deprecated this method has been renamed to {@link #getNewConnectionThreshold(HostDistance)}. This method calls the new one internally,
530- * but you should use the new one in your code.
531- */
532- @Deprecated
533- public int getMaxSimultaneousRequestsPerConnectionThreshold(HostDistance distance) {
534- return getNewConnectionThreshold(distance);
535- }
536-
537- /**
538- * @deprecated this method has been renamed to {@link #setNewConnectionThreshold(HostDistance, int)}. This method calls the new one
539- * internally, but you should use the new one in your code.
540- */
541- @Deprecated
542- public PoolingOptions setMaxSimultaneousRequestsPerConnectionThreshold(HostDistance distance, int newMaxSimultaneousRequests) {
543- return this.setNewConnectionThreshold(distance, newMaxSimultaneousRequests);
544- }
545-
546- /**
547- * @deprecated this method has been renamed to {@link #getMaxRequestsPerConnection(HostDistance)}. This method calls the new one internally,
548- * but you should use the new one in your code.
549- */
550- @Deprecated
551- public int getMaxSimultaneousRequestsPerHostThreshold(HostDistance distance) {
552- return this.getMaxRequestsPerConnection(distance);
553- }
554-
555- /**
556- * @deprecated this method has been renamed to {@link #setMaxRequestsPerConnection(HostDistance, int)}. This method calls the new one internally,
557- * but you should use the new one in your code.
558- */
559- @Deprecated
560- public PoolingOptions setMaxSimultaneousRequestsPerHostThreshold(HostDistance distance, int newMaxRequests) {
561- return this.setMaxRequestsPerConnection(distance, newMaxRequests);
562- }
563512 }
modified driver-core/src/main/java/com/datastax/driver/core/ProtocolEvent.java +20 −20
@@ -25,15 +25,15 @@
2525
2626 class ProtocolEvent {
2727
28- public enum Type {TOPOLOGY_CHANGE, STATUS_CHANGE, SCHEMA_CHANGE}
28+ enum Type {TOPOLOGY_CHANGE, STATUS_CHANGE, SCHEMA_CHANGE}
2929
30- public final Type type;
30+ final Type type;
3131
3232 private ProtocolEvent(Type type) {
3333 this.type = type;
3434 }
3535
36- public static ProtocolEvent deserialize(ByteBuf bb, ProtocolVersion version) {
36+ static ProtocolEvent deserialize(ByteBuf bb, ProtocolVersion version) {
3737 switch (CBUtil.readEnumValue(Type.class, bb)) {
3838 case TOPOLOGY_CHANGE:
3939 return TopologyChange.deserializeEvent(bb);
@@ -45,11 +45,11 @@
4545 throw new AssertionError();
4646 }
4747
48- public static class TopologyChange extends ProtocolEvent {
49- public enum Change {NEW_NODE, REMOVED_NODE, MOVED_NODE}
48+ static class TopologyChange extends ProtocolEvent {
49+ enum Change {NEW_NODE, REMOVED_NODE, MOVED_NODE}
5050
51- public final Change change;
52- public final InetSocketAddress node;
51+ final Change change;
52+ final InetSocketAddress node;
5353
5454 private TopologyChange(Change change, InetSocketAddress node) {
5555 super(Type.TOPOLOGY_CHANGE);
@@ -70,12 +70,12 @@
7070 }
7171 }
7272
73- public static class StatusChange extends ProtocolEvent {
73+ static class StatusChange extends ProtocolEvent {
7474
75- public enum Status {UP, DOWN}
75+ enum Status {UP, DOWN}
7676
77- public final Status status;
78- public final InetSocketAddress node;
77+ final Status status;
78+ final InetSocketAddress node;
7979
8080 private StatusChange(Status status, InetSocketAddress node) {
8181 super(Type.STATUS_CHANGE);
@@ -96,17 +96,17 @@
9696 }
9797 }
9898
99- public static class SchemaChange extends ProtocolEvent {
99+ static class SchemaChange extends ProtocolEvent {
100100
101- public enum Change {CREATED, UPDATED, DROPPED}
101+ enum Change {CREATED, UPDATED, DROPPED}
102102
103- public final Change change;
104- public final SchemaElement targetType;
105- public final String targetKeyspace;
106- public final String targetName;
107- public final List<String> targetSignature;
103+ final Change change;
104+ final SchemaElement targetType;
105+ final String targetKeyspace;
106+ final String targetName;
107+ final List<String> targetSignature;
108108
109- public SchemaChange(Change change, SchemaElement targetType, String targetKeyspace, String targetName, List<String> targetSignature) {
109+ SchemaChange(Change change, SchemaElement targetType, String targetKeyspace, String targetName, List<String> targetSignature) {
110110 super(Type.SCHEMA_CHANGE);
111111 this.change = change;
112112 this.targetType = targetType;
@@ -116,7 +116,7 @@
116116 }
117117
118118 // Assumes the type has already been deserialized
119- private static SchemaChange deserializeEvent(ByteBuf bb, ProtocolVersion version) {
119+ static SchemaChange deserializeEvent(ByteBuf bb, ProtocolVersion version) {
120120 Change change;
121121 SchemaElement targetType;
122122 String targetKeyspace, targetName;
modified driver-core/src/main/java/com/datastax/driver/core/ProtocolOptions.java +0 −9
@@ -142,15 +142,6 @@
142142 this.authProvider = authProvider;
143143 }
144144
145- /**
146- * @throws IllegalArgumentException if {@code protocolVersion} does not correspond to any known version.
147- * @deprecated This is provided for backward compatibility; use {@link #ProtocolOptions(int, ProtocolVersion, int, SSLOptions, AuthProvider))} instead.
148- */
149- @Deprecated
150- public ProtocolOptions(int port, int protocolVersion, SSLOptions sslOptions, AuthProvider authProvider) {
151- this(port, ProtocolVersion.fromInt(protocolVersion), DEFAULT_MAX_SCHEMA_AGREEMENT_WAIT_SECONDS, sslOptions, authProvider);
152- }
153-
154145 void register(Cluster.Manager manager) {
155146 this.manager = manager;
156147 }
modified driver-core/src/main/java/com/datastax/driver/core/Requests.java +68 −68
@@ -29,13 +29,13 @@
2929 private Requests() {
3030 }
3131
32- public static class Startup extends Message.Request {
32+ static class Startup extends Message.Request {
3333 private static final String CQL_VERSION_OPTION = "CQL_VERSION";
3434 private static final String CQL_VERSION = "3.0.0";
3535
36- public static final String COMPRESSION_OPTION = "COMPRESSION";
36+ static final String COMPRESSION_OPTION = "COMPRESSION";
3737
38- public static final Message.Coder<Startup> coder = new Message.Coder<Startup>() {
38+ static final Message.Coder<Startup> coder = new Message.Coder<Startup>() {
3939 public void encode(Startup msg, ByteBuf dest, ProtocolVersion version) {
4040 CBUtil.writeStringMap(msg.options, dest);
4141 }
@@ -47,7 +47,7 @@
4747
4848 private final Map<String, String> options;
4949
50- public Startup(ProtocolOptions.Compression compression) {
50+ Startup(ProtocolOptions.Compression compression) {
5151 super(Message.Request.Type.STARTUP);
5252
5353 ImmutableMap.Builder<String, String> map = new ImmutableMap.Builder<String, String>();
@@ -64,9 +64,9 @@
6464 }
6565
6666 // Only for protocol v1
67- public static class Credentials extends Message.Request {
67+ static class Credentials extends Message.Request {
6868
69- public static final Message.Coder<Credentials> coder = new Message.Coder<Credentials>() {
69+ static final Message.Coder<Credentials> coder = new Message.Coder<Credentials>() {
7070
7171 public void encode(Credentials msg, ByteBuf dest, ProtocolVersion version) {
7272 assert version == ProtocolVersion.V1;
@@ -81,15 +81,15 @@
8181
8282 private final Map<String, String> credentials;
8383
84- public Credentials(Map<String, String> credentials) {
84+ Credentials(Map<String, String> credentials) {
8585 super(Message.Request.Type.CREDENTIALS);
8686 this.credentials = credentials;
8787 }
8888 }
8989
90- public static class Options extends Message.Request {
90+ static class Options extends Message.Request {
9191
92- public static final Message.Coder<Options> coder = new Message.Coder<Options>() {
92+ static final Message.Coder<Options> coder = new Message.Coder<Options>() {
9393 public void encode(Options msg, ByteBuf dest, ProtocolVersion version) {
9494 }
9595
@@ -98,7 +98,7 @@
9898 }
9999 };
100100
101- public Options() {
101+ Options() {
102102 super(Message.Request.Type.OPTIONS);
103103 }
104104
@@ -108,9 +108,9 @@
108108 }
109109 }
110110
111- public static class Query extends Message.Request {
111+ static class Query extends Message.Request {
112112
113- public static final Message.Coder<Query> coder = new Message.Coder<Query>() {
113+ static final Message.Coder<Query> coder = new Message.Coder<Query>() {
114114 public void encode(Query msg, ByteBuf dest, ProtocolVersion version) {
115115 CBUtil.writeLongString(msg.query, dest);
116116 msg.options.encode(dest, version);
@@ -122,14 +122,14 @@
122122 }
123123 };
124124
125- public final String query;
126- public final QueryProtocolOptions options;
125+ final String query;
126+ final QueryProtocolOptions options;
127127
128- public Query(String query) {
128+ Query(String query) {
129129 this(query, QueryProtocolOptions.DEFAULT, false);
130130 }
131131
132- public Query(String query, QueryProtocolOptions options, boolean tracingRequested) {
132+ Query(String query, QueryProtocolOptions options, boolean tracingRequested) {
133133 super(Type.QUERY, tracingRequested);
134134 this.query = query;
135135 this.options = options;
@@ -151,9 +151,9 @@
151151 }
152152 }
153153
154- public static class Execute extends Message.Request {
154+ static class Execute extends Message.Request {
155155
156- public static final Message.Coder<Execute> coder = new Message.Coder<Execute>() {
156+ static final Message.Coder<Execute> coder = new Message.Coder<Execute>() {
157157 public void encode(Execute msg, ByteBuf dest, ProtocolVersion version) {
158158 CBUtil.writeBytes(msg.statementId.bytes, dest);
159159 msg.options.encode(dest, version);
@@ -165,10 +165,10 @@
165165 }
166166 };
167167
168- public final MD5Digest statementId;
169- public final QueryProtocolOptions options;
168+ final MD5Digest statementId;
169+ final QueryProtocolOptions options;
170170
171- public Execute(MD5Digest statementId, QueryProtocolOptions options, boolean tracingRequested) {
171+ Execute(MD5Digest statementId, QueryProtocolOptions options, boolean tracingRequested) {
172172 super(Message.Request.Type.EXECUTE, tracingRequested);
173173 this.statementId = statementId;
174174 this.options = options;
@@ -190,7 +190,7 @@
190190 }
191191 }
192192
193- static enum QueryFlag {
193+ enum QueryFlag {
194194 // The order of that enum matters!!
195195 VALUES,
196196 SKIP_METADATA,
@@ -200,7 +200,7 @@
200200 DEFAULT_TIMESTAMP,
201201 VALUE_NAMES;
202202
203- public static EnumSet<QueryFlag> deserialize(int flags) {
203+ static EnumSet<QueryFlag> deserialize(int flags) {
204204 EnumSet<QueryFlag> set = EnumSet.noneOf(QueryFlag.class);
205205 QueryFlag[] values = QueryFlag.values();
206206 for (int n = 0; n < values.length; n++) {
@@ -210,7 +210,7 @@
210210 return set;
211211 }
212212
213- public static int serialize(EnumSet<QueryFlag> flags) {
213+ static int serialize(EnumSet<QueryFlag> flags) {
214214 int i = 0;
215215 for (QueryFlag flag : flags)
216216 i |= 1 << flag.ordinal();
@@ -218,9 +218,9 @@
218218 }
219219 }
220220
221- public static class QueryProtocolOptions {
221+ static class QueryProtocolOptions {
222222
223- public static final QueryProtocolOptions DEFAULT = new QueryProtocolOptions(ConsistencyLevel.ONE,
223+ static final QueryProtocolOptions DEFAULT = new QueryProtocolOptions(ConsistencyLevel.ONE,
224224 Collections.<ByteBuffer>emptyList(),
225225 false,
226226 -1,
@@ -229,21 +229,21 @@
229229 Long.MIN_VALUE);
230230
231231 private final EnumSet<QueryFlag> flags = EnumSet.noneOf(QueryFlag.class);
232- public final ConsistencyLevel consistency;
233- public final List<ByteBuffer> values;
234- public final boolean skipMetadata;
235- public final int pageSize;
236- public final ByteBuffer pagingState;
237- public final ConsistencyLevel serialConsistency;
238- public final long defaultTimestamp;
239-
240- public QueryProtocolOptions(ConsistencyLevel consistency,
241- List<ByteBuffer> values,
242- boolean skipMetadata,
243- int pageSize,
244- ByteBuffer pagingState,
245- ConsistencyLevel serialConsistency,
246- long defaultTimestamp) {
232+ final ConsistencyLevel consistency;
233+ final List<ByteBuffer> values;
234+ final boolean skipMetadata;
235+ final int pageSize;
236+ final ByteBuffer pagingState;
237+ final ConsistencyLevel serialConsistency;
238+ final long defaultTimestamp;
239+
240+ QueryProtocolOptions(ConsistencyLevel consistency,
241+ List<ByteBuffer> values,
242+ boolean skipMetadata,
243+ int pageSize,
244+ ByteBuffer pagingState,
245+ ConsistencyLevel serialConsistency,
246+ long defaultTimestamp) {
247247
248248 this.consistency = consistency;
249249 this.values = values;
@@ -268,11 +268,11 @@
268268 flags.add(QueryFlag.DEFAULT_TIMESTAMP);
269269 }
270270
271- public QueryProtocolOptions copy(ConsistencyLevel newConsistencyLevel) {
271+ QueryProtocolOptions copy(ConsistencyLevel newConsistencyLevel) {
272272 return new QueryProtocolOptions(newConsistencyLevel, values, skipMetadata, pageSize, pagingState, serialConsistency, defaultTimestamp);
273273 }
274274
275- public void encode(ByteBuf dest, ProtocolVersion version) {
275+ void encode(ByteBuf dest, ProtocolVersion version) {
276276 switch (version) {
277277 case V1:
278278 if (flags.contains(QueryFlag.VALUES))
@@ -300,7 +300,7 @@
300300 }
301301 }
302302
303- public int encodedSize(ProtocolVersion version) {
303+ int encodedSize(ProtocolVersion version) {
304304 switch (version) {
305305 case V1:
306306 return CBUtil.sizeOfValueList(values)
@@ -333,9 +333,9 @@
333333 }
334334 }
335335
336- public static class Batch extends Message.Request {
336+ static class Batch extends Message.Request {
337337
338- public static final Message.Coder<Batch> coder = new Message.Coder<Batch>() {
338+ static final Message.Coder<Batch> coder = new Message.Coder<Batch>() {
339339 public void encode(Batch msg, ByteBuf dest, ProtocolVersion version) {
340340 int queries = msg.queryOrIdList.size();
341341 assert queries <= 0xFFFF;
@@ -385,12 +385,12 @@
385385 }
386386 };
387387
388- public final BatchStatement.Type type;
389- public final List<Object> queryOrIdList;
390- public final List<List<ByteBuffer>> values;
391- public final BatchProtocolOptions options;
388+ final BatchStatement.Type type;
389+ final List<Object> queryOrIdList;
390+ final List<List<ByteBuffer>> values;
391+ final BatchProtocolOptions options;
392392
393- public Batch(BatchStatement.Type type, List<Object> queryOrIdList, List<List<ByteBuffer>> values, BatchProtocolOptions options, boolean tracingRequested) {
393+ Batch(BatchStatement.Type type, List<Object> queryOrIdList, List<List<ByteBuffer>> values, BatchProtocolOptions options, boolean tracingRequested) {
394394 super(Message.Request.Type.BATCH, tracingRequested);
395395 this.type = type;
396396 this.queryOrIdList = queryOrIdList;
@@ -421,13 +421,13 @@
421421 }
422422 }
423423
424- public static class BatchProtocolOptions {
424+ static class BatchProtocolOptions {
425425 private final EnumSet<QueryFlag> flags = EnumSet.noneOf(QueryFlag.class);
426- public final ConsistencyLevel consistency;
427- public final ConsistencyLevel serialConsistency;
428- public final long defaultTimestamp;
429-
430- public BatchProtocolOptions(ConsistencyLevel consistency, ConsistencyLevel serialConsistency, long defaultTimestamp) {
426+ final ConsistencyLevel consistency;
427+ final ConsistencyLevel serialConsistency;
428+ final long defaultTimestamp;
429+
430+ BatchProtocolOptions(ConsistencyLevel consistency, ConsistencyLevel serialConsistency, long defaultTimestamp) {
431431 this.consistency = consistency;
432432 this.serialConsistency = serialConsistency;
433433 this.defaultTimestamp = defaultTimestamp;
@@ -442,7 +442,7 @@
442442 return new BatchProtocolOptions(newConsistencyLevel, serialConsistency, defaultTimestamp);
443443 }
444444
445- public void encode(ByteBuf dest, ProtocolVersion version) {
445+ void encode(ByteBuf dest, ProtocolVersion version) {
446446 switch (version) {
447447 case V2:
448448 CBUtil.writeConsistencyLevel(consistency, dest);
@@ -461,7 +461,7 @@
461461 }
462462 }
463463
464- public int encodedSize(ProtocolVersion version) {
464+ int encodedSize(ProtocolVersion version) {
465465 switch (version) {
466466 case V2:
467467 return CBUtil.sizeOfConsistencyLevel(consistency);
@@ -487,9 +487,9 @@
487487 }
488488 }
489489
490- public static class Prepare extends Message.Request {
490+ static class Prepare extends Message.Request {
491491
492- public static final Message.Coder<Prepare> coder = new Message.Coder<Prepare>() {
492+ static final Message.Coder<Prepare> coder = new Message.Coder<Prepare>() {
493493
494494 public void encode(Prepare msg, ByteBuf dest, ProtocolVersion version) {
495495 CBUtil.writeLongString(msg.query, dest);
@@ -502,7 +502,7 @@
502502
503503 private final String query;
504504
505- public Prepare(String query) {
505+ Prepare(String query) {
506506 super(Message.Request.Type.PREPARE);
507507 this.query = query;
508508 }
@@ -513,9 +513,9 @@
513513 }
514514 }
515515
516- public static class Register extends Message.Request {
516+ static class Register extends Message.Request {
517517
518- public static final Message.Coder<Register> coder = new Message.Coder<Register>() {
518+ static final Message.Coder<Register> coder = new Message.Coder<Register>() {
519519 public void encode(Register msg, ByteBuf dest, ProtocolVersion version) {
520520 dest.writeShort(msg.eventTypes.size());
521521 for (ProtocolEvent.Type type : msg.eventTypes)
@@ -532,7 +532,7 @@
532532
533533 private final List<ProtocolEvent.Type> eventTypes;
534534
535- public Register(List<ProtocolEvent.Type> eventTypes) {
535+ Register(List<ProtocolEvent.Type> eventTypes) {
536536 super(Message.Request.Type.REGISTER);
537537 this.eventTypes = eventTypes;
538538 }
@@ -543,9 +543,9 @@
543543 }
544544 }
545545
546- public static class AuthResponse extends Message.Request {
546+ static class AuthResponse extends Message.Request {
547547
548- public static final Message.Coder<AuthResponse> coder = new Message.Coder<AuthResponse>() {
548+ static final Message.Coder<AuthResponse> coder = new Message.Coder<AuthResponse>() {
549549
550550 public void encode(AuthResponse response, ByteBuf dest, ProtocolVersion version) {
551551 CBUtil.writeValue(response.token, dest);
@@ -558,7 +558,7 @@
558558
559559 private final byte[] token;
560560
561- public AuthResponse(byte[] token) {
561+ AuthResponse(byte[] token) {
562562 super(Message.Request.Type.AUTH_RESPONSE);
563563 this.token = token;
564564 }
modified driver-core/src/main/java/com/datastax/driver/core/Responses.java +68 −68
@@ -32,9 +32,9 @@
3232 private Responses() {
3333 }
3434
35- public static class Error extends Message.Response {
35+ static class Error extends Message.Response {
3636
37- public static final Message.Decoder<Error> decoder = new Message.Decoder<Error>() {
37+ static final Message.Decoder<Error> decoder = new Message.Decoder<Error>() {
3838 @Override
3939 public Error decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
4040 ExceptionCode code = ExceptionCode.fromValue(body.readInt());
@@ -89,10 +89,10 @@
8989 }
9090 };
9191
92- public final ProtocolVersion serverProtocolVersion;
93- public final ExceptionCode code;
94- public final String message;
95- public final Object infos; // can be null
92+ final ProtocolVersion serverProtocolVersion;
93+ final ExceptionCode code;
94+ final String message;
95+ final Object infos; // can be null
9696
9797 private Error(ProtocolVersion serverProtocolVersion, ExceptionCode code, String message, Object infos) {
9898 super(Message.Response.Type.ERROR);
@@ -102,7 +102,7 @@
102102 this.infos = infos;
103103 }
104104
105- public DriverException asException(InetSocketAddress host) {
105+ DriverException asException(InetSocketAddress host) {
106106 switch (code) {
107107 case SERVER_ERROR:
108108 return new ServerError(host, message);
@@ -151,9 +151,9 @@
151151 }
152152 }
153153
154- public static class Ready extends Message.Response {
154+ static class Ready extends Message.Response {
155155
156- public static final Message.Decoder<Ready> decoder = new Message.Decoder<Ready>() {
156+ static final Message.Decoder<Ready> decoder = new Message.Decoder<Ready>() {
157157 public Ready decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
158158 // TODO: Would it be cool to return a singleton? Check we don't need to
159159 // set the streamId or something
@@ -161,7 +161,7 @@
161161 }
162162 };
163163
164- public Ready() {
164+ Ready() {
165165 super(Message.Response.Type.READY);
166166 }
167167
@@ -171,18 +171,18 @@
171171 }
172172 }
173173
174- public static class Authenticate extends Message.Response {
174+ static class Authenticate extends Message.Response {
175175
176- public static final Message.Decoder<Authenticate> decoder = new Message.Decoder<Authenticate>() {
176+ static final Message.Decoder<Authenticate> decoder = new Message.Decoder<Authenticate>() {
177177 public Authenticate decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
178178 String authenticator = CBUtil.readString(body);
179179 return new Authenticate(authenticator);
180180 }
181181 };
182182
183- public final String authenticator;
183+ final String authenticator;
184184
185- public Authenticate(String authenticator) {
185+ Authenticate(String authenticator) {
186186 super(Message.Response.Type.AUTHENTICATE);
187187 this.authenticator = authenticator;
188188 }
@@ -193,18 +193,18 @@
193193 }
194194 }
195195
196- public static class Supported extends Message.Response {
196+ static class Supported extends Message.Response {
197197
198- public static final Message.Decoder<Supported> decoder = new Message.Decoder<Supported>() {
198+ static final Message.Decoder<Supported> decoder = new Message.Decoder<Supported>() {
199199 public Supported decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
200200 return new Supported(CBUtil.readStringToStringListMap(body));
201201 }
202202 };
203203
204- public final Map<String, List<String>> supported;
205- public final Set<ProtocolOptions.Compression> supportedCompressions = EnumSet.noneOf(ProtocolOptions.Compression.class);
204+ final Map<String, List<String>> supported;
205+ final Set<ProtocolOptions.Compression> supportedCompressions = EnumSet.noneOf(ProtocolOptions.Compression.class);
206206
207- public Supported(Map<String, List<String>> supported) {
207+ Supported(Map<String, List<String>> supported) {
208208 super(Message.Response.Type.SUPPORTED);
209209 this.supported = supported;
210210
@@ -229,16 +229,16 @@
229229 }
230230 }
231231
232- public static abstract class Result extends Message.Response {
232+ static abstract class Result extends Message.Response {
233233
234- public static final Message.Decoder<Result> decoder = new Message.Decoder<Result>() {
234+ static final Message.Decoder<Result> decoder = new Message.Decoder<Result>() {
235235 public Result decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
236236 Kind kind = Kind.fromId(body.readInt());
237237 return kind.subDecoder.decode(body, version, codecRegistry);
238238 }
239239 };
240240
241- public enum Kind {
241+ enum Kind {
242242 VOID(1, Void.subcodec),
243243 ROWS(2, Rows.subcodec),
244244 SET_KEYSPACE(3, SetKeyspace.subcodec),
@@ -262,12 +262,12 @@
262262 }
263263 }
264264
265- private Kind(int id, Message.Decoder<Result> subDecoder) {
265+ Kind(int id, Message.Decoder<Result> subDecoder) {
266266 this.id = id;
267267 this.subDecoder = subDecoder;
268268 }
269269
270- public static Kind fromId(int id) {
270+ static Kind fromId(int id) {
271271 Kind k = ids[id];
272272 if (k == null)
273273 throw new DriverInternalError(String.format("Unknown kind id %d in RESULT message", id));
@@ -275,21 +275,21 @@
275275 }
276276 }
277277
278- public final Kind kind;
278+ final Kind kind;
279279
280280 protected Result(Kind kind) {
281281 super(Message.Response.Type.RESULT);
282282 this.kind = kind;
283283 }
284284
285- public static class Void extends Result {
285+ static class Void extends Result {
286286 // Even though we have no specific information here, don't make a
287287 // singleton since as each message it has in fact a streamid and connection.
288- public Void() {
288+ Void() {
289289 super(Kind.VOID);
290290 }
291291
292- public static final Message.Decoder<Result> subcodec = new Message.Decoder<Result>() {
292+ static final Message.Decoder<Result> subcodec = new Message.Decoder<Result>() {
293293 public Result decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
294294 return new Void();
295295 }
@@ -301,15 +301,15 @@
301301 }
302302 }
303303
304- public static class SetKeyspace extends Result {
305- public final String keyspace;
304+ static class SetKeyspace extends Result {
305+ final String keyspace;
306306
307307 private SetKeyspace(String keyspace) {
308308 super(Kind.SET_KEYSPACE);
309309 this.keyspace = keyspace;
310310 }
311311
312- public static final Message.Decoder<Result> subcodec = new Message.Decoder<Result>() {
312+ static final Message.Decoder<Result> subcodec = new Message.Decoder<Result>() {
313313 public Result decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
314314 return new SetKeyspace(CBUtil.readString(body));
315315 }
@@ -321,17 +321,17 @@
321321 }
322322 }
323323
324- public static class Rows extends Result {
324+ static class Rows extends Result {
325325
326- public static class Metadata {
326+ static class Metadata {
327327
328- private static enum Flag {
328+ private enum Flag {
329329 // The order of that enum matters!!
330330 GLOBAL_TABLES_SPEC,
331331 HAS_MORE_PAGES,
332332 NO_METADATA;
333333
334- public static EnumSet<Flag> deserialize(int flags) {
334+ static EnumSet<Flag> deserialize(int flags) {
335335 EnumSet<Flag> set = EnumSet.noneOf(Flag.class);
336336 Flag[] values = Flag.values();
337337 for (int n = 0; n < values.length; n++) {
@@ -341,7 +341,7 @@
341341 return set;
342342 }
343343
344- public static int serialize(EnumSet<Flag> flags) {
344+ static int serialize(EnumSet<Flag> flags) {
345345 int i = 0;
346346 for (Flag flag : flags)
347347 i |= 1 << flag.ordinal();
@@ -351,10 +351,10 @@
351351
352352 static final Metadata EMPTY = new Metadata(0, null, null, null);
353353
354- public final int columnCount;
355- public final ColumnDefinitions columns; // Can be null if no metadata was asked by the query
356- public final ByteBuffer pagingState;
357- public final int[] pkIndices;
354+ final int columnCount;
355+ final ColumnDefinitions columns; // Can be null if no metadata was asked by the query
356+ final ByteBuffer pagingState;
357+ final int[] pkIndices;
358358
359359 private Metadata(int columnCount, ColumnDefinitions columns, ByteBuffer pagingState, int[] pkIndices) {
360360 this.columnCount = columnCount;
@@ -363,11 +363,11 @@
363363 this.pkIndices = pkIndices;
364364 }
365365
366- public static Metadata decode(ByteBuf body, ProtocolVersion protocolVersion, CodecRegistry codecRegistry) {
366+ static Metadata decode(ByteBuf body, ProtocolVersion protocolVersion, CodecRegistry codecRegistry) {
367367 return decode(body, false, protocolVersion, codecRegistry);
368368 }
369369
370- public static Metadata decode(ByteBuf body, boolean withPkIndices, ProtocolVersion protocolVersion, CodecRegistry codecRegistry) {
370+ static Metadata decode(ByteBuf body, boolean withPkIndices, ProtocolVersion protocolVersion, CodecRegistry codecRegistry) {
371371
372372 // flags & column count
373373 EnumSet<Flag> flags = Flag.deserialize(body.readInt());
@@ -428,7 +428,7 @@
428428 }
429429 }
430430
431- public static final Message.Decoder<Result> subcodec = new Message.Decoder<Result>() {
431+ static final Message.Decoder<Result> subcodec = new Message.Decoder<Result>() {
432432 public Result decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
433433
434434 Metadata metadata = Metadata.decode(body, version, codecRegistry);
@@ -448,8 +448,8 @@
448448 }
449449 };
450450
451- public final Metadata metadata;
452- public final Queue<List<ByteBuffer>> data;
451+ final Metadata metadata;
452+ final Queue<List<ByteBuffer>> data;
453453 private final ProtocolVersion version;
454454
455455 private Rows(Metadata metadata, Queue<List<ByteBuffer>> data, ProtocolVersion version) {
@@ -492,9 +492,9 @@
492492 }
493493 }
494494
495- public static class Prepared extends Result {
495+ static class Prepared extends Result {
496496
497- public static final Message.Decoder<Result> subcodec = new Message.Decoder<Result>() {
497+ static final Message.Decoder<Result> subcodec = new Message.Decoder<Result>() {
498498 public Result decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
499499 MD5Digest id = MD5Digest.wrap(CBUtil.readBytes(body));
500500 boolean withPkIndices = version.compareTo(V4) >= 0;
@@ -517,9 +517,9 @@
517517 }
518518 };
519519
520- public final MD5Digest statementId;
521- public final Rows.Metadata metadata;
522- public final Rows.Metadata resultMetadata;
520+ final MD5Digest statementId;
521+ final Rows.Metadata metadata;
522+ final Rows.Metadata resultMetadata;
523523
524524 private Prepared(MD5Digest statementId, Rows.Metadata metadata, Rows.Metadata resultMetadata) {
525525 super(Kind.PREPARED);
@@ -534,17 +534,17 @@
534534 }
535535 }
536536
537- public static class SchemaChange extends Result {
537+ static class SchemaChange extends Result {
538538
539- public enum Change {CREATED, UPDATED, DROPPED}
539+ enum Change {CREATED, UPDATED, DROPPED}
540540
541- public final Change change;
542- public final SchemaElement targetType;
543- public final String targetKeyspace;
544- public final String targetName;
545- public final List<String> targetSignature;
541+ final Change change;
542+ final SchemaElement targetType;
543+ final String targetKeyspace;
544+ final String targetName;
545+ final List<String> targetSignature;
546546
547- public static final Message.Decoder<Result> subcodec = new Message.Decoder<Result>() {
547+ static final Message.Decoder<Result> subcodec = new Message.Decoder<Result>() {
548548 public Result decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
549549 // Note: the CREATE KEYSPACE/TABLE/TYPE SCHEMA_CHANGE response is different from the SCHEMA_CHANGE EVENT type
550550 Change change;
@@ -592,17 +592,17 @@
592592 }
593593 }
594594
595- public static class Event extends Message.Response {
595+ static class Event extends Message.Response {
596596
597- public static final Message.Decoder<Event> decoder = new Message.Decoder<Event>() {
597+ static final Message.Decoder<Event> decoder = new Message.Decoder<Event>() {
598598 public Event decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
599599 return new Event(ProtocolEvent.deserialize(body, version));
600600 }
601601 };
602602
603- public final ProtocolEvent event;
603+ final ProtocolEvent event;
604604
605- public Event(ProtocolEvent event) {
605+ Event(ProtocolEvent event) {
606606 super(Message.Response.Type.EVENT);
607607 this.event = event;
608608 }
@@ -613,9 +613,9 @@
613613 }
614614 }
615615
616- public static class AuthChallenge extends Message.Response {
616+ static class AuthChallenge extends Message.Response {
617617
618- public static final Message.Decoder<AuthChallenge> decoder = new Message.Decoder<AuthChallenge>() {
618+ static final Message.Decoder<AuthChallenge> decoder = new Message.Decoder<AuthChallenge>() {
619619 public AuthChallenge decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
620620 ByteBuffer b = CBUtil.readValue(body);
621621 if (b == null)
@@ -627,7 +627,7 @@
627627 }
628628 };
629629
630- public final byte[] token;
630+ final byte[] token;
631631
632632 private AuthChallenge(byte[] token) {
633633 super(Message.Response.Type.AUTH_CHALLENGE);
@@ -635,9 +635,9 @@
635635 }
636636 }
637637
638- public static class AuthSuccess extends Message.Response {
638+ static class AuthSuccess extends Message.Response {
639639
640- public static final Message.Decoder<AuthSuccess> decoder = new Message.Decoder<AuthSuccess>() {
640+ static final Message.Decoder<AuthSuccess> decoder = new Message.Decoder<AuthSuccess>() {
641641 public AuthSuccess decode(ByteBuf body, ProtocolVersion version, CodecRegistry codecRegistry) {
642642 ByteBuffer b = CBUtil.readValue(body);
643643 if (b == null)
@@ -649,7 +649,7 @@
649649 }
650650 };
651651
652- public final byte[] token;
652+ final byte[] token;
653653
654654 private AuthSuccess(byte[] token) {
655655 super(Message.Response.Type.AUTH_SUCCESS);
modified driver-core/src/main/java/com/datastax/driver/core/Session.java +28 −28
@@ -26,15 +26,15 @@
2626 * <p/>
2727 * Each session maintains multiple connections to the cluster nodes,
2828 * provides policies to choose which node to use for each query (round-robin on
29- * all nodes of the cluster by default), and handles retries for failed query (when
29+ * all nodes of the cluster by default), and handles retries for failed queries (when
3030 * it makes sense), etc...
3131 * <p/>
3232 * Session instances are thread-safe and usually a single instance is enough
3333 * per application. As a given session can only be "logged" into one keyspace at
34- * a time (where the "logged" keyspace is the one used by query if the query doesn't
35- * explicitely use a fully qualified table name), it can make sense to create one
36- * session per keyspace used. This is however not necessary to query multiple keyspaces
37- * since it is always possible to use a single session with fully qualified table name
34+ * a time (where the "logged" keyspace is the one used by queries that don't
35+ * explicitly use a fully qualified table name), it can make sense to create one
36+ * session per keyspace used. This is however not necessary when querying multiple keyspaces
37+ * since it is always possible to use a single session with fully qualified table names
3838 * in queries.
3939 */
4040 public interface Session extends Closeable {
@@ -54,18 +54,18 @@
5454 * Force the initialization of this Session instance if it hasn't been
5555 * initialized yet.
5656 * <p/>
57- * Please note first that most use won't need to call this method
58- * explicitly. If you use the {@link Cluster#connect} method {@code Cluster}
57+ * Please note first that most users won't need to call this method
58+ * explicitly. If you use the {@link Cluster#connect} method
5959 * to create your Session, the returned session will be already
6060 * initialized. Even if you create a non-initialized session through
6161 * {@link Cluster#newSession}, that session will get automatically
62- * initialized the first time that session is used for querying. This method
62+ * initialized the first time it is used for querying. This method
6363 * is thus only useful if you use {@link Cluster#newSession} and want to
6464 * explicitly force initialization without querying.
6565 * <p/>
6666 * Session initialization consists in connecting the Session to the known
6767 * Cassandra hosts (at least those that should not be ignored due to
68- * the {@code LoadBalancingPolicy} in place).
68+ * the {@link com.datastax.driver.core.policies.LoadBalancingPolicy LoadBalancingPolicy} in place).
6969 * <p/>
7070 * If the Cluster instance this Session depends on is not itself
7171 * initialized, it will be initialized by this method.
@@ -74,10 +74,10 @@
7474 *
7575 * @return this {@code Session} object.
7676 * @throws NoHostAvailableException if this initialization triggers the
77- * Cluster initialization and no host amongst the contact points can be
77+ * {@link Cluster} initialization and no host amongst the contact points can be
7878 * reached.
7979 * @throws AuthenticationException if this initialization triggers the
80- * Cluster initialization and an authentication error occurs while contacting
80+ * {@link Cluster} initialization and an authentication error occurs while contacting
8181 * the initial contact points.
8282 */
8383 Session init();
@@ -115,7 +115,7 @@
115115 *
116116 * @param query the CQL query to execute.
117117 * @param values values required for the execution of {@code query}. See
118- * {@link SimpleStatement(String, Object...)} for more detail.
118+ * {@link SimpleStatement#SimpleStatement(String, Object...)} for more detail.
119119 * @return the result of the query. That result will never be null but can
120120 * be empty (and will be for any non SELECT query).
121121 * @throws NoHostAvailableException if no host in the cluster can be
@@ -138,10 +138,10 @@
138138 * database. However, for SELECT queries, it does not guarantee that the
139139 * result has been received in full. But it does guarantee that some
140140 * response has been received from the database, and in particular
141- * guarantee that if the request is invalid, an exception will be thrown
141+ * guarantees that if the request is invalid, an exception will be thrown
142142 * by this method.
143143 *
144- * @param statement the CQL query to execute (that can be any {@code Statement}).
144+ * @param statement the CQL query to execute (that can be any {@link Statement}).
145145 * @return the result of the query. That result will never be null but can
146146 * be empty (and will be for any non SELECT query).
147147 * @throws NoHostAvailableException if no host in the cluster can be
@@ -175,7 +175,7 @@
175175 *
176176 * @param query the CQL query to execute.
177177 * @param values values required for the execution of {@code query}. See
178- * {@link SimpleStatement(String, Object...)} for more detail.
178+ * {@link SimpleStatement#SimpleStatement(String, Object...)} for more detail.
179179 * @return a future on the result of the query.
180180 * @throws UnsupportedFeatureException if version 1 of the protocol
181181 * is in use (i.e. if you've force version 1 through {@link Cluster.Builder#withProtocolVersion}
@@ -192,11 +192,11 @@
192192 * submitted to a live node. Any exception pertaining to the failure of the
193193 * query will be thrown when accessing the {@link ResultSetFuture}.
194194 * <p/>
195- * Note that for queries that doesn't return a result (INSERT, UPDATE and
196- * DELETE), you will need to access the ResultSetFuture (that is call one of
197- * its get method to make sure the query was successful.
195+ * Note that for queries that don't return a result (INSERT, UPDATE and
196+ * DELETE), you will need to access the ResultSetFuture (that is, call one of
197+ * its {@code get} methods to make sure the query was successful.
198198 *
199- * @param statement the CQL query to execute (that can be either any {@code Statement}.
199+ * @param statement the CQL query to execute (that can be any {@code Statement}).
200200 * @return a future on the result of the query.
201201 * @throws UnsupportedFeatureException if the protocol version 1 is in use and
202202 * a feature not supported has been used. Features that are not supported by
@@ -287,7 +287,7 @@
287287 * Initiates a shutdown of this session instance.
288288 * <p/>
289289 * This method is asynchronous and return a future on the completion
290- * of the shutdown process. As soon a the session is shutdown, no
290+ * of the shutdown process. As soon as the session is shutdown, no
291291 * new request will be accepted, but already submitted queries are
292292 * allowed to complete. This method closes all connections of this
293293 * session and reclaims all resources used by it.
@@ -328,7 +328,7 @@
328328 /**
329329 * Whether this Session instance has been closed.
330330 * <p/>
331- * Note that this method returns true as soon as one closing this Session
331+ * Note that this method returns true as soon as the closing of this Session
332332 * has started but it does not guarantee that the closing is done. If you
333333 * want to guarantee that the closing is done, you can call {@code close()}
334334 * and wait until it returns (or call the get method on {@code closeAsync()}
@@ -362,7 +362,7 @@
362362 * The state of a Session.
363363 * <p/>
364364 * This mostly exposes information on the connections maintained by a Session:
365- * which host it is connected to, how many connection is has for each host, etc...
365+ * which host it is connected to, how many connections it has for each host, etc...
366366 */
367367 interface State {
368368 /**
@@ -377,9 +377,9 @@
377377 * this State has been grabbed).
378378 * <p/>
379379 * Please note that this method really returns the hosts for which the session currently
380- * holds a connection pool. A such, it's unlikely but not impossible for a host to be listed
380+ * holds a connection pool. As such, it's unlikely but not impossible for a host to be listed
381381 * in the output of this method but to have {@code getOpenConnections} return 0, if the
382- * pool itself is created but not connections have been successfully opened yet.
382+ * pool itself is created but no connections have been successfully opened yet.
383383 *
384384 * @return an immutable collection of the hosts to which the session is connected.
385385 */
@@ -412,11 +412,11 @@
412412 int getTrashedConnections(Host host);
413413
414414 /**
415- * The number of queries that are currently being executed though a given host.
415+ * The number of queries that are currently being executed through a given host.
416416 * <p/>
417- * This correspond to the number of queries that have been sent (by the session this
418- * is a State of) to the Cassandra Host on one of its connection but haven't yet returned.
419- * In that sense this provide a sort of measure of how busy the connections to that node
417+ * This corresponds to the number of queries that have been sent (by the session this
418+ * is a State of) to the Cassandra Host on one of its connections but haven't yet returned.
419+ * In that sense this provides a sort of measure of how busy the connections to that node
420420 * are (at the time the {@code State} was grabbed at least).
421421 *
422422 * @param host the host to get in-flight queries for.
modified driver-core/src/main/java/com/datastax/driver/core/exceptions/InvalidConfigurationInQueryException.java +0 −8
@@ -28,14 +28,6 @@
2828
2929 private static final long serialVersionUID = 0;
3030
31- /**
32- * @deprecated This constructor is kept for backwards compatibility.
33- */
34- @Deprecated
35- public InvalidConfigurationInQueryException(String msg) {
36- this(null, msg);
37- }
38-
3931 public InvalidConfigurationInQueryException(InetSocketAddress address, String msg) {
4032 super(address, msg);
4133 }
modified driver-core/src/main/java/com/datastax/driver/core/exceptions/SyntaxError.java +0 −8
@@ -27,14 +27,6 @@
2727
2828 private final InetSocketAddress address;
2929
30- /**
31- * @deprecated This constructor is kept for backwards compatibility.
32- */
33- @Deprecated
34- public SyntaxError(String msg) {
35- this(null, msg);
36- }
37-
3830 public SyntaxError(InetSocketAddress address, String msg) {
3931 super(msg);
4032 this.address = address;
modified driver-core/src/main/java/com/datastax/driver/core/exceptions/TruncateException.java +0 −8
@@ -27,14 +27,6 @@
2727
2828 private final InetSocketAddress address;
2929
30- /**
31- * @deprecated This constructor is kept for backwards compatibility.
32- */
33- @Deprecated
34- public TruncateException(String msg) {
35- this(null, msg);
36- }
37-
3830 public TruncateException(InetSocketAddress address, String msg) {
3931 super(msg);
4032 this.address = address;
modified driver-core/src/main/java/com/datastax/driver/core/exceptions/UnauthorizedException.java +0 −8
@@ -28,14 +28,6 @@
2828
2929 private final InetSocketAddress address;
3030
31- /**
32- * @deprecated This constructor is kept for backwards compatibility.
33- */
34- @Deprecated
35- public UnauthorizedException(String msg) {
36- this(null, msg);
37- }
38-
3931 public UnauthorizedException(InetSocketAddress address, String msg) {
4032 super(msg);
4133 this.address = address;
modified driver-core/src/main/java/com/datastax/driver/core/policies/IdempotenceAwareRetryPolicy.java +1 −1
@@ -21,7 +21,7 @@
2121 /**
2222 * A retry policy that avoids retrying non-idempotent statements.
2323 * <p/>
24- * In case of write timeouts or unexpected errors, this policy will always return {@link RetryDecision#rethrow()}
24+ * In case of write timeouts or unexpected errors, this policy will always return {@link com.datastax.driver.core.policies.RetryPolicy.RetryDecision#rethrow()}
2525 * if the statement is deemed non-idempotent (see {@link #isIdempotent(Statement)}).
2626 * <p/>
2727 * For all other cases, this policy delegates the decision to the child policy.
modified driver-core/src/main/java/com/datastax/driver/core/schemabuilder/TableOptions.java +1 −1
@@ -806,7 +806,7 @@
806806 */
807807 public static class DateTieredCompactionStrategyOptions extends CompactionOptions<DateTieredCompactionStrategyOptions> {
808808
809- enum TimeStampResolution {MICROSECONDS, MILLISECONDS}
809+ public enum TimeStampResolution {MICROSECONDS, MILLISECONDS}
810810
811811 private Optional<Integer> baseTimeSeconds = Optional.absent();
812812
modified driver-dist/pom.xml +133 −132
@@ -15,147 +15,148 @@
1515 limitations under the License.
1616
1717 -->
18-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19- <modelVersion>4.0.0</modelVersion>
20- <parent>
21- <groupId>com.datastax.cassandra</groupId>
22- <artifactId>cassandra-driver-parent</artifactId>
23- <version>3.0.0-SNAPSHOT</version>
24- </parent>
25- <artifactId>cassandra-driver-dist</artifactId>
18+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+ <modelVersion>4.0.0</modelVersion>
21+ <parent>
22+ <groupId>com.datastax.cassandra</groupId>
23+ <artifactId>cassandra-driver-parent</artifactId>
24+ <version>3.0.0-SNAPSHOT</version>
25+ </parent>
26+ <artifactId>cassandra-driver-dist</artifactId>
2627
27- <properties>
28- <main.basedir>${project.parent.basedir}</main.basedir>
29- </properties>
28+ <properties>
29+ <main.basedir>${project.parent.basedir}</main.basedir>
30+ </properties>
3031
31- <!-- Should be pom but Javadoc generation requires a "classpath-capable" package -->
32- <packaging>jar</packaging>
32+ <!-- Should be pom but Javadoc generation requires a "classpath-capable" package -->
33+ <packaging>jar</packaging>
3334
34- <name>DataStax Java Driver for Apache Cassandra - Binary distribution</name>
35+ <name>DataStax Java Driver for Apache Cassandra - Binary distribution</name>
3536
36- <!-- These dependencies are only here to ensure proper build order -->
37- <dependencies>
38- <dependency>
39- <groupId>com.datastax.cassandra</groupId>
40- <artifactId>cassandra-driver-core</artifactId>
41- <version>${project.parent.version}</version>
42- </dependency>
37+ <!-- These dependencies are only here to ensure proper build order -->
38+ <dependencies>
39+ <dependency>
40+ <groupId>com.datastax.cassandra</groupId>
41+ <artifactId>cassandra-driver-core</artifactId>
42+ <version>${project.parent.version}</version>
43+ </dependency>
4344
44- <dependency>
45- <groupId>com.datastax.cassandra</groupId>
46- <artifactId>cassandra-driver-dse</artifactId>
47- <version>${project.parent.version}</version>
48- </dependency>
45+ <dependency>
46+ <groupId>com.datastax.cassandra</groupId>
47+ <artifactId>cassandra-driver-dse</artifactId>
48+ <version>${project.parent.version}</version>
49+ </dependency>
4950
50- <dependency>
51- <groupId>com.datastax.cassandra</groupId>
52- <artifactId>cassandra-driver-mapping</artifactId>
53- <version>${project.parent.version}</version>
54- </dependency>
51+ <dependency>
52+ <groupId>com.datastax.cassandra</groupId>
53+ <artifactId>cassandra-driver-mapping</artifactId>
54+ <version>${project.parent.version}</version>
55+ </dependency>
5556
56- <dependency>
57- <groupId>com.datastax.cassandra</groupId>
58- <artifactId>cassandra-driver-extras</artifactId>
59- <version>${project.parent.version}</version>
60- </dependency>
57+ <dependency>
58+ <groupId>com.datastax.cassandra</groupId>
59+ <artifactId>cassandra-driver-extras</artifactId>
60+ <version>${project.parent.version}</version>
61+ </dependency>
6162
62- </dependencies>
63+ </dependencies>
6364
64- <build>
65- <finalName>cassandra-java-driver-${project.version}</finalName>
66- <plugins>
67- <plugin>
68- <artifactId>maven-javadoc-plugin</artifactId>
69- <version>2.9.1</version>
70- <executions>
71- <execution>
72- <id>dependencies-javadoc</id>
73- <phase>package</phase>
74- <goals>
75- <goal>jar</goal>
76- </goals>
77- <configuration>
78- <includeDependencySources>true</includeDependencySources>
79- <!-- optional dependencies from other modules (must be explicitly declared here in order to be correctly resolved) -->
80- <additionalDependencies>
81- <additionalDependency>
82- <groupId>org.xerial.snappy</groupId>
83- <artifactId>snappy-java</artifactId>
84- <version>${snappy.version}</version>
85- </additionalDependency>
86- <additionalDependency>
87- <groupId>net.jpountz.lz4</groupId>
88- <artifactId>lz4</artifactId>
89- <version>${lz4.version}</version>
90- </additionalDependency>
91- <additionalDependency>
92- <groupId>org.hdrhistogram</groupId>
93- <artifactId>HdrHistogram</artifactId>
94- <version>${hdr.version}</version>
95- </additionalDependency>
96- <additionalDependency>
97- <groupId>com.fasterxml.jackson.core</groupId>
98- <artifactId>jackson-core</artifactId>
99- <version>${jackson.version}</version>
100- </additionalDependency>
101- <additionalDependency>
102- <groupId>com.fasterxml.jackson.core</groupId>
103- <artifactId>jackson-databind</artifactId>
104- <version>${jackson.version}</version>
105- </additionalDependency>
106- <additionalDependency>
107- <groupId>joda-time</groupId>
108- <artifactId>joda-time</artifactId>
109- <version>${joda.version}</version>
110- </additionalDependency>
111- <additionalDependency>
112- <groupId>javax.json</groupId>
113- <artifactId>javax.json-api</artifactId>
114- <version>${jsr353-api.version}</version>
115- </additionalDependency>
116- </additionalDependencies>
117- </configuration>
118- </execution>
119- </executions>
120- </plugin>
121- <plugin>
122- <artifactId>maven-assembly-plugin</artifactId>
123- <version>2.6</version>
124- <executions>
125- <execution>
126- <id>assemble-binary-tarball</id>
127- <phase>package</phase>
128- <goals>
129- <goal>single</goal>
130- </goals>
131- </execution>
132- </executions>
133- <configuration>
134- <appendAssemblyId>false</appendAssemblyId>
135- <descriptors>
136- <descriptor>src/assembly/binary-tarball.xml</descriptor>
137- </descriptors>
138- <tarLongFileMode>posix</tarLongFileMode>
139- </configuration>
140- </plugin>
141- <plugin>
142- <groupId>org.apache.maven.plugins</groupId>
143- <artifactId>maven-install-plugin</artifactId>
144- <version>2.5.1</version>
145- <configuration>
146- <skip>true</skip>
147- </configuration>
148- </plugin>
149- <plugin>
150- <groupId>org.apache.maven.plugins</groupId>
151- <artifactId>maven-deploy-plugin</artifactId>
152- <version>2.8.1</version>
153- <configuration>
154- <skip>true</skip>
155- </configuration>
156- </plugin>
157- </plugins>
158- </build>
65+ <build>
66+ <finalName>cassandra-java-driver-${project.version}</finalName>
67+ <plugins>
68+ <plugin>
69+ <artifactId>maven-javadoc-plugin</artifactId>
70+ <version>2.9.1</version>
71+ <executions>
72+ <execution>
73+ <id>dependencies-javadoc</id>
74+ <phase>package</phase>
75+ <goals>
76+ <goal>jar</goal>
77+ </goals>
78+ <configuration>
79+ <includeDependencySources>true</includeDependencySources>
80+ <!-- optional dependencies from other modules (must be explicitly declared here in order to be correctly resolved) -->
81+ <additionalDependencies>
82+ <additionalDependency>
83+ <groupId>org.xerial.snappy</groupId>
84+ <artifactId>snappy-java</artifactId>
85+ <version>${snappy.version}</version>
86+ </additionalDependency>
87+ <additionalDependency>
88+ <groupId>net.jpountz.lz4</groupId>
89+ <artifactId>lz4</artifactId>
90+ <version>${lz4.version}</version>
91+ </additionalDependency>
92+ <additionalDependency>
93+ <groupId>org.hdrhistogram</groupId>
94+ <artifactId>HdrHistogram</artifactId>
95+ <version>${hdr.version}</version>
96+ </additionalDependency>
97+ <additionalDependency>
98+ <groupId>com.fasterxml.jackson.core</groupId>
99+ <artifactId>jackson-core</artifactId>
100+ <version>${jackson.version}</version>
101+ </additionalDependency>
102+ <additionalDependency>
103+ <groupId>com.fasterxml.jackson.core</groupId>
104+ <artifactId>jackson-databind</artifactId>
105+ <version>${jackson.version}</version>
106+ </additionalDependency>
107+ <additionalDependency>
108+ <groupId>joda-time</groupId>
109+ <artifactId>joda-time</artifactId>
110+ <version>${joda.version}</version>
111+ </additionalDependency>
112+ <additionalDependency>
113+ <groupId>javax.json</groupId>
114+ <artifactId>javax.json-api</artifactId>
115+ <version>${jsr353-api.version}</version>
116+ </additionalDependency>
117+ </additionalDependencies>
118+ </configuration>
119+ </execution>
120+ </executions>
121+ </plugin>
122+ <plugin>
123+ <artifactId>maven-assembly-plugin</artifactId>
124+ <version>2.6</version>
125+ <executions>
126+ <execution>
127+ <id>assemble-binary-tarball</id>
128+ <phase>package</phase>
129+ <goals>
130+ <goal>single</goal>
131+ </goals>
132+ </execution>
133+ </executions>
134+ <configuration>
135+ <appendAssemblyId>false</appendAssemblyId>
136+ <descriptors>
137+ <descriptor>src/assembly/binary-tarball.xml</descriptor>
138+ </descriptors>
139+ <tarLongFileMode>posix</tarLongFileMode>
140+ </configuration>
141+ </plugin>
142+ <plugin>
143+ <groupId>org.apache.maven.plugins</groupId>
144+ <artifactId>maven-install-plugin</artifactId>
145+ <version>2.5.1</version>
146+ <configuration>
147+ <skip>true</skip>
148+ </configuration>
149+ </plugin>
150+ <plugin>
151+ <groupId>org.apache.maven.plugins</groupId>
152+ <artifactId>maven-deploy-plugin</artifactId>
153+ <version>2.8.1</version>
154+ <configuration>
155+ <skip>true</skip>
156+ </configuration>
157+ </plugin>
158+ </plugins>
159+ </build>
159160
160161 </project>
161162
modified driver-dist/src/assembly/binary-tarball.xml +18 −8
@@ -42,17 +42,27 @@
4242 <exclude>io.netty:netty-transport-native-epoll:*</exclude>
4343 </excludes>
4444 </dependencySet>
45- <dependencySet>
46- <outputDirectory>src</outputDirectory>
47- <includes>
48- <include>com.datastax.cassandra:*:*:sources:*</include>
49- </includes>
50- <useProjectAttachments>true</useProjectAttachments>
51- <useTransitiveDependencies>true</useTransitiveDependencies>
52- </dependencySet>
5345 </dependencySets>
5446 </binaries>
5547 </moduleSet>
48+ <moduleSet>
49+ <useAllReactorProjects>true</useAllReactorProjects>
50+ <includes>
51+ <include>com.datastax.cassandra:cassandra-driver-core</include>
52+ <include>com.datastax.cassandra:cassandra-driver-dse</include>
53+ <include>com.datastax.cassandra:cassandra-driver-mapping</include>
54+ <include>com.datastax.cassandra:cassandra-driver-extras</include>
55+ </includes>
56+ <binaries>
57+ <unpack>false</unpack>
58+ <attachmentClassifier>sources</attachmentClassifier>
59+ <outputFileNameMapping>${module.artifactId}-${module.version}-src.zip</outputFileNameMapping>
60+ <outputDirectory>src</outputDirectory>
61+ <excludes>
62+ <exclude>*</exclude>
63+ </excludes>
64+ </binaries>
65+ </moduleSet>
5666 </moduleSets>
5767 <fileSets>
5868 <fileSet>
modified driver-dse/pom.xml +65 −64
@@ -15,76 +15,77 @@
1515 limitations under the License.
1616
1717 -->
18-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19- <modelVersion>4.0.0</modelVersion>
20- <parent>
21- <groupId>com.datastax.cassandra</groupId>
22- <artifactId>cassandra-driver-parent</artifactId>
23- <version>3.0.0-SNAPSHOT</version>
24- </parent>
25- <artifactId>cassandra-driver-dse</artifactId>
26- <packaging>bundle</packaging>
27- <name>DataStax Java Driver for Apache Cassandra - DataStax Enterprise Module</name>
28- <description>Extensions to the CQL driver for use with DataStax Enterprise.</description>
29- <url>https://github.com/datastax/java-driver</url>
18+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+ <modelVersion>4.0.0</modelVersion>
21+ <parent>
22+ <groupId>com.datastax.cassandra</groupId>
23+ <artifactId>cassandra-driver-parent</artifactId>
24+ <version>3.0.0-SNAPSHOT</version>
25+ </parent>
26+ <artifactId>cassandra-driver-dse</artifactId>
27+ <packaging>bundle</packaging>
28+ <name>DataStax Java Driver for Apache Cassandra - DataStax Enterprise Module</name>
29+ <description>Extensions to the CQL driver for use with DataStax Enterprise.</description>
30+ <url>https://github.com/datastax/java-driver</url>
3031
31- <properties>
32- <main.basedir>${project.parent.basedir}</main.basedir>
33- </properties>
32+ <properties>
33+ <main.basedir>${project.parent.basedir}</main.basedir>
34+ </properties>
3435
35- <dependencies>
36- <dependency>
37- <groupId>com.datastax.cassandra</groupId>
38- <artifactId>cassandra-driver-core</artifactId>
39- <version>${project.parent.version}</version>
40- </dependency>
41- </dependencies>
36+ <dependencies>
37+ <dependency>
38+ <groupId>com.datastax.cassandra</groupId>
39+ <artifactId>cassandra-driver-core</artifactId>
40+ <version>${project.parent.version}</version>
41+ </dependency>
42+ </dependencies>
4243
43- <build>
44- <plugins>
45- <plugin>
46- <groupId>org.apache.felix</groupId>
47- <artifactId>maven-bundle-plugin</artifactId>
48- <extensions>true</extensions>
49- <version>2.4.0</version>
50- <configuration>
51- <instructions>
52- <Bundle-SymbolicName>com.datastax.driver.dse</Bundle-SymbolicName>
53- <Bundle-Version>${project.version}</Bundle-Version>
54- <_include>-osgi.bnd</_include>
55- </instructions>
56- <supportedProjectTypes>
57- <supportedProjectType>jar</supportedProjectType>
58- <supportedProjectType>bundle</supportedProjectType>
59- <supportedProjectType>pom</supportedProjectType>
60- </supportedProjectTypes>
61- </configuration>
62- </plugin>
63- </plugins>
64- </build>
44+ <build>
45+ <plugins>
46+ <plugin>
47+ <groupId>org.apache.felix</groupId>
48+ <artifactId>maven-bundle-plugin</artifactId>
49+ <extensions>true</extensions>
50+ <version>2.4.0</version>
51+ <configuration>
52+ <instructions>
53+ <Bundle-SymbolicName>com.datastax.driver.dse</Bundle-SymbolicName>
54+ <Bundle-Version>${project.version}</Bundle-Version>
55+ <_include>-osgi.bnd</_include>
56+ </instructions>
57+ <supportedProjectTypes>
58+ <supportedProjectType>jar</supportedProjectType>
59+ <supportedProjectType>bundle</supportedProjectType>
60+ <supportedProjectType>pom</supportedProjectType>
61+ </supportedProjectTypes>
62+ </configuration>
63+ </plugin>
64+ </plugins>
65+ </build>
6566
66- <licenses>
67- <license>
68- <name>Apache 2</name>
69- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
70- <distribution>repo</distribution>
71- <comments>Apache License Version 2.0</comments>
72- </license>
73- </licenses>
67+ <licenses>
68+ <license>
69+ <name>Apache 2</name>
70+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
71+ <distribution>repo</distribution>
72+ <comments>Apache License Version 2.0</comments>
73+ </license>
74+ </licenses>
7475
75- <scm>
76- <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
77- <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
78- <url>https://github.com/datastax/java-driver</url>
79- <tag>HEAD</tag>
80- </scm>
76+ <scm>
77+ <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
78+ <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
79+ <url>https://github.com/datastax/java-driver</url>
80+ <tag>HEAD</tag>
81+ </scm>
8182
82- <developers>
83- <developer>
84- <name>Various</name>
85- <organization>DataStax</organization>
86- </developer>
87- </developers>
83+ <developers>
84+ <developer>
85+ <name>Various</name>
86+ <organization>DataStax</organization>
87+ </developer>
88+ </developers>
8889
8990 </project>
9091
modified driver-examples/osgi/pom.xml +292 −291
@@ -15,298 +15,299 @@
1515 limitations under the License.
1616
1717 -->
18-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19- <modelVersion>4.0.0</modelVersion>
20- <parent>
21- <groupId>com.datastax.cassandra</groupId>
22- <artifactId>cassandra-driver-examples-parent</artifactId>
23- <version>3.0.0-SNAPSHOT</version>
24- </parent>
25- <artifactId>cassandra-driver-examples-osgi</artifactId>
26- <packaging>bundle</packaging>
27- <name>DataStax Java Driver for Apache Cassandra Examples - OSGi</name>
28- <description>An example of using DataStax Java Driver in an OSGi container.</description>
29- <url>https://github.com/datastax/java-driver</url>
30-
31- <properties>
32- <felix.version>4.6.0</felix.version>
33- <pax-exam.version>3.6.0</pax-exam.version>
34- <logback.version>1.1.3</logback.version>
35- <main.basedir>${project.parent.parent.basedir}</main.basedir>
36- </properties>
37-
38- <dependencies>
39- <dependency>
40- <groupId>com.datastax.cassandra</groupId>
41- <artifactId>cassandra-driver-core</artifactId>
42- <version>${project.parent.version}</version>
43- </dependency>
44-
45- <dependency>
46- <groupId>org.apache.felix</groupId>
47- <artifactId>org.apache.felix.framework</artifactId>
48- <version>${felix.version}</version>
49- </dependency>
50-
51- <dependency>
52- <groupId>com.datastax.cassandra</groupId>
53- <artifactId>cassandra-driver-core</artifactId>
54- <version>${project.parent.version}</version>
55- <type>test-jar</type>
56- <scope>test</scope>
57- </dependency>
58-
59- <dependency>
60- <groupId>org.ops4j.pax.exam</groupId>
61- <artifactId>pax-exam</artifactId>
62- <version>${pax-exam.version}</version>
63- <scope>test</scope>
64- </dependency>
65-
66- <dependency>
67- <groupId>org.ops4j.pax.exam</groupId>
68- <artifactId>pax-exam-testng</artifactId>
69- <version>${pax-exam.version}</version>
70- <scope>test</scope>
71- </dependency>
72-
73- <dependency>
74- <groupId>org.ops4j.pax.exam</groupId>
75- <artifactId>pax-exam-container-native</artifactId>
76- <version>${pax-exam.version}</version>
77- <scope>test</scope>
78- </dependency>
79-
80- <dependency>
81- <groupId>org.ops4j.pax.exam</groupId>
82- <artifactId>pax-exam-link-mvn</artifactId>
83- <version>${pax-exam.version}</version>
84- <scope>test</scope>
85- </dependency>
86-
87- <dependency>
88- <groupId>javax.transaction</groupId>
89- <artifactId>jta</artifactId>
90- <version>1.1</version>
91- <scope>test</scope>
92- </dependency>
93-
94- <dependency>
95- <groupId>com.jcabi</groupId>
96- <artifactId>jcabi-manifests</artifactId>
97- <version>1.1</version>
98- <scope>test</scope>
99- </dependency>
100-
101- <dependency>
102- <groupId>javax.servlet</groupId>
103- <artifactId>javax.servlet-api</artifactId>
104- <version>3.1.0</version>
105- <scope>test</scope>
106- </dependency>
107-
108- <dependency>
109- <groupId>javax.inject</groupId>
110- <artifactId>javax.inject</artifactId>
111- <version>1</version>
112- <scope>test</scope>
113- </dependency>
114-
115- <dependency>
116- <groupId>org.apache.commons</groupId>
117- <artifactId>commons-exec</artifactId>
118- <version>1.3</version>
119- <scope>test</scope>
120- </dependency>
121-
122- <dependency>
123- <groupId>ch.qos.logback</groupId>
124- <artifactId>logback-classic</artifactId>
125- <version>${logback.version}</version>
126- </dependency>
127-
128- <dependency>
129- <groupId>ch.qos.logback</groupId>
130- <artifactId>logback-core</artifactId>
131- <version>${logback.version}</version>
132- </dependency>
133- </dependencies>
134-
135- <build>
136- <plugins>
137- <plugin>
138- <groupId>org.apache.maven.plugins</groupId>
139- <artifactId>maven-failsafe-plugin</artifactId>
140- <version>2.18.1</version>
141- <executions>
142- <execution>
143- <goals>
144- <goal>integration-test</goal>
145- <goal>verify</goal>
146- </goals>
147- </execution>
148- </executions>
149- </plugin>
150- <plugin>
151- <groupId>org.apache.felix</groupId>
152- <artifactId>maven-bundle-plugin</artifactId>
153- <extensions>true</extensions>
154- <version>2.4.0</version>
155- <configuration>
156- <instructions>
157- <Bundle-SymbolicName>com.datastax.driver.osgi</Bundle-SymbolicName>
158- <Bundle-Version>${project.version}</Bundle-Version>
159- <Export-Package>com.datastax.driver.osgi.api,!com.datastax.driver.osgi.impl</Export-Package>
160- <Bundle-Activator>com.datastax.driver.osgi.impl.Activator</Bundle-Activator>
161- <_include>-osgi.bnd</_include>
162- </instructions>
163- <supportedProjectTypes>
164- <supportedProjectType>jar</supportedProjectType>
165- <supportedProjectType>bundle</supportedProjectType>
166- <supportedProjectType>pom</supportedProjectType>
167- </supportedProjectTypes>
168- </configuration>
169- <executions>
170- <execution>
171- <id>bundle-manifest</id>
172- <phase>compile</phase>
173- <goals>
174- <goal>manifest</goal>
175- </goals>
176- </execution>
177- </executions>
178- </plugin>
179- </plugins>
180- </build>
181-
182- <profiles>
183- <profile>
184- <!-- Skip test by default, short or long is required to run unit tests since pax-exam will throw exception if it encounters a
185- test with no matching methods. -->
186- <id>default</id>
187- <properties>
188- <env>default</env>
189- </properties>
190- <activation>
191- <activeByDefault>true</activeByDefault>
192- </activation>
193- <build>
194- <plugins>
195- <plugin>
196- <groupId>org.apache.maven.plugins</groupId>
197- <artifactId>maven-surefire-plugin</artifactId>
198- <version>2.14</version>
199- <configuration>
200- </configuration>
201- </plugin>
202- <plugin>
203- <groupId>org.apache.maven.plugins</groupId>
204- <artifactId>maven-failsafe-plugin</artifactId>
205- <version>2.18.1</version>
206- <configuration>
207- <skip>true</skip>
208- </configuration>
209- </plugin>
210- </plugins>
211- </build>
212- </profile>
213-
214- <profile>
215- <id>short</id>
216- <properties>
217- <env>default</env>
218- </properties>
219- <build>
220- <plugins>
221- <plugin>
222- <groupId>org.apache.maven.plugins</groupId>
223- <artifactId>maven-surefire-plugin</artifactId>
224- <version>2.14</version>
225- <configuration>
226- <groups>unit,short</groups>
227- <useFile>false</useFile>
228- <systemPropertyVariables>
229- <cassandra.version>${cassandra.version}</cassandra.version>
230- <ipprefix>${ipprefix}</ipprefix>
231- </systemPropertyVariables>
232- </configuration>
233- </plugin>
234- <plugin>
235- <groupId>org.apache.maven.plugins</groupId>
236- <artifactId>maven-failsafe-plugin</artifactId>
237- <version>2.18.1</version>
238- <configuration>
239- <groups>unit,short</groups>
240- <useFile>false</useFile>
241- <systemPropertyVariables>
242- <cassandra.version>${cassandra.version}</cassandra.version>
243- <ipprefix>${ipprefix}</ipprefix>
244- </systemPropertyVariables>
245- </configuration>
246- </plugin>
247- </plugins>
248- </build>
249- </profile>
250-
251- <profile>
252- <id>long</id>
253- <properties>
254- <env>default</env>
255- </properties>
256- <build>
18+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+ <modelVersion>4.0.0</modelVersion>
21+ <parent>
22+ <groupId>com.datastax.cassandra</groupId>
23+ <artifactId>cassandra-driver-examples-parent</artifactId>
24+ <version>3.0.0-SNAPSHOT</version>
25+ </parent>
26+ <artifactId>cassandra-driver-examples-osgi</artifactId>
27+ <packaging>bundle</packaging>
28+ <name>DataStax Java Driver for Apache Cassandra Examples - OSGi</name>
29+ <description>An example of using DataStax Java Driver in an OSGi container.</description>
30+ <url>https://github.com/datastax/java-driver</url>
31+
32+ <properties>
33+ <felix.version>4.6.0</felix.version>
34+ <pax-exam.version>3.6.0</pax-exam.version>
35+ <logback.version>1.1.3</logback.version>
36+ <main.basedir>${project.parent.parent.basedir}</main.basedir>
37+ </properties>
38+
39+ <dependencies>
40+ <dependency>
41+ <groupId>com.datastax.cassandra</groupId>
42+ <artifactId>cassandra-driver-core</artifactId>
43+ <version>${project.parent.version}</version>
44+ </dependency>
45+
46+ <dependency>
47+ <groupId>org.apache.felix</groupId>
48+ <artifactId>org.apache.felix.framework</artifactId>
49+ <version>${felix.version}</version>
50+ </dependency>
51+
52+ <dependency>
53+ <groupId>com.datastax.cassandra</groupId>
54+ <artifactId>cassandra-driver-core</artifactId>
55+ <version>${project.parent.version}</version>
56+ <type>test-jar</type>
57+ <scope>test</scope>
58+ </dependency>
59+
60+ <dependency>
61+ <groupId>org.ops4j.pax.exam</groupId>
62+ <artifactId>pax-exam</artifactId>
63+ <version>${pax-exam.version}</version>
64+ <scope>test</scope>
65+ </dependency>
66+
67+ <dependency>
68+ <groupId>org.ops4j.pax.exam</groupId>
69+ <artifactId>pax-exam-testng</artifactId>
70+ <version>${pax-exam.version}</version>
71+ <scope>test</scope>
72+ </dependency>
73+
74+ <dependency>
75+ <groupId>org.ops4j.pax.exam</groupId>
76+ <artifactId>pax-exam-container-native</artifactId>
77+ <version>${pax-exam.version}</version>
78+ <scope>test</scope>
79+ </dependency>
80+
81+ <dependency>
82+ <groupId>org.ops4j.pax.exam</groupId>
83+ <artifactId>pax-exam-link-mvn</artifactId>
84+ <version>${pax-exam.version}</version>
85+ <scope>test</scope>
86+ </dependency>
87+
88+ <dependency>
89+ <groupId>javax.transaction</groupId>
90+ <artifactId>jta</artifactId>
91+ <version>1.1</version>
92+ <scope>test</scope>
93+ </dependency>
94+
95+ <dependency>
96+ <groupId>com.jcabi</groupId>
97+ <artifactId>jcabi-manifests</artifactId>
98+ <version>1.1</version>
99+ <scope>test</scope>
100+ </dependency>
101+
102+ <dependency>
103+ <groupId>javax.servlet</groupId>
104+ <artifactId>javax.servlet-api</artifactId>
105+ <version>3.1.0</version>
106+ <scope>test</scope>
107+ </dependency>
108+
109+ <dependency>
110+ <groupId>javax.inject</groupId>
111+ <artifactId>javax.inject</artifactId>
112+ <version>1</version>
113+ <scope>test</scope>
114+ </dependency>
115+
116+ <dependency>
117+ <groupId>org.apache.commons</groupId>
118+ <artifactId>commons-exec</artifactId>
119+ <version>1.3</version>
120+ <scope>test</scope>
121+ </dependency>
122+
123+ <dependency>
124+ <groupId>ch.qos.logback</groupId>
125+ <artifactId>logback-classic</artifactId>
126+ <version>${logback.version}</version>
127+ </dependency>
128+
129+ <dependency>
130+ <groupId>ch.qos.logback</groupId>
131+ <artifactId>logback-core</artifactId>
132+ <version>${logback.version}</version>
133+ </dependency>
134+ </dependencies>
135+
136+ <build>
257137 <plugins>
258- <plugin>
259- <groupId>org.apache.maven.plugins</groupId>
260- <artifactId>maven-surefire-plugin</artifactId>
261- <version>2.16</version>
262- <configuration>
263- <groups>unit,short,long</groups>
264- <useFile>false</useFile>
265- <systemPropertyVariables>
266- <cassandra.version>${cassandra.version}</cassandra.version>
267- <ipprefix>${ipprefix}</ipprefix>
268- </systemPropertyVariables>
269- </configuration>
270- </plugin>
271- <plugin>
272- <groupId>org.apache.maven.plugins</groupId>
273- <artifactId>maven-failsafe-plugin</artifactId>
274- <version>2.18.1</version>
275- <configuration>
276- <groups>unit,short,long</groups>
277- <useFile>false</useFile>
278- <systemPropertyVariables>
279- <cassandra.version>${cassandra.version}</cassandra.version>
280- <ipprefix>${ipprefix}</ipprefix>
281- </systemPropertyVariables>
282- </configuration>
283- </plugin>
138+ <plugin>
139+ <groupId>org.apache.maven.plugins</groupId>
140+ <artifactId>maven-failsafe-plugin</artifactId>
141+ <version>2.18.1</version>
142+ <executions>
143+ <execution>
144+ <goals>
145+ <goal>integration-test</goal>
146+ <goal>verify</goal>
147+ </goals>
148+ </execution>
149+ </executions>
150+ </plugin>
151+ <plugin>
152+ <groupId>org.apache.felix</groupId>
153+ <artifactId>maven-bundle-plugin</artifactId>
154+ <extensions>true</extensions>
155+ <version>2.4.0</version>
156+ <configuration>
157+ <instructions>
158+ <Bundle-SymbolicName>com.datastax.driver.osgi</Bundle-SymbolicName>
159+ <Bundle-Version>${project.version}</Bundle-Version>
160+ <Export-Package>com.datastax.driver.osgi.api,!com.datastax.driver.osgi.impl</Export-Package>
161+ <Bundle-Activator>com.datastax.driver.osgi.impl.Activator</Bundle-Activator>
162+ <_include>-osgi.bnd</_include>
163+ </instructions>
164+ <supportedProjectTypes>
165+ <supportedProjectType>jar</supportedProjectType>
166+ <supportedProjectType>bundle</supportedProjectType>
167+ <supportedProjectType>pom</supportedProjectType>
168+ </supportedProjectTypes>
169+ </configuration>
170+ <executions>
171+ <execution>
172+ <id>bundle-manifest</id>
173+ <phase>compile</phase>
174+ <goals>
175+ <goal>manifest</goal>
176+ </goals>
177+ </execution>
178+ </executions>
179+ </plugin>
284180 </plugins>
285- </build>
286- </profile>
287- </profiles>
288-
289- <licenses>
290- <license>
291- <name>Apache 2</name>
292- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
293- <distribution>repo</distribution>
294- <comments>Apache License Version 2.0</comments>
295- </license>
296- </licenses>
297-
298- <scm>
299- <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
300- <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
301- <url>https://github.com/datastax/java-driver</url>
302- <tag>HEAD</tag>
303- </scm>
304-
305- <developers>
306- <developer>
307- <name>Various</name>
308- <organization>DataStax</organization>
309- </developer>
310- </developers>
181+ </build>
182+
183+ <profiles>
184+ <profile>
185+ <!-- Skip test by default, short or long is required to run unit tests since pax-exam will throw exception if it encounters a
186+ test with no matching methods. -->
187+ <id>default</id>
188+ <properties>
189+ <env>default</env>
190+ </properties>
191+ <activation>
192+ <activeByDefault>true</activeByDefault>
193+ </activation>
194+ <build>
195+ <plugins>
196+ <plugin>
197+ <groupId>org.apache.maven.plugins</groupId>
198+ <artifactId>maven-surefire-plugin</artifactId>
199+ <version>2.14</version>
200+ <configuration>
201+ </configuration>
202+ </plugin>
203+ <plugin>
204+ <groupId>org.apache.maven.plugins</groupId>
205+ <artifactId>maven-failsafe-plugin</artifactId>
206+ <version>2.18.1</version>
207+ <configuration>
208+ <skip>true</skip>
209+ </configuration>
210+ </plugin>
211+ </plugins>
212+ </build>
213+ </profile>
214+
215+ <profile>
216+ <id>short</id>
217+ <properties>
218+ <env>default</env>
219+ </properties>
220+ <build>
221+ <plugins>
222+ <plugin>
223+ <groupId>org.apache.maven.plugins</groupId>
224+ <artifactId>maven-surefire-plugin</artifactId>
225+ <version>2.14</version>
226+ <configuration>
227+ <groups>unit,short</groups>
228+ <useFile>false</useFile>
229+ <systemPropertyVariables>
230+ <cassandra.version>${cassandra.version}</cassandra.version>
231+ <ipprefix>${ipprefix}</ipprefix>
232+ </systemPropertyVariables>
233+ </configuration>
234+ </plugin>
235+ <plugin>
236+ <groupId>org.apache.maven.plugins</groupId>
237+ <artifactId>maven-failsafe-plugin</artifactId>
238+ <version>2.18.1</version>
239+ <configuration>
240+ <groups>unit,short</groups>
241+ <useFile>false</useFile>
242+ <systemPropertyVariables>
243+ <cassandra.version>${cassandra.version}</cassandra.version>
244+ <ipprefix>${ipprefix}</ipprefix>
245+ </systemPropertyVariables>
246+ </configuration>
247+ </plugin>
248+ </plugins>
249+ </build>
250+ </profile>
251+
252+ <profile>
253+ <id>long</id>
254+ <properties>
255+ <env>default</env>
256+ </properties>
257+ <build>
258+ <plugins>
259+ <plugin>
260+ <groupId>org.apache.maven.plugins</groupId>
261+ <artifactId>maven-surefire-plugin</artifactId>
262+ <version>2.16</version>
263+ <configuration>
264+ <groups>unit,short,long</groups>
265+ <useFile>false</useFile>
266+ <systemPropertyVariables>
267+ <cassandra.version>${cassandra.version}</cassandra.version>
268+ <ipprefix>${ipprefix}</ipprefix>
269+ </systemPropertyVariables>
270+ </configuration>
271+ </plugin>
272+ <plugin>
273+ <groupId>org.apache.maven.plugins</groupId>
274+ <artifactId>maven-failsafe-plugin</artifactId>
275+ <version>2.18.1</version>
276+ <configuration>
277+ <groups>unit,short,long</groups>
278+ <useFile>false</useFile>
279+ <systemPropertyVariables>
280+ <cassandra.version>${cassandra.version}</cassandra.version>
281+ <ipprefix>${ipprefix}</ipprefix>
282+ </systemPropertyVariables>
283+ </configuration>
284+ </plugin>
285+ </plugins>
286+ </build>
287+ </profile>
288+ </profiles>
289+
290+ <licenses>
291+ <license>
292+ <name>Apache 2</name>
293+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
294+ <distribution>repo</distribution>
295+ <comments>Apache License Version 2.0</comments>
296+ </license>
297+ </licenses>
298+
299+ <scm>
300+ <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
301+ <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
302+ <url>https://github.com/datastax/java-driver</url>
303+ <tag>HEAD</tag>
304+ </scm>
305+
306+ <developers>
307+ <developer>
308+ <name>Various</name>
309+ <organization>DataStax</organization>
310+ </developer>
311+ </developers>
311312 </project>
312313
modified driver-examples/osgi/src/test/resources/logback.xml +9 −9
@@ -16,12 +16,12 @@
1616
1717 -->
1818 <configuration>
19- <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
20- <layout class="ch.qos.logback.classic.PatternLayout">
21- <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern>
22- </layout>
23- </appender>
24- <root level="INFO">
25- <appender-ref ref="STDOUT" />
26- </root>
27-</configuration>
No newline at the end of the file
19+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
20+ <layout class="ch.qos.logback.classic.PatternLayout">
21+ <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern>
22+ </layout>
23+ </appender>
24+ <root level="INFO">
25+ <appender-ref ref="STDOUT"/>
26+ </root>
27+</configuration>
modified driver-examples/pom.xml +63 −62
@@ -15,69 +15,70 @@
1515 limitations under the License.
1616
1717 -->
18-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19- <modelVersion>4.0.0</modelVersion>
20- <parent>
21- <groupId>com.datastax.cassandra</groupId>
22- <artifactId>cassandra-driver-parent</artifactId>
23- <version>3.0.0-SNAPSHOT</version>
24- </parent>
25- <artifactId>cassandra-driver-examples-parent</artifactId>
26- <packaging>pom</packaging>
27- <name>DataStax Java Driver for Apache Cassandra Examples</name>
28- <description>A collection of examples to demonstrate DataStax Java Driver for Apache Cassandra.</description>
29- <url>https://github.com/datastax/java-driver</url>
18+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+ <modelVersion>4.0.0</modelVersion>
21+ <parent>
22+ <groupId>com.datastax.cassandra</groupId>
23+ <artifactId>cassandra-driver-parent</artifactId>
24+ <version>3.0.0-SNAPSHOT</version>
25+ </parent>
26+ <artifactId>cassandra-driver-examples-parent</artifactId>
27+ <packaging>pom</packaging>
28+ <name>DataStax Java Driver for Apache Cassandra Examples</name>
29+ <description>A collection of examples to demonstrate DataStax Java Driver for Apache Cassandra.</description>
30+ <url>https://github.com/datastax/java-driver</url>
3031
31- <properties>
32- <main.basedir>${project.parent.basedir}</main.basedir>
33- </properties>
32+ <properties>
33+ <main.basedir>${project.parent.basedir}</main.basedir>
34+ </properties>
3435
35- <modules>
36- <module>stress</module>
37- <module>osgi</module>
38- </modules>
39-
40- <licenses>
41- <license>
42- <name>Apache 2</name>
43- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
44- <distribution>repo</distribution>
45- <comments>Apache License Version 2.0</comments>
46- </license>
47- </licenses>
48-
49- <scm>
50- <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
51- <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
52- <url>https://github.com/datastax/java-driver</url>
53- <tag>HEAD</tag>
54- </scm>
55-
56- <developers>
57- <developer>
58- <name>Various</name>
59- <organization>DataStax</organization>
60- </developer>
61- </developers>
36+ <modules>
37+ <module>stress</module>
38+ <module>osgi</module>
39+ </modules>
40+
41+ <licenses>
42+ <license>
43+ <name>Apache 2</name>
44+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
45+ <distribution>repo</distribution>
46+ <comments>Apache License Version 2.0</comments>
47+ </license>
48+ </licenses>
49+
50+ <scm>
51+ <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
52+ <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
53+ <url>https://github.com/datastax/java-driver</url>
54+ <tag>HEAD</tag>
55+ </scm>
56+
57+ <developers>
58+ <developer>
59+ <name>Various</name>
60+ <organization>DataStax</organization>
61+ </developer>
62+ </developers>
6263
63- <build>
64- <plugins>
65- <plugin>
66- <groupId>org.apache.maven.plugins</groupId>
67- <artifactId>maven-install-plugin</artifactId>
68- <version>2.5.1</version>
69- <configuration>
70- <skip>true</skip>
71- </configuration>
72- </plugin>
73- <plugin>
74- <groupId>org.apache.maven.plugins</groupId>
75- <artifactId>maven-deploy-plugin</artifactId>
76- <version>2.8.1</version>
77- <configuration>
78- <skip>true</skip>
79- </configuration>
80- </plugin>
81- </plugins>
82- </build>
64+ <build>
65+ <plugins>
66+ <plugin>
67+ <groupId>org.apache.maven.plugins</groupId>
68+ <artifactId>maven-install-plugin</artifactId>
69+ <version>2.5.1</version>
70+ <configuration>
71+ <skip>true</skip>
72+ </configuration>
73+ </plugin>
74+ <plugin>
75+ <groupId>org.apache.maven.plugins</groupId>
76+ <artifactId>maven-deploy-plugin</artifactId>
77+ <version>2.8.1</version>
78+ <configuration>
79+ <skip>true</skip>
80+ </configuration>
81+ </plugin>
82+ </plugins>
83+ </build>
8384 </project>
modified driver-examples/stress/pom.xml +90 −89
@@ -15,95 +15,96 @@
1515 limitations under the License.
1616
1717 -->
18-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19- <modelVersion>4.0.0</modelVersion>
20- <parent>
21- <groupId>com.datastax.cassandra</groupId>
22- <artifactId>cassandra-driver-examples-parent</artifactId>
23- <version>3.0.0-SNAPSHOT</version>
24- </parent>
25- <artifactId>cassandra-driver-examples-stress</artifactId>
26- <packaging>jar</packaging>
27- <name>DataStax Java Driver for Apache Cassandra Examples - Stress</name>
28- <description>A stress test example for DataStax Java Driver for Apache Cassandra.</description>
29- <url>https://github.com/datastax/java-driver</url>
30-
31- <properties>
32- <main.basedir>${project.parent.parent.basedir}</main.basedir>
33- </properties>
34-
35- <dependencies>
36- <dependency>
37- <groupId>com.datastax.cassandra</groupId>
38- <artifactId>cassandra-driver-core</artifactId>
39- <version>3.0.0-SNAPSHOT</version>
40- </dependency>
41-
42- <dependency>
43- <groupId>com.yammer.metrics</groupId>
44- <artifactId>metrics-core</artifactId>
45- <version>2.2.0</version>
46- </dependency>
47-
48- <dependency>
49- <groupId>net.sf.jopt-simple</groupId>
50- <artifactId>jopt-simple</artifactId>
51- <version>4.5</version>
52- </dependency>
53-
54- <dependency>
55- <groupId>log4j</groupId>
56- <artifactId>log4j</artifactId>
57- <version>1.2.17</version>
58- </dependency>
59-
60- <dependency>
61- <groupId>org.slf4j</groupId>
62- <artifactId>slf4j-log4j12</artifactId>
63- <version>1.7.5</version>
64- </dependency>
65- </dependencies>
66-
67- <build>
68- <plugins>
69- <plugin>
70- <artifactId>maven-assembly-plugin</artifactId>
71- <version>2.4</version>
72- <configuration>
73- <archive>
74- <manifest>
75- <mainClass>com.datastax.driver.stress.Stress</mainClass>
76- </manifest>
77- </archive>
78- <descriptorRefs>
79- <descriptorRef>jar-with-dependencies</descriptorRef>
80- </descriptorRefs>
81- </configuration>
82- </plugin>
83- </plugins>
84- </build>
85-
86- <licenses>
87- <license>
88- <name>Apache 2</name>
89- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
90- <distribution>repo</distribution>
91- <comments>Apache License Version 2.0</comments>
92- </license>
93- </licenses>
94-
95- <scm>
96- <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
97- <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
18+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+ <modelVersion>4.0.0</modelVersion>
21+ <parent>
22+ <groupId>com.datastax.cassandra</groupId>
23+ <artifactId>cassandra-driver-examples-parent</artifactId>
24+ <version>3.0.0-SNAPSHOT</version>
25+ </parent>
26+ <artifactId>cassandra-driver-examples-stress</artifactId>
27+ <packaging>jar</packaging>
28+ <name>DataStax Java Driver for Apache Cassandra Examples - Stress</name>
29+ <description>A stress test example for DataStax Java Driver for Apache Cassandra.</description>
9830 <url>https://github.com/datastax/java-driver</url>
99- <tag>HEAD</tag>
100- </scm>
101-
102- <developers>
103- <developer>
104- <name>Various</name>
105- <organization>DataStax</organization>
106- </developer>
107- </developers>
31+
32+ <properties>
33+ <main.basedir>${project.parent.parent.basedir}</main.basedir>
34+ </properties>
35+
36+ <dependencies>
37+ <dependency>
38+ <groupId>com.datastax.cassandra</groupId>
39+ <artifactId>cassandra-driver-core</artifactId>
40+ <version>3.0.0-SNAPSHOT</version>
41+ </dependency>
42+
43+ <dependency>
44+ <groupId>com.yammer.metrics</groupId>
45+ <artifactId>metrics-core</artifactId>
46+ <version>2.2.0</version>
47+ </dependency>
48+
49+ <dependency>
50+ <groupId>net.sf.jopt-simple</groupId>
51+ <artifactId>jopt-simple</artifactId>
52+ <version>4.5</version>
53+ </dependency>
54+
55+ <dependency>
56+ <groupId>log4j</groupId>
57+ <artifactId>log4j</artifactId>
58+ <version>1.2.17</version>
59+ </dependency>
60+
61+ <dependency>
62+ <groupId>org.slf4j</groupId>
63+ <artifactId>slf4j-log4j12</artifactId>
64+ <version>1.7.5</version>
65+ </dependency>
66+ </dependencies>
67+
68+ <build>
69+ <plugins>
70+ <plugin>
71+ <artifactId>maven-assembly-plugin</artifactId>
72+ <version>2.4</version>
73+ <configuration>
74+ <archive>
75+ <manifest>
76+ <mainClass>com.datastax.driver.stress.Stress</mainClass>
77+ </manifest>
78+ </archive>
79+ <descriptorRefs>
80+ <descriptorRef>jar-with-dependencies</descriptorRef>
81+ </descriptorRefs>
82+ </configuration>
83+ </plugin>
84+ </plugins>
85+ </build>
86+
87+ <licenses>
88+ <license>
89+ <name>Apache 2</name>
90+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
91+ <distribution>repo</distribution>
92+ <comments>Apache License Version 2.0</comments>
93+ </license>
94+ </licenses>
95+
96+ <scm>
97+ <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
98+ <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
99+ <url>https://github.com/datastax/java-driver</url>
100+ <tag>HEAD</tag>
101+ </scm>
102+
103+ <developers>
104+ <developer>
105+ <name>Various</name>
106+ <organization>DataStax</organization>
107+ </developer>
108+ </developers>
108109 </project>
109110
modified driver-extras/pom.xml +247 −246
@@ -15,252 +15,253 @@
1515 limitations under the License.
1616
1717 -->
18-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19- <parent>
20- <artifactId>cassandra-driver-parent</artifactId>
21- <groupId>com.datastax.cassandra</groupId>
22- <version>3.0.0-SNAPSHOT</version>
23- </parent>
24- <modelVersion>4.0.0</modelVersion>
25-
26- <artifactId>cassandra-driver-extras</artifactId>
27-
28- <name>DataStax Java Driver for Apache Cassandra - Extras</name>
29- <description>Extended functionality for the Java driver.</description>
30- <url>https://github.com/datastax/java-driver</url>
31-
32- <properties>
33- <main.basedir>${project.parent.basedir}</main.basedir>
34- <test.groups>unit</test.groups>
35- <jdk8.excludes>none</jdk8.excludes>
36- </properties>
37-
38- <dependencies>
39-
40- <dependency>
41- <groupId>com.datastax.cassandra</groupId>
42- <artifactId>cassandra-driver-core</artifactId>
43- <version>${project.parent.version}</version>
44- </dependency>
45-
46- <dependency>
47- <groupId>com.google.guava</groupId>
48- <artifactId>guava</artifactId>
49- <version>${guava.version}</version>
50- </dependency>
51-
52- <dependency>
53- <groupId>com.fasterxml.jackson.core</groupId>
54- <artifactId>jackson-databind</artifactId>
55- <version>${jackson.version}</version>
56- <optional>true</optional>
57- </dependency>
58-
59- <dependency>
60- <groupId>joda-time</groupId>
61- <artifactId>joda-time</artifactId>
62- <version>${joda.version}</version>
63- <optional>true</optional>
64- </dependency>
65-
66- <dependency>
67- <groupId>javax.json</groupId>
68- <artifactId>javax.json-api</artifactId>
69- <version>${jsr353-api.version}</version>
70- <optional>true</optional>
71- </dependency>
72-
73- <dependency>
74- <groupId>com.datastax.cassandra</groupId>
75- <artifactId>cassandra-driver-core</artifactId>
76- <version>${project.parent.version}</version>
77- <type>test-jar</type>
78- <scope>test</scope>
79- </dependency>
80-
81- <dependency>
82- <groupId>com.datastax.cassandra</groupId>
83- <artifactId>cassandra-driver-mapping</artifactId>
84- <version>${project.parent.version}</version>
85- <scope>test</scope>
86- </dependency>
87-
88- <dependency>
89- <groupId>org.testng</groupId>
90- <artifactId>testng</artifactId>
91- <version>${testng.version}</version>
92- <scope>test</scope>
93- </dependency>
94-
95- <dependency>
96- <groupId>org.assertj</groupId>
97- <artifactId>assertj-core</artifactId>
98- <version>${assertj.version}</version>
99- <scope>test</scope>
100- </dependency>
101-
102- <dependency>
103- <groupId>org.mockito</groupId>
104- <artifactId>mockito-all</artifactId>
105- <version>${mockito.version}</version>
106- <scope>test</scope>
107- </dependency>
108-
109- <dependency>
110- <groupId>org.apache.commons</groupId>
111- <artifactId>commons-exec</artifactId>
112- <version>${commons-exec.version}</version>
113- <scope>test</scope>
114- </dependency>
115-
116- <dependency>
117- <groupId>org.glassfish</groupId>
118- <artifactId>javax.json</artifactId>
119- <version>${jsr353-ri.version}</version>
120- <scope>test</scope>
121- </dependency>
122-
123- </dependencies>
124-
125- <build>
126-
127- <plugins>
128-
129- <plugin>
130- <groupId>org.apache.maven.plugins</groupId>
131- <artifactId>maven-compiler-plugin</artifactId>
132- <configuration>
133- <excludes>
134- <exclude>${jdk8.excludes}</exclude>
135- </excludes>
136- <testExcludes>
137- <exclude>${jdk8.excludes}</exclude>
138- </testExcludes>
139- </configuration>
140- </plugin>
141-
142- <plugin>
143- <groupId>org.codehaus.mojo</groupId>
144- <artifactId>animal-sniffer-maven-plugin</artifactId>
145- <configuration>
146- <!--
147- There is no support for JDK 8 yet, see
148- https://github.com/mojohaus/animal-sniffer/issues/1
149- -->
150- <skip>true</skip>
151- <signature>
152- <groupId>org.codehaus.mojo.signature</groupId>
153- <artifactId>java18</artifactId>
154- <version>1.0</version>
155- </signature>
156- </configuration>
157- </plugin>
158-
159- <plugin>
160- <groupId>org.apache.maven.plugins</groupId>
161- <artifactId>maven-surefire-plugin</artifactId>
162- <version>2.16</version>
163- <configuration>
164- <groups>${test.groups}</groups>
165- <useFile>false</useFile>
166- <systemPropertyVariables>
167- <cassandra.version>${cassandra.version}</cassandra.version>
168- <ipprefix>${ipprefix}</ipprefix>
169- </systemPropertyVariables>
170- <classpathDependencyExcludes>
171- <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
172- </classpathDependencyExcludes>
173- <excludes>
174- <exclude>${jdk8.excludes}</exclude>
175- </excludes>
176- </configuration>
177- </plugin>
178-
179- <plugin>
180- <groupId>org.apache.felix</groupId>
181- <artifactId>maven-bundle-plugin</artifactId>
182- <extensions>true</extensions>
183- <version>2.4.0</version>
184- <executions>
185- <execution>
186- <id>bundle-manifest</id>
187- <phase>process-classes</phase>
188- <goals>
189- <goal>manifest</goal>
190- </goals>
191- </execution>
192- </executions>
193- <configuration>
194- <instructions>
195- <Bundle-SymbolicName>com.datastax.driver.extras</Bundle-SymbolicName>
196- <Bundle-Version>${project.version}</Bundle-Version>
197- <_include>-osgi.bnd</_include>
198- </instructions>
199- <supportedProjectTypes>
200- <supportedProjectType>jar</supportedProjectType>
201- <supportedProjectType>bundle</supportedProjectType>
202- <supportedProjectType>pom</supportedProjectType>
203- </supportedProjectTypes>
204- </configuration>
205- </plugin>
206-
207- </plugins>
208-
209- </build>
210-
211- <profiles>
212-
213- <profile>
214- <id>short</id>
215- <properties>
216- <test.groups>unit,short</test.groups>
217- </properties>
218- </profile>
219-
220- <profile>
221- <id>long</id>
222- <properties>
223- <test.groups>unit,short,long</test.groups>
224- </properties>
225- </profile>
226-
227- <!--
228- This profile excludes all JDK 8 dependent classes from
229- compilation. Use this when running tests with a legacy JDK (6 or 7)
230- -->
231- <profile>
232- <id>legacy-jdks</id>
233- <activation>
234- <jdk>[,1.8)</jdk>
235- </activation>
236- <properties>
237- <jdk8.excludes>**/jdk8/*.java</jdk8.excludes>
238- </properties>
239- </profile>
240-
241- </profiles>
242-
243- <licenses>
244- <license>
245- <name>Apache 2</name>
246- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
247- <distribution>repo</distribution>
248- <comments>Apache License Version 2.0</comments>
249- </license>
250- </licenses>
251-
252- <scm>
253- <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
254- <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
18+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20+ <parent>
21+ <artifactId>cassandra-driver-parent</artifactId>
22+ <groupId>com.datastax.cassandra</groupId>
23+ <version>3.0.0-SNAPSHOT</version>
24+ </parent>
25+ <modelVersion>4.0.0</modelVersion>
26+
27+ <artifactId>cassandra-driver-extras</artifactId>
28+
29+ <name>DataStax Java Driver for Apache Cassandra - Extras</name>
30+ <description>Extended functionality for the Java driver.</description>
25531 <url>https://github.com/datastax/java-driver</url>
256- <tag>HEAD</tag>
257- </scm>
258-
259- <developers>
260- <developer>
261- <name>Various</name>
262- <organization>DataStax</organization>
263- </developer>
264- </developers>
32+
33+ <properties>
34+ <main.basedir>${project.parent.basedir}</main.basedir>
35+ <test.groups>unit</test.groups>
36+ <jdk8.excludes>none</jdk8.excludes>
37+ </properties>
38+
39+ <dependencies>
40+
41+ <dependency>
42+ <groupId>com.datastax.cassandra</groupId>
43+ <artifactId>cassandra-driver-core</artifactId>
44+ <version>${project.parent.version}</version>
45+ </dependency>
46+
47+ <dependency>
48+ <groupId>com.google.guava</groupId>
49+ <artifactId>guava</artifactId>
50+ <version>${guava.version}</version>
51+ </dependency>
52+
53+ <dependency>
54+ <groupId>com.fasterxml.jackson.core</groupId>
55+ <artifactId>jackson-databind</artifactId>
56+ <version>${jackson.version}</version>
57+ <optional>true</optional>
58+ </dependency>
59+
60+ <dependency>
61+ <groupId>joda-time</groupId>
62+ <artifactId>joda-time</artifactId>
63+ <version>${joda.version}</version>
64+ <optional>true</optional>
65+ </dependency>
66+
67+ <dependency>
68+ <groupId>javax.json</groupId>
69+ <artifactId>javax.json-api</artifactId>
70+ <version>${jsr353-api.version}</version>
71+ <optional>true</optional>
72+ </dependency>
73+
74+ <dependency>
75+ <groupId>com.datastax.cassandra</groupId>
76+ <artifactId>cassandra-driver-core</artifactId>
77+ <version>${project.parent.version}</version>
78+ <type>test-jar</type>
79+ <scope>test</scope>
80+ </dependency>
81+
82+ <dependency>
83+ <groupId>com.datastax.cassandra</groupId>
84+ <artifactId>cassandra-driver-mapping</artifactId>
85+ <version>${project.parent.version}</version>
86+ <scope>test</scope>
87+ </dependency>
88+
89+ <dependency>
90+ <groupId>org.testng</groupId>
91+ <artifactId>testng</artifactId>
92+ <version>${testng.version}</version>
93+ <scope>test</scope>
94+ </dependency>
95+
96+ <dependency>
97+ <groupId>org.assertj</groupId>
98+ <artifactId>assertj-core</artifactId>
99+ <version>${assertj.version}</version>
100+ <scope>test</scope>
101+ </dependency>
102+
103+ <dependency>
104+ <groupId>org.mockito</groupId>
105+ <artifactId>mockito-all</artifactId>
106+ <version>${mockito.version}</version>
107+ <scope>test</scope>
108+ </dependency>
109+
110+ <dependency>
111+ <groupId>org.apache.commons</groupId>
112+ <artifactId>commons-exec</artifactId>
113+ <version>${commons-exec.version}</version>
114+ <scope>test</scope>
115+ </dependency>
116+
117+ <dependency>
118+ <groupId>org.glassfish</groupId>
119+ <artifactId>javax.json</artifactId>
120+ <version>${jsr353-ri.version}</version>
121+ <scope>test</scope>
122+ </dependency>
123+
124+ </dependencies>
125+
126+ <build>
127+
128+ <plugins>
129+
130+ <plugin>
131+ <groupId>org.apache.maven.plugins</groupId>
132+ <artifactId>maven-compiler-plugin</artifactId>
133+ <configuration>
134+ <excludes>
135+ <exclude>${jdk8.excludes}</exclude>
136+ </excludes>
137+ <testExcludes>
138+ <exclude>${jdk8.excludes}</exclude>
139+ </testExcludes>
140+ </configuration>
141+ </plugin>
142+
143+ <plugin>
144+ <groupId>org.codehaus.mojo</groupId>
145+ <artifactId>animal-sniffer-maven-plugin</artifactId>
146+ <configuration>
147+ <!--
148+ There is no support for JDK 8 yet, see
149+ https://github.com/mojohaus/animal-sniffer/issues/1
150+ -->
151+ <skip>true</skip>
152+ <signature>
153+ <groupId>org.codehaus.mojo.signature</groupId>
154+ <artifactId>java18</artifactId>
155+ <version>1.0</version>
156+ </signature>
157+ </configuration>
158+ </plugin>
159+
160+ <plugin>
161+ <groupId>org.apache.maven.plugins</groupId>
162+ <artifactId>maven-surefire-plugin</artifactId>
163+ <version>2.16</version>
164+ <configuration>
165+ <groups>${test.groups}</groups>
166+ <useFile>false</useFile>
167+ <systemPropertyVariables>
168+ <cassandra.version>${cassandra.version}</cassandra.version>
169+ <ipprefix>${ipprefix}</ipprefix>
170+ </systemPropertyVariables>
171+ <classpathDependencyExcludes>
172+ <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
173+ </classpathDependencyExcludes>
174+ <excludes>
175+ <exclude>${jdk8.excludes}</exclude>
176+ </excludes>
177+ </configuration>
178+ </plugin>
179+
180+ <plugin>
181+ <groupId>org.apache.felix</groupId>
182+ <artifactId>maven-bundle-plugin</artifactId>
183+ <extensions>true</extensions>
184+ <version>2.4.0</version>
185+ <executions>
186+ <execution>
187+ <id>bundle-manifest</id>
188+ <phase>process-classes</phase>
189+ <goals>
190+ <goal>manifest</goal>
191+ </goals>
192+ </execution>
193+ </executions>
194+ <configuration>
195+ <instructions>
196+ <Bundle-SymbolicName>com.datastax.driver.extras</Bundle-SymbolicName>
197+ <Bundle-Version>${project.version}</Bundle-Version>
198+ <_include>-osgi.bnd</_include>
199+ </instructions>
200+ <supportedProjectTypes>
201+ <supportedProjectType>jar</supportedProjectType>
202+ <supportedProjectType>bundle</supportedProjectType>
203+ <supportedProjectType>pom</supportedProjectType>
204+ </supportedProjectTypes>
205+ </configuration>
206+ </plugin>
207+
208+ </plugins>
209+
210+ </build>
211+
212+ <profiles>
213+
214+ <profile>
215+ <id>short</id>
216+ <properties>
217+ <test.groups>unit,short</test.groups>
218+ </properties>
219+ </profile>
220+
221+ <profile>
222+ <id>long</id>
223+ <properties>
224+ <test.groups>unit,short,long</test.groups>
225+ </properties>
226+ </profile>
227+
228+ <!--
229+ This profile excludes all JDK 8 dependent classes from
230+ compilation. Use this when running tests with a legacy JDK (6 or 7)
231+ -->
232+ <profile>
233+ <id>legacy-jdks</id>
234+ <activation>
235+ <jdk>[,1.8)</jdk>
236+ </activation>
237+ <properties>
238+ <jdk8.excludes>**/jdk8/*.java</jdk8.excludes>
239+ </properties>
240+ </profile>
241+
242+ </profiles>
243+
244+ <licenses>
245+ <license>
246+ <name>Apache 2</name>
247+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
248+ <distribution>repo</distribution>
249+ <comments>Apache License Version 2.0</comments>
250+ </license>
251+ </licenses>
252+
253+ <scm>
254+ <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
255+ <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
256+ <url>https://github.com/datastax/java-driver</url>
257+ <tag>HEAD</tag>
258+ </scm>
259+
260+ <developers>
261+ <developer>
262+ <name>Various</name>
263+ <organization>DataStax</organization>
264+ </developer>
265+ </developers>
265266
266267 </project>
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/jdk8/InstantCodec.java +1 −2
@@ -45,8 +45,7 @@
4545 * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong>
4646 *
4747 * @see ZonedDateTimeCodec
48- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
49- * section of CQL specification.
48+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
5049 */
5150 public class InstantCodec extends TypeCodec<Instant> {
5251
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/jdk8/ZonedDateTimeCodec.java +1 −2
@@ -51,8 +51,7 @@
5151 * timestamps using an ISO-8601 format that includes milliseconds.
5252 * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong>
5353 *
54- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
55- * section of CQL specification.
54+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
5655 */
5756 public class ZonedDateTimeCodec extends TypeCodec.AbstractTupleCodec<ZonedDateTime> {
5857
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/joda/DateTimeCodec.java +1 −2
@@ -50,8 +50,7 @@
5050 * timestamps using an ISO-8601 format that includes nanoseconds.
5151 * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong>
5252 *
53- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
54- * section of CQL specification.
53+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
5554 */
5655 public class DateTimeCodec extends TypeCodec.AbstractTupleCodec<DateTime> {
5756
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/joda/InstantCodec.java +1 −2
@@ -43,8 +43,7 @@
4343 * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong>
4444 *
4545 * @see DateTimeCodec
46- * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a>
47- * section of CQL specification.
46+ * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a>
4847 */
4948 public class InstantCodec extends TypeCodec<Instant> {
5049
modified driver-mapping/pom.xml +214 −213
@@ -15,220 +15,221 @@
1515 limitations under the License.
1616
1717 -->
18-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19- <modelVersion>4.0.0</modelVersion>
20- <parent>
21- <groupId>com.datastax.cassandra</groupId>
22- <artifactId>cassandra-driver-parent</artifactId>
23- <version>3.0.0-SNAPSHOT</version>
24- </parent>
25- <artifactId>cassandra-driver-mapping</artifactId>
26- <packaging>bundle</packaging>
27- <name>DataStax Java Driver for Apache Cassandra - Object Mapping</name>
28- <description>Object mapper for the DataStax CQL Java Driver.</description>
29- <url>https://github.com/datastax/java-driver</url>
30-
31- <properties>
32- <main.basedir>${project.parent.basedir}</main.basedir>
33- </properties>
34-
35- <dependencies>
36- <dependency>
37- <groupId>com.datastax.cassandra</groupId>
38- <artifactId>cassandra-driver-core</artifactId>
39- <version>${project.parent.version}</version>
40- </dependency>
41-
42- <dependency>
43- <groupId>com.datastax.cassandra</groupId>
44- <artifactId>cassandra-driver-core</artifactId>
45- <version>${project.parent.version}</version>
46- <type>test-jar</type>
47- <scope>test</scope>
48- </dependency>
49-
50- <dependency>
51- <groupId>org.testng</groupId>
52- <artifactId>testng</artifactId>
53- <version>${testng.version}</version>
54- <scope>test</scope>
55- </dependency>
56-
57- <dependency>
58- <groupId>org.assertj</groupId>
59- <artifactId>assertj-core</artifactId>
60- <version>${assertj.version}</version>
61- <scope>test</scope>
62- </dependency>
63-
64- <dependency>
65- <groupId>org.mockito</groupId>
66- <artifactId>mockito-all</artifactId>
67- <version>${mockito.version}</version>
68- <scope>test</scope>
69- </dependency>
70-
71- <dependency>
72- <groupId>org.apache.commons</groupId>
73- <artifactId>commons-exec</artifactId>
74- <version>${commons-exec.version}</version>
75- <scope>test</scope>
76- </dependency>
77-
78- <dependency>
79- <groupId>org.ow2.asm</groupId>
80- <artifactId>asm-all</artifactId>
81- <version>5.0.3</version>
82- <scope>test</scope>
83- </dependency>
84- <!--
85- <dependency>
86- <groupId>org.ow2.asm</groupId>
87- <artifactId>asm</artifactId>
88- <version>4.1</version>
89- </dependency>
90- <dependency>
91- <groupId>org.ow2.asm</groupId>
92- <artifactId>asm-util</artifactId>
93- <version>4.1</version>
94- </dependency>
95- -->
96- </dependencies>
97-
98- <build>
99- <plugins>
100- <plugin>
101- <groupId>org.apache.felix</groupId>
102- <artifactId>maven-bundle-plugin</artifactId>
103- <extensions>true</extensions>
104- <version>2.4.0</version>
105- <executions>
106- <execution>
107- <id>bundle-manifest</id>
108- <phase>process-classes</phase>
109- <goals>
110- <goal>manifest</goal>
111- </goals>
112- </execution>
113- </executions>
114- <configuration>
115- <instructions>
116- <Bundle-SymbolicName>com.datastax.driver.mapping</Bundle-SymbolicName>
117- <Bundle-Version>${project.version}</Bundle-Version>
118- <_include>-osgi.bnd</_include>
119- </instructions>
120- <supportedProjectTypes>
121- <supportedProjectType>jar</supportedProjectType>
122- <supportedProjectType>bundle</supportedProjectType>
123- <supportedProjectType>pom</supportedProjectType>
124- </supportedProjectTypes>
125- </configuration>
126- </plugin>
127- </plugins>
128- </build>
129-
130- <profiles>
131- <profile>
132- <id>unit</id>
133- <properties>
134- <env>default</env>
135- </properties>
136- <!-- do not use activeByDefault as other profiles might be active -->
137- <activation>
138- <property>
139- <name>!activateUnitTests</name>
140- </property>
141- </activation>
142- <build>
143- <plugins>
144- <plugin>
145- <groupId>org.apache.maven.plugins</groupId>
146- <artifactId>maven-surefire-plugin</artifactId>
147- <version>2.14</version>
148- <configuration>
149- <groups>unit</groups>
150- <useFile>false</useFile>
151- <systemPropertyVariables>
152- <cassandra.version>${cassandra.version}</cassandra.version>
153- <ipprefix>${ipprefix}</ipprefix>
154- </systemPropertyVariables>
155- </configuration>
156- </plugin>
157- </plugins>
158- </build>
159- </profile>
160-
161- <profile>
162- <id>short</id>
163- <properties>
164- <env>default</env>
165- </properties>
166- <build>
167- <plugins>
168- <plugin>
169- <groupId>org.apache.maven.plugins</groupId>
170- <artifactId>maven-surefire-plugin</artifactId>
171- <version>2.14</version>
172- <configuration>
173- <groups>unit,short</groups>
174- <useFile>false</useFile>
175- <systemPropertyVariables>
176- <cassandra.version>${cassandra.version}</cassandra.version>
177- <ipprefix>${ipprefix}</ipprefix>
178- </systemPropertyVariables>
179- </configuration>
180- </plugin>
181- </plugins>
182- </build>
183- </profile>
184-
185- <profile>
186- <id>long</id>
187- <properties>
188- <env>default</env>
189- </properties>
190- <build>
18+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+ <modelVersion>4.0.0</modelVersion>
21+ <parent>
22+ <groupId>com.datastax.cassandra</groupId>
23+ <artifactId>cassandra-driver-parent</artifactId>
24+ <version>3.0.0-SNAPSHOT</version>
25+ </parent>
26+ <artifactId>cassandra-driver-mapping</artifactId>
27+ <packaging>bundle</packaging>
28+ <name>DataStax Java Driver for Apache Cassandra - Object Mapping</name>
29+ <description>Object mapper for the DataStax CQL Java Driver.</description>
30+ <url>https://github.com/datastax/java-driver</url>
31+
32+ <properties>
33+ <main.basedir>${project.parent.basedir}</main.basedir>
34+ </properties>
35+
36+ <dependencies>
37+ <dependency>
38+ <groupId>com.datastax.cassandra</groupId>
39+ <artifactId>cassandra-driver-core</artifactId>
40+ <version>${project.parent.version}</version>
41+ </dependency>
42+
43+ <dependency>
44+ <groupId>com.datastax.cassandra</groupId>
45+ <artifactId>cassandra-driver-core</artifactId>
46+ <version>${project.parent.version}</version>
47+ <type>test-jar</type>
48+ <scope>test</scope>
49+ </dependency>
50+
51+ <dependency>
52+ <groupId>org.testng</groupId>
53+ <artifactId>testng</artifactId>
54+ <version>${testng.version}</version>
55+ <scope>test</scope>
56+ </dependency>
57+
58+ <dependency>
59+ <groupId>org.assertj</groupId>
60+ <artifactId>assertj-core</artifactId>
61+ <version>${assertj.version}</version>
62+ <scope>test</scope>
63+ </dependency>
64+
65+ <dependency>
66+ <groupId>org.mockito</groupId>
67+ <artifactId>mockito-all</artifactId>
68+ <version>${mockito.version}</version>
69+ <scope>test</scope>
70+ </dependency>
71+
72+ <dependency>
73+ <groupId>org.apache.commons</groupId>
74+ <artifactId>commons-exec</artifactId>
75+ <version>${commons-exec.version}</version>
76+ <scope>test</scope>
77+ </dependency>
78+
79+ <dependency>
80+ <groupId>org.ow2.asm</groupId>
81+ <artifactId>asm-all</artifactId>
82+ <version>5.0.3</version>
83+ <scope>test</scope>
84+ </dependency>
85+ <!--
86+ <dependency>
87+ <groupId>org.ow2.asm</groupId>
88+ <artifactId>asm</artifactId>
89+ <version>4.1</version>
90+ </dependency>
91+ <dependency>
92+ <groupId>org.ow2.asm</groupId>
93+ <artifactId>asm-util</artifactId>
94+ <version>4.1</version>
95+ </dependency>
96+ -->
97+ </dependencies>
98+
99+ <build>
191100 <plugins>
192- <plugin>
193- <groupId>org.apache.maven.plugins</groupId>
194- <artifactId>maven-surefire-plugin</artifactId>
195- <version>2.14</version>
196- <configuration>
197- <groups>unit,short,long</groups>
198- <useFile>false</useFile>
199- <systemPropertyVariables>
200- <cassandra.version>${cassandra.version}</cassandra.version>
201- <ipprefix>${ipprefix}</ipprefix>
202- </systemPropertyVariables>
203- </configuration>
204- </plugin>
101+ <plugin>
102+ <groupId>org.apache.felix</groupId>
103+ <artifactId>maven-bundle-plugin</artifactId>
104+ <extensions>true</extensions>
105+ <version>2.4.0</version>
106+ <executions>
107+ <execution>
108+ <id>bundle-manifest</id>
109+ <phase>process-classes</phase>
110+ <goals>
111+ <goal>manifest</goal>
112+ </goals>
113+ </execution>
114+ </executions>
115+ <configuration>
116+ <instructions>
117+ <Bundle-SymbolicName>com.datastax.driver.mapping</Bundle-SymbolicName>
118+ <Bundle-Version>${project.version}</Bundle-Version>
119+ <_include>-osgi.bnd</_include>
120+ </instructions>
121+ <supportedProjectTypes>
122+ <supportedProjectType>jar</supportedProjectType>
123+ <supportedProjectType>bundle</supportedProjectType>
124+ <supportedProjectType>pom</supportedProjectType>
125+ </supportedProjectTypes>
126+ </configuration>
127+ </plugin>
205128 </plugins>
206- </build>
207- </profile>
208-
209- </profiles>
210-
211- <licenses>
212- <license>
213- <name>Apache 2</name>
214- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
215- <distribution>repo</distribution>
216- <comments>Apache License Version 2.0</comments>
217- </license>
218- </licenses>
219-
220- <scm>
221- <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
222- <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
223- <url>https://github.com/datastax/java-driver</url>
224- <tag>HEAD</tag>
225- </scm>
226-
227- <developers>
228- <developer>
229- <name>Various</name>
230- <organization>DataStax</organization>
231- </developer>
232- </developers>
129+ </build>
130+
131+ <profiles>
132+ <profile>
133+ <id>unit</id>
134+ <properties>
135+ <env>default</env>
136+ </properties>
137+ <!-- do not use activeByDefault as other profiles might be active -->
138+ <activation>
139+ <property>
140+ <name>!activateUnitTests</name>
141+ </property>
142+ </activation>
143+ <build>
144+ <plugins>
145+ <plugin>
146+ <groupId>org.apache.maven.plugins</groupId>
147+ <artifactId>maven-surefire-plugin</artifactId>
148+ <version>2.14</version>
149+ <configuration>
150+ <groups>unit</groups>
151+ <useFile>false</useFile>
152+ <systemPropertyVariables>
153+ <cassandra.version>${cassandra.version}</cassandra.version>
154+ <ipprefix>${ipprefix}</ipprefix>
155+ </systemPropertyVariables>
156+ </configuration>
157+ </plugin>
158+ </plugins>
159+ </build>
160+ </profile>
161+
162+ <profile>
163+ <id>short</id>
164+ <properties>
165+ <env>default</env>
166+ </properties>
167+ <build>
168+ <plugins>
169+ <plugin>
170+ <groupId>org.apache.maven.plugins</groupId>
171+ <artifactId>maven-surefire-plugin</artifactId>
172+ <version>2.14</version>
173+ <configuration>
174+ <groups>unit,short</groups>
175+ <useFile>false</useFile>
176+ <systemPropertyVariables>
177+ <cassandra.version>${cassandra.version}</cassandra.version>
178+ <ipprefix>${ipprefix}</ipprefix>
179+ </systemPropertyVariables>
180+ </configuration>
181+ </plugin>
182+ </plugins>
183+ </build>
184+ </profile>
185+
186+ <profile>
187+ <id>long</id>
188+ <properties>
189+ <env>default</env>
190+ </properties>
191+ <build>
192+ <plugins>
193+ <plugin>
194+ <groupId>org.apache.maven.plugins</groupId>
195+ <artifactId>maven-surefire-plugin</artifactId>
196+ <version>2.14</version>
197+ <configuration>
198+ <groups>unit,short,long</groups>
199+ <useFile>false</useFile>
200+ <systemPropertyVariables>
201+ <cassandra.version>${cassandra.version}</cassandra.version>
202+ <ipprefix>${ipprefix}</ipprefix>
203+ </systemPropertyVariables>
204+ </configuration>
205+ </plugin>
206+ </plugins>
207+ </build>
208+ </profile>
209+
210+ </profiles>
211+
212+ <licenses>
213+ <license>
214+ <name>Apache 2</name>
215+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
216+ <distribution>repo</distribution>
217+ <comments>Apache License Version 2.0</comments>
218+ </license>
219+ </licenses>
220+
221+ <scm>
222+ <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
223+ <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
224+ <url>https://github.com/datastax/java-driver</url>
225+ <tag>HEAD</tag>
226+ </scm>
227+
228+ <developers>
229+ <developer>
230+ <name>Various</name>
231+ <organization>DataStax</organization>
232+ </developer>
233+ </developers>
233234 </project>
234235
modified pom.xml +304 −302
@@ -15,321 +15,323 @@
1515 limitations under the License.
1616
1717 -->
18-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19- <modelVersion>4.0.0</modelVersion>
20- <parent>
21- <groupId>org.sonatype.oss</groupId>
22- <artifactId>oss-parent</artifactId>
23- <version>7</version>
24- <relativePath />
25- </parent>
18+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+ <modelVersion>4.0.0</modelVersion>
21+ <parent>
22+ <groupId>org.sonatype.oss</groupId>
23+ <artifactId>oss-parent</artifactId>
24+ <version>7</version>
25+ <relativePath/>
26+ </parent>
2627
27- <groupId>com.datastax.cassandra</groupId>
28- <artifactId>cassandra-driver-parent</artifactId>
29- <version>3.0.0-SNAPSHOT</version>
30- <packaging>pom</packaging>
31- <name>DataStax Java Driver for Apache Cassandra</name>
32- <description>A driver for Apache Cassandra 1.2+ that works exclusively with the Cassandra Query Language version 3 (CQL3) and Cassandra's binary protocol.</description>
33- <url>https://github.com/datastax/java-driver</url>
34- <inceptionYear>2012</inceptionYear>
28+ <groupId>com.datastax.cassandra</groupId>
29+ <artifactId>cassandra-driver-parent</artifactId>
30+ <version>3.0.0-SNAPSHOT</version>
31+ <packaging>pom</packaging>
32+ <name>DataStax Java Driver for Apache Cassandra</name>
33+ <description>A driver for Apache Cassandra 1.2+ that works exclusively with the Cassandra Query Language version 3
34+ (CQL3) and Cassandra's binary protocol.
35+ </description>
36+ <url>https://github.com/datastax/java-driver</url>
37+ <inceptionYear>2012</inceptionYear>
38+
39+ <modules>
40+ <module>driver-core</module>
41+ <module>driver-mapping</module>
42+ <module>driver-extras</module>
43+ <module>driver-examples</module>
44+ <module>driver-dse</module>
45+ <module>driver-dist</module>
46+ </modules>
3547
36- <modules>
37- <module>driver-core</module>
38- <module>driver-mapping</module>
39- <module>driver-extras</module>
40- <module>driver-examples</module>
41- <module>driver-dse</module>
42- <module>driver-dist</module>
43- </modules>
48+ <properties>
49+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
50+ <cassandra.version>3.0.0</cassandra.version>
51+ <java.version>1.6</java.version>
52+ <log4j.version>1.2.17</log4j.version>
53+ <slf4j-log4j12.version>1.7.6</slf4j-log4j12.version>
54+ <guava.version>16.0.1</guava.version>
55+ <netty.version>4.0.33.Final</netty.version>
56+ <metrics.version>3.1.2</metrics.version>
57+ <snappy.version>1.0.5</snappy.version>
58+ <lz4.version>1.2.0</lz4.version>
59+ <hdr.version>2.1.4</hdr.version>
60+ <!-- driver-extras module -->
61+ <jackson.version>2.6.3</jackson.version>
62+ <joda.version>2.9.1</joda.version>
63+ <jsr353-api.version>1.0</jsr353-api.version>
64+ <jsr353-ri.version>1.0.4</jsr353-ri.version>
65+ <!-- test dependency versions -->
66+ <testng.version>6.8.8</testng.version>
67+ <assertj.version>1.7.0</assertj.version>
68+ <mockito.version>1.10.8</mockito.version>
69+ <commons-exec.version>1.3</commons-exec.version>
70+ <scassandra.version>0.11.0</scassandra.version>
71+ <main.basedir>${project.basedir}</main.basedir>
72+ <ipprefix>127.0.1.</ipprefix>
73+ <!-- Set default javadoc.opts, overriden by profiles -->
74+ <javadoc.opts/>
75+ </properties>
4476
45- <properties>
46- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47- <cassandra.version>3.0.0</cassandra.version>
48- <java.version>1.6</java.version>
49- <log4j.version>1.2.17</log4j.version>
50- <slf4j-log4j12.version>1.7.6</slf4j-log4j12.version>
51- <guava.version>16.0.1</guava.version>
52- <netty.version>4.0.33.Final</netty.version>
53- <metrics.version>3.1.2</metrics.version>
54- <snappy.version>1.0.5</snappy.version>
55- <lz4.version>1.2.0</lz4.version>
56- <hdr.version>2.1.4</hdr.version>
57- <!-- driver-extras module -->
58- <jackson.version>2.6.3</jackson.version>
59- <joda.version>2.9.1</joda.version>
60- <jsr353-api.version>1.0</jsr353-api.version>
61- <jsr353-ri.version>1.0.4</jsr353-ri.version>
62- <!-- test dependency versions -->
63- <testng.version>6.8.8</testng.version>
64- <assertj.version>1.7.0</assertj.version>
65- <mockito.version>1.10.8</mockito.version>
66- <commons-exec.version>1.3</commons-exec.version>
67- <scassandra.version>0.11.0</scassandra.version>
68- <main.basedir>${project.basedir}</main.basedir>
69- <ipprefix>127.0.1.</ipprefix>
70- <!-- Set default javadoc.opts, overriden by profiles -->
71- <javadoc.opts />
72- </properties>
77+ <dependencies>
78+ <dependency>
79+ <groupId>log4j</groupId>
80+ <artifactId>log4j</artifactId>
81+ <version>${log4j.version}</version>
82+ <scope>test</scope>
83+ </dependency>
7384
74- <dependencies>
75- <dependency>
76- <groupId>log4j</groupId>
77- <artifactId>log4j</artifactId>
78- <version>${log4j.version}</version>
79- <scope>test</scope>
80- </dependency>
85+ <dependency>
86+ <groupId>org.slf4j</groupId>
87+ <artifactId>slf4j-log4j12</artifactId>
88+ <version>${slf4j-log4j12.version}</version>
89+ <scope>test</scope>
90+ </dependency>
91+ </dependencies>
8192
82- <dependency>
83- <groupId>org.slf4j</groupId>
84- <artifactId>slf4j-log4j12</artifactId>
85- <version>${slf4j-log4j12.version}</version>
86- <scope>test</scope>
87- </dependency>
88- </dependencies>
93+ <profiles>
8994
90- <profiles>
95+ <profile>
96+ <id>doclint-java8-disable</id>
97+ <activation>
98+ <jdk>[1.8,)</jdk>
99+ </activation>
100+ <properties>
101+ <javadoc.opts>-Xdoclint:none</javadoc.opts>
102+ </properties>
103+ </profile>
91104
92- <profile>
93- <id>doclint-java8-disable</id>
94- <activation>
95- <jdk>[1.8,)</jdk>
96- </activation>
97- <properties>
98- <javadoc.opts>-Xdoclint:none</javadoc.opts>
99- </properties>
100- </profile>
105+ <profile>
106+ <id>enforce-java8</id>
107+ <build>
108+ <plugins>
109+ <plugin>
110+ <groupId>org.apache.maven.plugins</groupId>
111+ <artifactId>maven-enforcer-plugin</artifactId>
112+ <version>1.4.1</version>
113+ <executions>
114+ <execution>
115+ <id>enforce-java8</id>
116+ <goals>
117+ <goal>enforce</goal>
118+ </goals>
119+ <configuration>
120+ <rules>
121+ <requireJavaVersion>
122+ <version>1.8</version>
123+ </requireJavaVersion>
124+ </rules>
125+ </configuration>
126+ </execution>
127+ </executions>
128+ </plugin>
129+ </plugins>
130+ </build>
131+ </profile>
101132
102- <profile>
103- <id>enforce-java8</id>
104- <build>
133+ </profiles>
134+
135+ <build>
105136 <plugins>
106- <plugin>
107- <groupId>org.apache.maven.plugins</groupId>
108- <artifactId>maven-enforcer-plugin</artifactId>
109- <version>1.4.1</version>
110- <executions>
111- <execution>
112- <id>enforce-java8</id>
113- <goals>
114- <goal>enforce</goal>
115- </goals>
137+ <plugin>
138+ <artifactId>maven-compiler-plugin</artifactId>
139+ <version>3.3</version>
140+ <configuration>
141+ <source>${java.version}</source>
142+ <target>${java.version}</target>
143+ <optimize>true</optimize>
144+ <showDeprecation>true</showDeprecation>
145+ <showWarnings>true</showWarnings>
146+ <!--
147+ Avoids warnings when cross-compiling to older source levels, see
148+ https://blogs.oracle.com/darcy/entry/bootclasspath_older_source
149+ -->
150+ <compilerArgument>-Xlint:-options</compilerArgument>
151+ <!-- this actually means: use incremental compilation -->
152+ <useIncrementalCompilation>false</useIncrementalCompilation>
153+ </configuration>
154+ </plugin>
155+ <plugin>
156+ <groupId>org.apache.maven.plugins</groupId>
157+ <artifactId>maven-source-plugin</artifactId>
158+ <version>2.2.1</version>
159+ <executions>
160+ <execution>
161+ <id>attach-sources</id>
162+ <phase>package</phase>
163+ <goals>
164+ <goal>jar-no-fork</goal>
165+ </goals>
166+ </execution>
167+ </executions>
168+ </plugin>
169+ <plugin>
170+ <groupId>org.apache.maven.plugins</groupId>
171+ <artifactId>maven-javadoc-plugin</artifactId>
172+ <version>2.9.1</version>
173+ <inherited>true</inherited>
174+ <configuration>
175+ <verbose>false</verbose>
176+ <additionalparam>${javadoc.opts}</additionalparam>
177+ <!-- I can haz math in my javadoc (see http://zverovich.net/2012/01/14/beautiful-math-in-javadoc.html) -->
178+ <header>
179+ &lt;script type="text/javascript"
180+ src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;
181+ </header>
182+ <!-- open external links in a separate window -->
183+ <bottom>
184+ &lt;script type="text/javascript"&gt;
185+ for(var i in document.links) {
186+ var link = document.links[i];
187+ if (link.href.indexOf('is-external=true') != -1) link.target = '_blank';
188+ }
189+ &lt;/script&gt;
190+ </bottom>
191+ <links>
192+ <link>https://docs.oracle.com/javase/8/docs/api/</link>
193+ <link>http://docs.guava-libraries.googlecode.com/git-history/v16.0.1/javadoc/</link>
194+ <link>http://netty.io/4.0/api/</link>
195+ <!-- dependencies from driver-extras -->
196+ <link>http://www.joda.org/joda-time/apidocs/</link>
197+ <link>http://fasterxml.github.io/jackson-core/javadoc/2.6/</link>
198+ <link>http://fasterxml.github.io/jackson-databind/javadoc/2.6/</link>
199+ <link>https://javaee-spec.java.net/nonav/javadocs/</link>
200+ </links>
201+ </configuration>
202+ <executions>
203+ <execution>
204+ <id>attach-javadocs</id>
205+ <goals>
206+ <goal>jar</goal>
207+ </goals>
208+ </execution>
209+ </executions>
210+ </plugin>
211+ <plugin>
212+ <groupId>org.apache.maven.plugins</groupId>
213+ <artifactId>maven-release-plugin</artifactId>
214+ <version>2.5</version>
215+ <configuration>
216+ <tagNameFormat>@{project.version}</tagNameFormat>
217+ <preparationGoals>clean verify -Penforce-java8</preparationGoals>
218+ <!-- do NOT specify arguments tag here as it would override the arguments tag in this plugin's definition in the parent POM -->
219+ </configuration>
220+ </plugin>
221+ <plugin>
222+ <groupId>org.codehaus.mojo</groupId>
223+ <artifactId>clirr-maven-plugin</artifactId>
224+ <version>2.7</version>
225+ <executions>
226+ <execution>
227+ <phase>compile</phase>
228+ <goals>
229+ <goal>check</goal>
230+ </goals>
231+ </execution>
232+ </executions>
233+ <configuration>
234+ <comparisonVersion>3.0.0</comparisonVersion>
235+ <ignoredDifferencesFile>../clirr-ignores.xml</ignoredDifferencesFile>
236+ </configuration>
237+ <!--
238+ Workaround to make clirr plugin work with Java 8.
239+ The bug is actually in the BCEL library,
240+ see https://issues.apache.org/jira/browse/BCEL-173.
241+ See also https://github.com/RichardWarburton/lambda-behave/issues/31#issuecomment-86052095
242+ -->
243+ <dependencies>
244+ <dependency>
245+ <groupId>com.google.code.findbugs</groupId>
246+ <artifactId>bcel-findbugs</artifactId>
247+ <version>6.0</version>
248+ </dependency>
249+ </dependencies>
250+ </plugin>
251+ <!--
252+ To update license headers run:
253+ mvn license:format
254+ -->
255+ <plugin>
256+ <groupId>com.mycila</groupId>
257+ <artifactId>license-maven-plugin</artifactId>
258+ <version>2.8</version>
259+ <configuration>
260+ <header>${main.basedir}/src/license/header.txt</header>
261+ <includes>
262+ <include>src/**/*.java</include>
263+ <include>src/**/*.xml</include>
264+ <include>src/**/*.properties</include>
265+ <include>**/pom.xml</include>
266+ </includes>
267+ <excludes>
268+ <exclude>**/src/main/config/ide/**</exclude>
269+ </excludes>
270+ <mapping>
271+ <java>SLASHSTAR_STYLE</java>
272+ <properties>SCRIPT_STYLE</properties>
273+ </mapping>
274+ <strictCheck>true</strictCheck>
275+ </configuration>
276+ <executions>
277+ <execution>
278+ <id>check-license</id>
279+ <phase>initialize</phase>
280+ <goals>
281+ <goal>check</goal>
282+ </goals>
283+ <configuration>
284+ <properties>
285+ <currentYear>${currentYear}</currentYear>
286+ </properties>
287+ </configuration>
288+ </execution>
289+ </executions>
290+ </plugin>
291+ <plugin>
292+ <groupId>org.codehaus.mojo</groupId>
293+ <artifactId>animal-sniffer-maven-plugin</artifactId>
294+ <version>1.14</version>
116295 <configuration>
117- <rules>
118- <requireJavaVersion>
119- <version>1.8</version>
120- </requireJavaVersion>
121- </rules>
296+ <signature>
297+ <groupId>org.codehaus.mojo.signature</groupId>
298+ <artifactId>java16</artifactId>
299+ <version>1.0</version>
300+ </signature>
122301 </configuration>
123- </execution>
124- </executions>
125- </plugin>
302+ <executions>
303+ <execution>
304+ <id>check</id>
305+ <phase>compile</phase>
306+ <goals>
307+ <goal>check</goal>
308+ </goals>
309+ </execution>
310+ </executions>
311+ </plugin>
126312 </plugins>
127- </build>
128- </profile>
129-
130- </profiles>
313+ </build>
131314
132- <build>
133- <plugins>
134- <plugin>
135- <artifactId>maven-compiler-plugin</artifactId>
136- <version>3.3</version>
137- <configuration>
138- <source>${java.version}</source>
139- <target>${java.version}</target>
140- <optimize>true</optimize>
141- <showDeprecation>true</showDeprecation>
142- <showWarnings>true</showWarnings>
143- <!--
144- Avoids warnings when cross-compiling to older source levels, see
145- https://blogs.oracle.com/darcy/entry/bootclasspath_older_source
146- -->
147- <compilerArgument>-Xlint:-options</compilerArgument>
148- <!-- this actually means: use incremental compilation -->
149- <useIncrementalCompilation>false</useIncrementalCompilation>
150- </configuration>
151- </plugin>
152- <plugin>
153- <groupId>org.apache.maven.plugins</groupId>
154- <artifactId>maven-source-plugin</artifactId>
155- <version>2.2.1</version>
156- <executions>
157- <execution>
158- <id>attach-sources</id>
159- <phase>package</phase>
160- <goals>
161- <goal>jar-no-fork</goal>
162- </goals>
163- </execution>
164- </executions>
165- </plugin>
166- <plugin>
167- <groupId>org.apache.maven.plugins</groupId>
168- <artifactId>maven-javadoc-plugin</artifactId>
169- <version>2.9.1</version>
170- <inherited>true</inherited>
171- <configuration>
172- <verbose>false</verbose>
173- <additionalparam>${javadoc.opts}</additionalparam>
174- <!-- I can haz math in my javadoc (see http://zverovich.net/2012/01/14/beautiful-math-in-javadoc.html) -->
175- <header>
176- &lt;script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;
177- </header>
178- <!-- open external links in a separate window -->
179- <bottom>
180- &lt;script type="text/javascript"&gt;
181- for(var i in document.links) {
182- var link = document.links[i];
183- if (link.href.indexOf('is-external=true') != -1) link.target = '_blank';
184- }
185- &lt;/script&gt;
186- </bottom>
187- <links>
188- <link>https://docs.oracle.com/javase/8/docs/api/</link>
189- <link>http://docs.guava-libraries.googlecode.com/git-history/v16.0.1/javadoc/</link>
190- <link>http://netty.io/4.0/api/</link>
191- <!-- dependencies from driver-extras -->
192- <link>http://www.joda.org/joda-time/apidocs/</link>
193- <link>http://fasterxml.github.io/jackson-core/javadoc/2.6/</link>
194- <link>http://fasterxml.github.io/jackson-databind/javadoc/2.6/</link>
195- <link>https://javaee-spec.java.net/nonav/javadocs/</link>
196- </links>
197- </configuration>
198- <executions>
199- <execution>
200- <id>attach-javadocs</id>
201- <goals>
202- <goal>jar</goal>
203- </goals>
204- </execution>
205- </executions>
206- </plugin>
207- <plugin>
208- <groupId>org.apache.maven.plugins</groupId>
209- <artifactId>maven-release-plugin</artifactId>
210- <version>2.5</version>
211- <configuration>
212- <tagNameFormat>@{project.version}</tagNameFormat>
213- <preparationGoals>clean verify -Penforce-java8</preparationGoals>
214- <!-- do NOT specify arguments tag here as it would override the arguments tag in this plugin's definition in the parent POM -->
215- </configuration>
216- </plugin>
217- <plugin>
218- <groupId>org.codehaus.mojo</groupId>
219- <artifactId>clirr-maven-plugin</artifactId>
220- <version>2.7</version>
221- <executions>
222- <execution>
223- <phase>compile</phase>
224- <goals><goal>check</goal></goals>
225- </execution>
226- </executions>
227- <configuration>
228- <comparisonVersion>3.0.0</comparisonVersion>
229- <ignoredDifferencesFile>../clirr-ignores.xml</ignoredDifferencesFile>
230- <excludes>
231- <!-- Package-private, internal classes -->
232- <exclude>com/datastax/driver/core/Frame$*</exclude>
233- <exclude>com/datastax/driver/core/ProtocolEvent$*</exclude>
234- <exclude>com/datastax/driver/core/Message$*</exclude>
235- <exclude>com/datastax/driver/core/Requests$*</exclude>
236- <exclude>com/datastax/driver/core/Responses$*</exclude>
237- <exclude>com/datastax/driver/core/Connection$*</exclude>
238- </excludes>
239- </configuration>
240- <!--
241- Workaround to make clirr plugin work with Java 8.
242- The bug is actually in the BCEL library,
243- see https://issues.apache.org/jira/browse/BCEL-173.
244- See also https://github.com/RichardWarburton/lambda-behave/issues/31#issuecomment-86052095
245- -->
246- <dependencies>
247- <dependency>
248- <groupId>com.google.code.findbugs</groupId>
249- <artifactId>bcel-findbugs</artifactId>
250- <version>6.0</version>
251- </dependency>
252- </dependencies>
253- </plugin>
254- <!--
255- To update license headers run:
256- mvn license:format
257- -->
258- <plugin>
259- <groupId>com.mycila</groupId>
260- <artifactId>license-maven-plugin</artifactId>
261- <version>2.8</version>
262- <configuration>
263- <header>${main.basedir}/src/license/header.txt</header>
264- <includes>
265- <include>src/**/*.java</include>
266- <include>src/**/*.xml</include>
267- <include>src/**/*.properties</include>
268- <include>**/pom.xml</include>
269- </includes>
270- <excludes>
271- <exclude>**/src/main/config/ide/**</exclude>
272- </excludes>
273- <mapping>
274- <java>SLASHSTAR_STYLE</java>
275- <properties>SCRIPT_STYLE</properties>
276- </mapping>
277- <strictCheck>true</strictCheck>
278- </configuration>
279- <executions>
280- <execution>
281- <id>check-license</id>
282- <phase>initialize</phase>
283- <goals>
284- <goal>check</goal>
285- </goals>
286- </execution>
287- </executions>
288- </plugin>
289- <plugin>
290- <groupId>org.codehaus.mojo</groupId>
291- <artifactId>animal-sniffer-maven-plugin</artifactId>
292- <version>1.14</version>
293- <configuration>
294- <signature>
295- <groupId>org.codehaus.mojo.signature</groupId>
296- <artifactId>java16</artifactId>
297- <version>1.0</version>
298- </signature>
299- </configuration>
300- <executions>
301- <execution>
302- <id>check</id>
303- <phase>compile</phase>
304- <goals>
305- <goal>check</goal>
306- </goals>
307- </execution>
308- </executions>
309- </plugin>
310- </plugins>
311- </build>
315+ <licenses>
316+ <license>
317+ <name>Apache 2</name>
318+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
319+ <distribution>repo</distribution>
320+ <comments>Apache License Version 2.0</comments>
321+ </license>
322+ </licenses>
312323
313- <licenses>
314- <license>
315- <name>Apache 2</name>
316- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
317- <distribution>repo</distribution>
318- <comments>Apache License Version 2.0</comments>
319- </license>
320- </licenses>
321-
322- <scm>
323- <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
324- <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
325- <url>https://github.com/datastax/java-driver</url>
326- <tag>HEAD</tag>
327- </scm>
324+ <scm>
325+ <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
326+ <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
327+ <url>https://github.com/datastax/java-driver</url>
328+ <tag>HEAD</tag>
329+ </scm>
328330
329- <developers>
330- <developer>
331- <name>Various</name>
332- <organization>DataStax</organization>
333- </developer>
334- </developers>
331+ <developers>
332+ <developer>
333+ <name>Various</name>
334+ <organization>DataStax</organization>
335+ </developer>
336+ </developers>
335337 </project>