18 #ifndef NDBT_RESTARTER_HPP
19 #define NDBT_RESTARTER_HPP
23 #include <BaseString.hpp>
30 int getDbNodeId(
int _i);
39 int restartOneDbNode(
int _nodeId,
45 int restartOneDbNode2(
int _nodeId, Uint32
flags){
46 return restartOneDbNode(_nodeId,
53 int restartAll(
bool initial =
false,
58 int restartAll2(Uint32 flags){
59 return restartAll(flags & NRRF_INITIAL,
65 int restartNodes(
int * nodes,
int num_nodes, Uint32 flags);
68 int startNodes(
const int * _nodes,
int _num_nodes);
69 int waitConnected(
unsigned int _timeout = 120);
70 int waitClusterStarted(
unsigned int _timeout = 120);
71 int waitClusterSingleUser(
unsigned int _timeout = 120);
72 int waitClusterStartPhase(
int _startphase,
unsigned int _timeout = 120);
73 int waitClusterNoStart(
unsigned int _timeout = 120);
74 int waitNodesStarted(
const int * _nodes,
int _num_nodes,
75 unsigned int _timeout = 120);
76 int waitNodesStartPhase(
const int * _nodes,
int _num_nodes,
77 int _startphase,
unsigned int _timeout = 120);
78 int waitNodesNoStart(
const int * _nodes,
int _num_nodes,
79 unsigned int _timeout = 120);
81 int checkClusterAlive(
const int * deadnodes,
int num_nodes);
84 int insertErrorInNode(
int _nodeId,
int error);
85 int insertErrorInAllNodes(
int error);
87 int enterSingleUserMode(
int _nodeId);
88 int exitSingleUserMode();
90 int dumpStateOneNode(
int _nodeId,
const int * _args,
int _num_args);
91 int dumpStateAllNodes(
const int * _args,
int _num_args);
93 int getMasterNodeId();
94 int getNextMasterNodeId(
int nodeId);
95 int getNodeGroup(
int nodeId);
96 int getRandomNodeSameNodeGroup(
int nodeId,
int randomNumber);
97 int getRandomNodeOtherNodeGroup(
int nodeId,
int randomNumber);
98 int getRandomNotMasterNodeId(
int randomNumber);
100 int getMasterNodeVersion(
int& version);
103 int getNodeStatus(
int nodeId);
114 int getNode(NodeSelector);
116 void setReconnect(
bool);
118 int rollingRestart(Uint32 flags = 0);
122 unsigned int _timeout,
123 int _startphase = -1);
127 unsigned int _timeout,
128 int _startphase = -1);