18 #ifndef NDB_DBTC_PROXY_HPP
19 #define NDB_DBTC_PROXY_HPP
21 #include <LocalProxy.hpp>
22 #include <signaldata/CreateTab.hpp>
23 #include <signaldata/TabCommit.hpp>
24 #include <signaldata/PrepDropTab.hpp>
25 #include <signaldata/DropTab.hpp>
26 #include <signaldata/AlterTab.hpp>
27 #include <signaldata/GCP.hpp>
29 #include <signaldata/CreateIndxImpl.hpp>
30 #include <signaldata/AlterIndxImpl.hpp>
31 #include <signaldata/DropIndxImpl.hpp>
43 virtual void callNDB_STTOR(
Signal*);
49 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendTC_SCHVERREQ;
50 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendTC_SCHVERCONF;
52 enum { poolSize = 1 };
54 return ((
DbtcProxy*)proxy)->c_ss_TC_SCHVERREQ;
58 void execTC_SCHVERREQ(
Signal*);
60 void execTC_SCHVERCONF(
Signal*);
61 void sendTC_SCHVERCONF(
Signal*, Uint32 ssId);
67 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendTAB_COMMITREQ;
68 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendTAB_COMMITCONF;
70 enum { poolSize = 1 };
72 return ((
DbtcProxy*)proxy)->c_ss_TAB_COMMITREQ;
76 void execTAB_COMMITREQ(
Signal*);
78 void execTAB_COMMITCONF(
Signal*);
79 void execTAB_COMMITREF(
Signal*);
80 void sendTAB_COMMITCONF(
Signal*, Uint32 ssId);
86 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendPREP_DROP_TAB_REQ;
87 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendPREP_DROP_TAB_CONF;
89 enum { poolSize = 1 };
91 return ((
DbtcProxy*)proxy)->c_ss_PREP_DROP_TAB_REQ;
97 return SsIdBase | req->tableId;
100 return SsIdBase | conf->tableId;
103 return SsIdBase | ref->tableId;
105 void execPREP_DROP_TAB_REQ(
Signal*);
107 void execPREP_DROP_TAB_CONF(
Signal*);
108 void execPREP_DROP_TAB_REF(
Signal*);
109 void sendPREP_DROP_TAB_CONF(
Signal*, Uint32 ssId);
115 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendDROP_TAB_REQ;
116 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendDROP_TAB_CONF;
118 enum { poolSize = 1 };
120 return ((
DbtcProxy*)proxy)->c_ss_DROP_TAB_REQ;
125 return SsIdBase | req->tableId;
128 return SsIdBase | conf->tableId;
131 return SsIdBase | ref->tableId;
133 void execDROP_TAB_REQ(
Signal*);
135 void execDROP_TAB_CONF(
Signal*);
136 void execDROP_TAB_REF(
Signal*);
137 void sendDROP_TAB_CONF(
Signal*, Uint32 ssId);
143 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendALTER_TAB_REQ;
144 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendALTER_TAB_CONF;
146 enum { poolSize = 1 };
148 return ((
DbtcProxy*)proxy)->c_ss_ALTER_TAB_REQ;
153 return SsIdBase | req->tableId;
156 return conf->senderData;
159 return ref->senderData;
161 void execALTER_TAB_REQ(
Signal*);
163 void execALTER_TAB_CONF(
Signal*);
164 void execALTER_TAB_REF(
Signal*);
165 void sendALTER_TAB_CONF(
Signal*, Uint32 ssId);
180 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendTCGETOPSIZEREQ;
181 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendTCGETOPSIZECONF;
183 enum { poolSize = 1 };
185 return ((
DbtcProxy*)proxy)->c_ss_TCGETOPSIZEREQ;
189 void execTCGETOPSIZEREQ(
Signal*);
191 void execTCGETOPSIZECONF(
Signal*);
192 void sendTCGETOPSIZECONF(
Signal*, Uint32 ssId);
200 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendTC_CLOPSIZEREQ;
201 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendTC_CLOPSIZECONF;
203 enum { poolSize = 1 };
205 return ((
DbtcProxy*)proxy)->c_ss_TC_CLOPSIZEREQ;
209 void execTC_CLOPSIZEREQ(
Signal*);
211 void execTC_CLOPSIZECONF(
Signal*);
212 void sendTC_CLOPSIZECONF(
Signal*, Uint32 ssId);
218 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendGCP_NOMORETRANS;
219 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendGCP_TCFINISHED;
221 enum { poolSize = 1 };
223 return ((
DbtcProxy*)proxy)->c_ss_GCP_NOMORETRANS;
227 void execGCP_NOMORETRANS(
Signal*);
229 void execGCP_TCFINISHED(
Signal*);
230 void sendGCP_TCFINISHED(
Signal*, Uint32 ssId);
236 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendAPI_FAILREQ;
237 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendAPI_FAILCONF;
239 enum { poolSize = MAX_NDB_NODES };
241 return ((
DbtcProxy*)proxy)->c_ss_API_FAILREQ;
245 void execAPI_FAILREQ(
Signal*);
247 void execAPI_FAILCONF(
Signal*);
248 void sendAPI_FAILCONF(
Signal*, Uint32 ssId);
255 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendCREATE_INDX_IMPL_REQ;
256 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendCREATE_INDX_IMPL_CONF;
258 enum { poolSize = 1 };
260 return ((
DbtcProxy*)proxy)->c_ss_CREATE_INDX_IMPL_REQ;
264 void execCREATE_INDX_IMPL_REQ(
Signal*);
266 void execCREATE_INDX_IMPL_CONF(
Signal*);
267 void execCREATE_INDX_IMPL_REF(
Signal*);
268 void sendCREATE_INDX_IMPL_CONF(
Signal*, Uint32 ssId);
274 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendALTER_INDX_IMPL_REQ;
275 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendALTER_INDX_IMPL_CONF;
277 enum { poolSize = 1 };
279 return ((
DbtcProxy*)proxy)->c_ss_ALTER_INDX_IMPL_REQ;
283 void execALTER_INDX_IMPL_REQ(
Signal*);
285 void execALTER_INDX_IMPL_CONF(
Signal*);
286 void execALTER_INDX_IMPL_REF(
Signal*);
287 void sendALTER_INDX_IMPL_CONF(
Signal*, Uint32 ssId);
293 m_sendREQ = (SsFUNCREQ)&DbtcProxy::sendDROP_INDX_IMPL_REQ;
294 m_sendCONF = (SsFUNCREP)&DbtcProxy::sendDROP_INDX_IMPL_CONF;
296 enum { poolSize = 1 };
298 return ((
DbtcProxy*)proxy)->c_ss_DROP_INDX_IMPL_REQ;
302 void execDROP_INDX_IMPL_REQ(
Signal*);
304 void execDROP_INDX_IMPL_CONF(
Signal*);
305 void execDROP_INDX_IMPL_REF(
Signal*);
306 void sendDROP_INDX_IMPL_CONF(
Signal*, Uint32 ssId);
309 void execTAKE_OVERTCCONF(
Signal*);