MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ndbd.hpp
1 /* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15 
16 #ifndef NDBD_HPP
17 #define NDBD_HPP
18 
19 void
20 ndbd_run(bool foreground, int report_fd,
21  const char* connect_str, int force_nodeid, const char* bind_address,
22  bool no_start, bool initial, bool initialstart,
23  unsigned allocated_nodeid);
24 
25 enum NdbShutdownType {
26  NST_Normal,
27  NST_Watchdog,
28  NST_ErrorHandler,
29  NST_ErrorHandlerSignal,
30  NST_Restart,
31  NST_ErrorInsert
32 };
33 
34 enum NdbRestartType {
35  NRT_Default = 0,
36  NRT_NoStart_Restart = 1, // -n
37  NRT_DoStart_Restart = 2, //
38  NRT_NoStart_InitialStart = 3, // -n -i
39  NRT_DoStart_InitialStart = 4 // -i
40 };
41 
51 void
52 NdbShutdown(int error_code,
53  NdbShutdownType type,
54  NdbRestartType restartType = NRT_Default);
55 
56 
57 
58 #endif