1 /* Copyright (c) 2003-2005 MySQL AB
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.
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.
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 */
19 #include "SignalData.hpp"
20 #include <NodeBitmask.hpp>
21 #include <ndb_limits.h>
22 #include <debugger/GrepError.hpp>
26 * sz = no of elems in enum
27 * @todo support for meta_log must be added
34 // META_LOG = 3, //removed META_LOG. not supported
35 RecordTypeSize
= 3 // =4 if meta log is supported
44 * Sender(s)/Reciver(s)
47 friend class GrepParticipant
;
48 friend bool printREP_WAITGCP_REQ(FILE *, const Uint32
*, Uint32
, Uint16
);
51 STATIC_CONST( SignalLength
= 5 );
53 Uint32 subscriptionId
;
54 Uint32 subscriptionKey
;
62 * Sender(s)/Reciver(s)
65 friend class GrepParticipant
;
67 friend bool printREP_WAITGCP_CONF(FILE *, const Uint32
*, Uint32
, Uint16
);
70 STATIC_CONST( SignalLength
= 5 );
73 Uint32 subscriptionId
;
74 Uint32 subscriptionKey
;
81 * Sender(s)/Reciver(s)
84 friend class GrepParticipant
;
86 friend bool printREP_WAITGCP_REF(FILE *, const Uint32
*, Uint32
, Uint16
);
89 STATIC_CONST( SignalLength
= 6 );
92 Uint32 subscriptionId
;
93 Uint32 subscriptionKey
;
95 GrepError::GE_Code err
;
101 * Sender(s)/Reciver(s)
106 friend bool printREP_GET_GCI_REQ(FILE *, const Uint32
*, Uint32
, Uint16
);
109 STATIC_CONST( SignalLength
= 3 );
118 * Sender(s)/Reciver(s)
122 friend bool printREP_GET_GCI_CONF(FILE *, const Uint32
*, Uint32
, Uint16
);
125 STATIC_CONST( SignalLength
= 7 );
138 * Sender(s)/Reciver(s)
142 friend bool printREP_GET_GCI_REF(FILE *, const Uint32
*, Uint32
, Uint16
);
145 STATIC_CONST( SignalLength
= 8);
153 GrepError::GE_Code err
;
156 class RepGetGciBufferReq
{
158 * Sender(s)/Reciver(s)
162 friend bool printREP_GET_GCIBUFFER_REQ(FILE *, const Uint32
*,
165 STATIC_CONST( SignalLength
= 5 );
174 class RepGetGciBufferConf
{
176 * Sender(s)/Reciver(s)
180 friend bool printREP_GET_GCIBUFFER_CONF(FILE *, const Uint32
*,
184 STATIC_CONST( SignalLength
= 8 );
191 Uint32 currentGCIBuffer
;
195 class RepGetGciBufferRef
198 * Sender(s)/Reciver(s)
202 friend bool printREP_GET_GCIBUFFER_REF(FILE *, const Uint32
*,
206 STATIC_CONST( SignalLength
= 9 );
213 Uint32 currentGCIBuffer
;
215 GrepError::GE_Code err
;
218 class RepInsertGciBufferReq
221 * Sender(s)/Reciver(s)
225 friend bool printREP_INSERT_GCIBUFFER_REQ(FILE *, const Uint32
*,
229 STATIC_CONST( SignalLength
= 5 );
237 class RepInsertGciBufferRef
240 * Sender(s)/Reciver(s)
244 friend bool printREP_INSERT_GCIBUFFER_REF(FILE *, const Uint32
*,
247 STATIC_CONST( SignalLength
= 7 );
254 GrepError::GE_Code err
;
257 class RepInsertGciBufferConf
260 * Sender(s)/Reciver(s)
264 friend bool printREP_INSERT_GCIBUFFER_CONF(FILE *, const Uint32
*,
267 STATIC_CONST( SignalLength
= 5 );
276 class RepClearPSGciBufferReq
279 * Sender(s)/Reciver(s)
283 friend bool printREP_CLEAR_PS_GCIBUFFER_REQ(FILE *, const Uint32
*,
286 STATIC_CONST( SignalLength
= 5 );
294 class RepClearPSGciBufferRef
297 * Sender(s)/Reciver(s)
301 friend bool printREP_CLEAR_PS_GCIBUFFER_REF(FILE *, const Uint32
*,
305 STATIC_CONST( SignalLength
= 7 );
312 GrepError::GE_Code err
;
315 class RepClearPSGciBufferConf
318 * Sender(s)/Reciver(s)
322 friend bool printREP_CLEAR_PS_GCIBUFFER_CONF(FILE *, const Uint32
*,
325 STATIC_CONST( SignalLength
= 5 );
333 class RepClearSSGciBufferReq
336 * Sender(s)/Reciver(s)
340 friend bool printREP_CLEAR_SS_GCIBUFFER_REQ(FILE *, const Uint32
*,
343 STATIC_CONST( SignalLength
= 5 );
351 class RepClearSSGciBufferRef
354 * Sender(s)/Reciver(s)
358 friend bool printREP_CLEAR_SS_GCIBUFFER_REF(FILE *, const Uint32
*,
362 STATIC_CONST( SignalLength
= 7 );
369 GrepError::GE_Code err
;
372 class RepClearSSGciBufferConf
375 * Sender(s)/Reciver(s)
379 friend bool printREP_CLEAR_SS_GCIBUFFER_CONF(FILE *, const Uint32
*,
382 STATIC_CONST( SignalLength
= 5 );
394 * Sender(s)/Reciver(s)
398 friend bool printREP_DATA_PAGE(FILE *, const Uint32
*, Uint32
, Uint16
);
401 STATIC_CONST( SignalLength
= 4 );
409 class RepGciBufferAccRep
412 * Sender(s)/Reciver(s)
416 friend bool printREP_GCIBUFFER_ACC_REP(FILE *, const Uint32
*,
419 STATIC_CONST( SignalLength
= 5 );
424 Uint32 totalSentBytes
;
427 class RepDropTableReq
430 * Sender(s)/Reciver(s)
434 friend bool printREP_DROP_TABLE_REQ(FILE *, const Uint32
*,
438 STATIC_CONST( SignalLength
= 4 );
440 // char tableName[MAX_TAB_NAME_SIZE];
443 class RepDropTableRef
446 * Sender(s)/Reciver(s)
450 friend bool printREP_DROP_TABLE_REF(FILE *, const Uint32
*,
454 STATIC_CONST( SignalLength
= 4 );
456 // char tableName[MAX_TAB_NAME_SIZE];
459 class RepDropTableConf
462 * Sender(s)/Reciver(s)
466 friend bool printREP_DROP_TABLE_CONF(FILE *, const Uint32
*, Uint32
, Uint16
);
469 STATIC_CONST( SignalLength
= 4 );
471 //char tableName[MAX_TAB_NAME_SIZE];
474 class RepDisconnectRep
477 * Sender(s)/Reciver(s)
482 friend bool printREP_DISCONNECT_REP(FILE *, const Uint32
*, Uint32
, Uint16
);
489 STATIC_CONST( SignalLength
= 7 );