MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StopPerm.hpp
1 /*
2  Copyright (C) 2003, 2005, 2006 MySQL AB
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 STOP_PERM_HPP
20 #define STOP_PERM_HPP
21 
32 class StopPermReq {
33 
37  friend class Dbdih;
38 
42  friend class Ndbcntr;
43 
44 public:
45  STATIC_CONST( SignalLength = 2 );
46 public:
47 
48  Uint32 senderRef;
49  Uint32 senderData;
50 };
51 
52 class StopPermConf {
53 
57  friend class Dbdih;
58 
62  friend class Ndbcntr;
63 
64 public:
65  STATIC_CONST( SignalLength = 1 );
66 
67 private:
68  Uint32 senderData;
69 };
70 
71 class StopPermRef {
72 
76  friend class Dbdih;
77 
81  friend class Ndbcntr;
82 
83 public:
84  STATIC_CONST( SignalLength = 2 );
85 
86  enum ErrorCode {
87  StopOK = 0,
88  NodeStartInProgress = 1,
89  NodeShutdownInProgress = 2,
90  NF_CausedAbortOfStopProcedure = 3
91  };
92 
93 private:
94  Uint32 errorCode;
95  Uint32 senderData;
96 };
97 
98 #endif