21 #include "SignalData.hpp"
22 #include <NodeBitmask.hpp>
27 friend bool printSUB_CREATE_REQ(FILE *,
const Uint32 *, Uint32, Uint16);
28 STATIC_CONST( SignalLength = 7 );
30 enum SubscriptionType {
34 SelectiveTableSnapshot = 4,
36 GetFlags = 0xff << 16,
37 RestartFlag = 0x2 << 16,
38 ReportAll = 0x4 << 16,
39 ReportSubscribe= 0x8 << 16,
40 NoReportDDL = 0x10 << 16,
41 NR_Sub_Dropped = 0x1 << 24
46 Uint32 subscriptionId;
47 Uint32 subscriptionKey;
48 Uint32 subscriptionType;
54 friend bool printSUB_CREATE_REF(FILE *,
const Uint32 *, Uint32, Uint16);
55 STATIC_CONST( SignalLength = 3 );
63 SubscriptionAlreadyExist = 1415
64 ,OutOfSubscriptionRecords = 1422
65 ,OutOfTableRecords = 1423
73 friend bool printSUB_CREATE_CONF(FILE *,
const Uint32 *, Uint32, Uint16);
74 STATIC_CONST( SignalLength = 2 );
93 friend bool printSUB_START_REQ(FILE *,
const Uint32 *, Uint32, Uint16);
94 STATIC_CONST( SignalLength = 7 );
98 Uint32 subscriptionId;
99 Uint32 subscriptionKey;
101 Uint32 subscriberData;
102 Uint32 subscriberRef;
111 friend bool printSUB_START_REF(FILE *,
const Uint32 *, Uint32, Uint16);
114 NF_FakeErrorREF = 11,
116 PartiallyConnected = 1421,
117 NoSuchSubscription = 1407,
121 OutOfSubscriberRecords = 1412,
122 OutOfSubOpRecords = 1424,
129 STATIC_CONST( SignalLength = 7 );
130 STATIC_CONST( SignalLength2 = SignalLength+1 );
131 STATIC_CONST( SL_MasterNode = 9 );
135 Uint32 subscriptionId;
136 Uint32 subscriptionKey;
138 Uint32 subscriberData;
143 Uint32 subscriberRef;
144 Uint32 m_masterNodeId;
154 STATIC_CONST( SignalLength = 9 );
158 Uint32 subscriptionId;
159 Uint32 subscriptionKey;
162 Uint32 subscriberData;
178 friend bool printSUB_STOP_REQ(FILE *,
const Uint32 *, Uint32, Uint16);
179 STATIC_CONST( SignalLength = 8 );
182 Uint32 subscriptionId;
183 Uint32 subscriptionKey;
185 Uint32 subscriberData;
186 Uint32 subscriberRef;
196 friend bool printSUB_STOP_REF(FILE *,
const Uint32 *, Uint32, Uint16);
199 NF_FakeErrorREF = 11,
201 NoSuchSubscription = 1407,
204 OutOfSubOpRecords = 1424,
205 NoSuchSubscriber = 1426,
211 STATIC_CONST( SignalLength = 8 );
212 STATIC_CONST( SL_MasterNode = 9 );
216 Uint32 subscriptionId;
217 Uint32 subscriptionKey;
219 Uint32 subscriberData;
220 Uint32 subscriberRef;
222 Uint32 m_masterNodeId;
231 STATIC_CONST( SignalLengthWithGci = 9 );
232 STATIC_CONST( SignalLength = 9 );
236 Uint32 subscriptionId;
237 Uint32 subscriptionKey;
239 Uint32 subscriberData;
240 Uint32 subscriberRef;
252 friend bool printSUB_SYNC_REQ(FILE *,
const Uint32 *, Uint32, Uint16);
253 STATIC_CONST( SignalLength = 8 );
257 Uint32 subscriptionId;
258 Uint32 subscriptionKey;
269 ,LM_CommittedRead = 0x10
274 SECTION( ATTRIBUTE_LIST = 0);
276 SECTION( TUX_BOUND_INFO = 1);
285 friend bool printSUB_SYNC_REF(FILE *,
const Uint32 *, Uint32, Uint16);
289 STATIC_CONST( SignalLength = 3 );
304 friend bool printSUB_SYNC_CONF(FILE *,
const Uint32 *, Uint32, Uint16);
305 STATIC_CONST( SignalLength = 2 );
312 friend bool printSUB_TABLE_DATA(FILE *,
const Uint32 *, Uint32, Uint16);
313 STATIC_CONST( SignalLength = 8 );
314 STATIC_CONST( SignalLengthWithTransId = 10 );
315 SECTION( DICT_TAB_INFO = 0 );
316 SECTION( ATTR_INFO = 0 );
317 SECTION( AFTER_VALUES = 1 );
318 SECTION( BEFORE_VALUES = 2 );
341 static void setOperation(Uint32& ri, Uint32 val) {
342 ri = (ri & 0xFFFFFF00) | val;
344 static void setReqNodeId(Uint32& ri, Uint32 val) {
345 ri = (ri & 0xFFFF00FF) | (val << 8);
347 static void setNdbdNodeId(Uint32& ri, Uint32 val) {
348 ri = (ri & 0xFF00FFFF) | (val << 16);
351 static Uint32 getOperation(
const Uint32 & ri){
355 static Uint32 getReqNodeId(
const Uint32 & ri){
356 return (ri >> 8) & 0xFF;
359 static Uint32 getNdbdNodeId(
const Uint32 & ri){
360 return (ri >> 16) & 0xFF;
370 friend bool printSUB_SYNC_CONTINUE_REQ(FILE *,
const Uint32 *, Uint32, Uint16);
371 STATIC_CONST( SignalLength = 3 );
373 Uint32 subscriberData;
384 friend bool printSUB_SYNC_CONTINUE_REF(FILE *,
const Uint32 *, Uint32, Uint16);
385 STATIC_CONST( SignalLength = 3 );
387 Uint32 subscriptionId;
388 Uint32 subscriptionKey;
398 friend bool printSUB_SYNC_CONTINUE_CONF(FILE *,
const Uint32 *, Uint32, Uint16);
399 STATIC_CONST( SignalLength = 3 );
401 Uint32 subscriptionId;
402 Uint32 subscriptionKey;
414 friend bool printSUB_GCP_COMPLETE_REP(FILE *,
const Uint32 *, Uint32, Uint16);
415 STATIC_CONST( SignalLength = 5 );
416 STATIC_CONST( ON_DISK = 1 );
417 STATIC_CONST( IN_MEMORY = 2 );
418 STATIC_CONST( MISSING_DATA = 4 );
419 STATIC_CONST( ADD_CNT = 8 );
420 STATIC_CONST( SUB_CNT = 16);
424 Uint32 gcp_complete_rep_count;
433 STATIC_CONST( SignalLength = SubGcpCompleteRep::SignalLength );
439 friend bool printSUB_REMOVE_REQ(FILE *,
const Uint32 *, Uint32, Uint16);
440 STATIC_CONST( SignalLength = 4 );
444 Uint32 subscriptionId;
445 Uint32 subscriptionKey;
449 friend bool printSUB_REMOVE_REF(FILE *,
const Uint32 *, Uint32, Uint16);
450 STATIC_CONST( SignalLength = 5 );
453 NF_FakeErrorREF = 11,
455 NoSuchSubscription = 1407,
458 AlreadyDropped = 1419
463 Uint32 subscriptionId;
464 Uint32 subscriptionKey;
470 friend bool printSUB_REMOVE_CONF(FILE *,
const Uint32 *, Uint32, Uint16);
471 STATIC_CONST( SignalLength = 5 );
474 Uint32 subscriptionId;
475 Uint32 subscriptionKey;
482 friend bool printCREATE_SUBSCRIPTION_ID_REQ(FILE *,
const Uint32 *,
484 STATIC_CONST( SignalLength = 2 );
492 friend bool printCREATE_SUBSCRIPTION_ID_CONF(FILE *,
const Uint32 *,
494 STATIC_CONST( SignalLength = 4 );
498 Uint32 subscriptionId;
499 Uint32 subscriptionKey;
504 friend bool printCREATE_SUBSCRIPTION_ID_REF(FILE *,
const Uint32 *,
506 STATIC_CONST( SignalLength = 3 );
514 STATIC_CONST( SignalLength = 1 );
519 STATIC_CONST( SignalLength = 1 );
528 STATIC_CONST( SignalLength = 1 );
534 STATIC_CONST( SignalLength = 4 );
537 Uint32 theBucketMask[1];
549 STATIC_CONST( SignalLength = 4 );
552 Uint32 theBucketMask[1];
562 ,OUT_OF_BUFFER_RELEASE = 3
563 ,API_FAIL_GCI_LIST = 4
564 ,API_FAIL_SUBSCRIBER_LIST = 5
565 ,API_FAIL_SUBSCRIPTION = 6