MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ndb_cluster_connection.java
1 /*
2  Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 /*
18  * Ndb_cluster_connection.java
19  */
20 
21 package com.mysql.ndbjtie.ndbapi;
22 
23 import java.nio.ByteBuffer;
24 
25 import com.mysql.jtie.Wrapper;
26 
28 {
29  public final native int get_latest_error() /*_const_*/;
30  public final native String/*_const char *_*/ get_latest_error_msg() /*_const_*/;
31  static public final native Ndb_cluster_connection create(String/*_const char *_*/ connectstring /*_= 0_*/);
32  static public final native Ndb_cluster_connection create(String/*_const char *_*/ connectstring, int force_api_nodeid);
33  static public final native void delete(Ndb_cluster_connection p0);
34  public final native void set_name(String/*_const char *_*/ name);
35  public final native int set_timeout(int timeout_ms);
36  public final native int connect(int no_retries /*_= 0_*/, int retry_delay_in_seconds /*_= 1_*/, int verbose /*_= 0_*/);
37  public final native int wait_until_ready(int timeout_for_first_alive, int timeout_after_first_alive);
38  public final native void lock_ndb_objects();
39  public final native void unlock_ndb_objects();
40  public final native NdbConst/*_const Ndb *_*/ get_next_ndb_object(NdbConst/*_const Ndb *_*/ p);
41 }