Skip to content

Commit fe1415c

Browse files
committed
wl#9819 patch #13: Map Ndb_cluster_connection::set_application_address() to Java for ndbjtie
1 parent ed5dce3 commit fe1415c

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

storage/ndb/src/ndbjtie/NdbApiWrapper.hpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -3520,6 +3520,13 @@ struct NdbApiWrapper {
35203520
obj.set_name(p0);
35213521
}
35223522

3523+
static void
3524+
Ndb_cluster_connection__set_application_address
3525+
( Ndb_cluster_connection & obj, const char * p0, int p1)
3526+
{
3527+
obj.set_application_address(p0, p1);
3528+
}
3529+
35233530
static int
35243531
Ndb_cluster_connection__set_timeout
35253532
( Ndb_cluster_connection & obj, int p0 )

storage/ndb/src/ndbjtie/com/mysql/ndbjtie/ndbapi/Ndb_cluster_connection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -32,6 +32,7 @@ public class Ndb_cluster_connection extends Wrapper implements Ndb_cluster_conne
3232
static public final native Ndb_cluster_connection create(String/*_const char *_*/ connectstring, int force_api_nodeid);
3333
static public final native void delete(Ndb_cluster_connection p0);
3434
public final native void set_name(String/*_const char *_*/ name);
35+
public final native void set_application_port(int port);
3536
public final native int set_timeout(int timeout_ms);
3637
public final native int connect(int no_retries /*_= 0_*/, int retry_delay_in_seconds /*_= 1_*/, int verbose /*_= 0_*/);
3738
public final native int wait_until_ready(int timeout_for_first_alive, int timeout_after_first_alive);

storage/ndb/src/ndbjtie/ndbapi_jtie.hpp

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
33

44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -10202,6 +10202,22 @@ Java_com_mysql_ndbjtie_ndbapi_Ndb_1cluster_1connection_set_1name(JNIEnv * env, j
1020210202
#endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
1020310203
}
1020410204

10205+
/*
10206+
* Class: com_mysql_ndbjtie_ndbapi_Ndb_cluster_connection
10207+
* Method: set_application_port
10208+
* Signature: (I)V
10209+
*/
10210+
JNIEXPORT void JNICALL
10211+
Java_com_mysql_ndbjtie_ndbapi_Ndb_1cluster_1connection_set_1application_1address(JNIEnv * env, jobject obj, jstring p0, jint p1)
10212+
{
10213+
TRACE("void Java_com_mysql_ndbjtie_ndbapi_Ndb_1cluster_1connection_set_1application_1port(JNIEnv *, jobject, jstring, jint)");
10214+
#ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
10215+
gcall_mfv< ttrait_c_m_n_n_Ndb_cluster_connection_t, ttrait_char_cp_jutf8null, ttrait_int, &Ndb_cluster_connection::set_application_address >(env, obj, p0, p1);
10216+
#else
10217+
gcall_fv< ttrait_c_m_n_n_Ndb_cluster_connection_r, ttrait_char_cp_jutf8null, ttrait_int, &NdbApiWrapper::Ndb_cluster_connection__set_application_address >(env, NULL, obj, p0, p1);
10218+
#endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
10219+
}
10220+
1020510221
/*
1020610222
* Class: com_mysql_ndbjtie_ndbapi_Ndb_cluster_connection
1020710223
* Method: set_timeout

0 commit comments

Comments
 (0)