18 #ifndef NDBT_RESTARTS_HPP
19 #define NDBT_RESTARTS_HPP
21 #include <NdbRestarter.hpp>
49 myRandom48Init((
long)NdbTick_CurrentMillisecond());
54 MULTIPLE_NODE_RESTART,
68 NdbRestartType m_type;
69 restartFunc* m_restartFunc;
70 int m_numRequiredNodes;
77 int executeRestart(
NDBT_Context*,
int _num,
unsigned int _to = 120);
78 int executeRestart(
NDBT_Context*,
const char* _name,
unsigned int _to = 120);
81 void listRestarts(NdbRestartType _type);
85 struct NdbErrorInsert {
86 NdbErrorInsert(
const char* _name,
93 const char* getName();
96 int getNumErrorInserts();
97 const NdbErrorInsert* getError(
int _num);
98 const NdbErrorInsert* getRandomError();
100 static const NdbErrorInsert m_errors[];
101 static const int m_NoOfErrors;
103 const NdbRestart* getRestart(
int _num);
104 const NdbRestart* getRestart(
const char* _name);
106 static const NdbRestart m_restarts[];
107 static const int m_NoOfRestarts;