Skip to content

Commit

Permalink
wl#9819 patch #13: Map Ndb_cluster_connection::set_application_addres…
Browse files Browse the repository at this point in the history
…s() to Java for ndbjtie
  • Loading branch information
jdduncan committed Mar 30, 2017
1 parent ed5dce3 commit fe1415c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
9 changes: 8 additions & 1 deletion storage/ndb/src/ndbjtie/NdbApiWrapper.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -3520,6 +3520,13 @@ struct NdbApiWrapper {
obj.set_name(p0);
}

static void
Ndb_cluster_connection__set_application_address
( Ndb_cluster_connection & obj, const char * p0, int p1)
{
obj.set_application_address(p0, p1);
}

static int
Ndb_cluster_connection__set_timeout
( Ndb_cluster_connection & obj, int p0 )
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -32,6 +32,7 @@ public class Ndb_cluster_connection extends Wrapper implements Ndb_cluster_conne
static public final native Ndb_cluster_connection create(String/*_const char *_*/ connectstring, int force_api_nodeid);
static public final native void delete(Ndb_cluster_connection p0);
public final native void set_name(String/*_const char *_*/ name);
public final native void set_application_port(int port);
public final native int set_timeout(int timeout_ms);
public final native int connect(int no_retries /*_= 0_*/, int retry_delay_in_seconds /*_= 1_*/, int verbose /*_= 0_*/);
public final native int wait_until_ready(int timeout_for_first_alive, int timeout_after_first_alive);
Expand Down
18 changes: 17 additions & 1 deletion storage/ndb/src/ndbjtie/ndbapi_jtie.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.

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

/*
* Class: com_mysql_ndbjtie_ndbapi_Ndb_cluster_connection
* Method: set_application_port
* Signature: (I)V
*/
JNIEXPORT void JNICALL
Java_com_mysql_ndbjtie_ndbapi_Ndb_1cluster_1connection_set_1application_1address(JNIEnv * env, jobject obj, jstring p0, jint p1)
{
TRACE("void Java_com_mysql_ndbjtie_ndbapi_Ndb_1cluster_1connection_set_1application_1port(JNIEnv *, jobject, jstring, jint)");
#ifndef NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
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);
#else
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);
#endif // NDBJTIE_USE_WRAPPED_VARIANT_FOR_FUNCTION
}

/*
* Class: com_mysql_ndbjtie_ndbapi_Ndb_cluster_connection
* Method: set_timeout
Expand Down

0 comments on commit fe1415c

Please sign in to comment.