19 #ifndef CLUSTER_CONNECTION_HPP
20 #define CLUSTER_CONNECTION_HPP
21 #include <ndb_types.h>
31 unsigned char scan_state;
32 unsigned char init_pos;
33 unsigned char cur_pos;
70 #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
119 int connect(
int no_retries=0,
int retry_delay_in_seconds=1,
int verbose=0);
121 #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
122 int start_connect_thread(
int (*connect_callback)(
void)= 0);
138 int timeout_after_first_alive);
160 int get_latest_error()
const;
161 const char *get_latest_error_msg()
const;
168 int get_auto_reconnect()
const;
183 #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
185 const char *get_connectstring(
char *
buf,
int buf_sz)
const;
186 int get_connected_port()
const;
187 const char *get_connected_host()
const;
189 void set_optimized_node_selection(
int val);
191 unsigned no_db_nodes();
192 unsigned max_nodegroup();
194 unsigned get_connect_count()
const;
195 unsigned get_min_db_version()
const;
200 unsigned get_active_ndb_objects()
const;
202 Uint64 *get_latest_trans_gci();