MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mgmapi_debug.h
1 /*
2  Copyright (C) 2003-2006 MySQL AB, 2008 Sun Microsystems, Inc.
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef MGMAPI_DEBUG_H
20 #define MGMAPI_DEBUG_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
34  int ndb_mgm_start_signallog(NdbMgmHandle handle,
35  int nodeId,
36  struct ndb_mgm_reply* reply);
37 
46  int ndb_mgm_stop_signallog(NdbMgmHandle handle,
47  int nodeId,
48  struct ndb_mgm_reply* reply);
49 
60  int ndb_mgm_log_signals(NdbMgmHandle handle,
61  int nodeId,
63  const char* blockNames,
64  struct ndb_mgm_reply* reply);
65 
75  int ndb_mgm_set_trace(NdbMgmHandle handle,
76  int nodeId,
77  int traceNumber,
78  struct ndb_mgm_reply* reply);
79 
89  int ndb_mgm_insert_error(NdbMgmHandle handle,
90  int nodeId,
91  int errorCode,
92  struct ndb_mgm_reply* reply);
93 
94 
103  int ndb_mgm_set_int_parameter(NdbMgmHandle handle,
104  int node,
105  int param,
106  unsigned value,
107  struct ndb_mgm_reply* reply);
108 
109  int ndb_mgm_set_int64_parameter(NdbMgmHandle handle,
110  int node,
111  int param,
112  unsigned long long value,
113  struct ndb_mgm_reply* reply);
114 
115  int ndb_mgm_set_string_parameter(NdbMgmHandle handle,
116  int node,
117  int param,
118  const char * value,
119  struct ndb_mgm_reply* reply);
120 
121  Uint64 ndb_mgm_get_session_id(NdbMgmHandle handle);
122 
123  struct NdbMgmSession {
124  Uint64 id;
125  Uint32 m_stopSelf;
126  Uint32 m_stop;
127  Uint32 nodeid;
128  Uint32 parser_buffer_len;
129  Uint32 parser_status;
130  };
131 
132  int ndb_mgm_get_session(NdbMgmHandle handle, Uint64 id,
133  struct NdbMgmSession *s, int *len);
134 
135 #ifdef __cplusplus
136 }
137 #endif
138 
139 
140 #endif