File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
driver-core/src/main/java/com/datastax/driver/core
driver-examples/src/main/java/com/datastax/driver/examples/basic Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -919,8 +919,10 @@ public Builder addContactPoint(String address) {
919919 * @see Builder#addContactPoint
920920 */
921921 public Builder addContactPoints (String ... addresses ) {
922+ System .out .println ("start to addContactPoints" );
922923 for (String address : addresses )
923924 addContactPoint (address );
925+ System .out .println ("finish addContactPoints" );
924926 return this ;
925927 }
926928
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public static void main(String[] args) {
4242
4343 CreateAndPopulateKeyspace client = new CreateAndPopulateKeyspace ();
4444
45- System .out .println ("test" );
45+ System .out .println ("test" );
4646 try {
4747 client .connect (CONTACT_POINTS , PORT );
4848 client .createSchema ();
@@ -51,7 +51,7 @@ public static void main(String[] args) {
5151
5252 } catch (Error e ) {
5353 e .printStackTrace ();
54- } finally {
54+ } finally {
5555 client .close ();
5656 }
5757 }
@@ -69,13 +69,13 @@ public static void main(String[] args) {
6969 */
7070 public void connect (String [] contactPoints , int port ) {
7171
72- System .out .println ("tes2" );
72+ System .out .println ("tes2" );
7373 cluster = Cluster .builder ()
7474 .addContactPoints (contactPoints ).withPort (port )
7575 .build ();
7676
7777 System .out .printf ("Connected to cluster: %s%n" , cluster .getMetadata ().getClusterName ());
78- System .out .println ("tes3" );
78+ System .out .println ("tes3" );
7979
8080 session = cluster .connect ();
8181 }
You can’t perform that action at this time.
0 commit comments