MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ApiRegSignalData.hpp
1 /*
2  Copyright (c) 2003, 2010, 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 #ifndef API_REGCONF_HPP
19 #define API_REGCONF_HPP
20 
21 #include <NodeState.hpp>
22 
23 class ApiRegReq {
27  friend class ClusterMgr;
28 
32  friend class Qmgr;
33 
34 public:
35  STATIC_CONST( SignalLength = 3 );
36 
37 private:
38  Uint32 ref;
39  Uint32 version; // Version of API node
40  Uint32 mysql_version;
41 };
42 
46 class ApiRegRef {
50  friend class Qmgr;
51 
55  friend class ClusterMgr;
56 
57 public:
58  STATIC_CONST( SignalLength = 4 );
59 
60  enum ErrorCode {
61  WrongType = 1,
62  UnsupportedVersion = 2
63  };
64 private:
65  Uint32 ref; // Qmgr ref
66  Uint32 version; // Version of NDB node
67  Uint32 errorCode;
68  Uint32 mysql_version;
69 };
70 
74 class ApiRegConf {
78  friend class Qmgr;
79 
83  friend class ClusterMgr;
84 
85 public:
86  STATIC_CONST( SignalLength = 5 + NodeState::DataLength );
87 private:
88 
89  Uint32 qmgrRef;
90  Uint32 version; // Version of NDB node
91  Uint32 apiHeartbeatFrequency;
92  Uint32 mysql_version;
93  Uint32 minDbVersion;
94  NodeStatePOD nodeState;
95 };
96 
97 #endif