1 /* 2 Copyright (c) 2003, 2013, 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, version 2.0, 6 as published by the Free Software Foundation. 7 8 This program is also distributed with certain software (including 9 but not limited to OpenSSL) that is licensed under separate terms, 10 as designated in a particular file or component or in included license 11 documentation. The authors of MySQL hereby grant you an additional 12 permission to link the program and your derivative works with the 13 separately licensed software that they have included with MySQL. 14 15 This program is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 GNU General Public License, version 2.0, for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with this program; if not, write to the Free Software 22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 */ 24 25 #ifndef NDB_STTOR_HPP 26 #define NDB_STTOR_HPP 27 28 #include "SignalData.hpp" 29 30 #define JAM_FILE_ID 142 31 32 33 class NdbSttor { 34 /** 35 * Sender(s) 36 */ 37 friend class NdbCntr; 38 39 /** 40 * Reciver(s) 41 */ 42 friend class Ndbcntr; 43 friend class Dbdict; 44 friend class Dbdih; 45 friend class Dblqh; 46 friend class Dbtc; 47 friend class ClusterMgr; 48 friend class Trix; 49 friend class Backup; 50 friend class Suma; 51 friend class LocalProxy; 52 53 friend bool printNDB_STTOR(FILE *, const Uint32 *, Uint32, Uint16); 54 public: 55 STATIC_CONST( SignalLength = 5 ); 56 STATIC_CONST( DataLength = 16 ); 57 private: 58 59 Uint32 senderRef; 60 Uint32 nodeId; 61 Uint32 internalStartPhase; 62 Uint32 typeOfStart; 63 Uint32 masterNodeId; 64 Uint32 unused; 65 Uint32 config[DataLength]; 66 }; 67 68 class NdbSttorry { 69 /** 70 * Receiver(s) 71 */ 72 friend class NdbCntr; 73 74 /** 75 * Sender(s) 76 */ 77 friend class Ndbcntr; 78 friend class Dbdict; 79 friend class Dbdih; 80 friend class Dblqh; 81 friend class Dbtc; 82 friend class ClusterMgr; 83 friend class Trix; 84 friend class Backup; 85 friend class Suma; 86 friend class LocalProxy; 87 88 friend bool printNDB_STTORRY(FILE *, const Uint32 *, Uint32, Uint16); 89 public: 90 STATIC_CONST( SignalLength = 1 ); 91 private: 92 93 Uint32 senderRef; 94 }; 95 96 97 #undef JAM_FILE_ID 98 99 #endif 100