|
MySQL 5.6.14 Source Code Document
|


Public Types | |
| enum | RestartTypeMask { RTM_RestartCluster = 0x01, RTM_RestartNode = 0x02, RTM_RestartNodeInitial = 0x04, RTM_StopNode = 0x08, RTM_StopNodeInitial = 0x10, RTM_StartNode = 0x20, RTM_COUNT = 6, RTM_ALL = 0xFF, RTM_SR = RTM_RestartCluster, RTM_NR = 0x2 | 0x4 | 0x8 | 0x10 | 0x20 } |
| enum | SR_State { SR_RUNNING = 0, SR_STOPPING = 1, SR_STOPPED = 2, SR_VALIDATING = 3 } |
Public Types inherited from NdbRestarter | |
| enum | RestartFlags { NRRF_INITIAL = 0x1, NRRF_NOSTART = 0x2, NRRF_ABORT = 0x4, NRRF_FORCE = 0x8 } |
| enum | NodeSelector { NS_RANDOM = 0, NS_MASTER = 1, NS_NON_MASTER = 2 } |
Public Member Functions | |
| NdbMixRestarter (unsigned *seed=0, const char *_addr=0) | |
| void | setRestartTypeMask (Uint32 mask) |
| int | runUntilStopped (NDBT_Context *ctx, NDBT_Step *step, Uint32 freq) |
| int | runPeriod (NDBT_Context *ctx, NDBT_Step *step, Uint32 time, Uint32 freq) |
| int | init (NDBT_Context *ctx, NDBT_Step *step) |
| int | dostep (NDBT_Context *ctx, NDBT_Step *step) |
| int | finish (NDBT_Context *ctx, NDBT_Step *step) |
Public Member Functions inherited from NdbRestarter | |
| NdbRestarter (const char *_addr=0) | |
| int | getDbNodeId (int _i) |
| int | restartOneDbNode (int _nodeId, bool initial=false, bool nostart=false, bool abort=false, bool force=false) |
| int | restartOneDbNode2 (int _nodeId, Uint32 flags) |
| int | restartAll (bool initial=false, bool nostart=false, bool abort=false, bool force=false) |
| int | restartAll2 (Uint32 flags) |
| int | restartNodes (int *nodes, int num_nodes, Uint32 flags) |
| int | startAll () |
| int | startNodes (const int *_nodes, int _num_nodes) |
| int | waitConnected (unsigned int _timeout=120) |
| int | waitClusterStarted (unsigned int _timeout=120) |
| int | waitClusterSingleUser (unsigned int _timeout=120) |
| int | waitClusterStartPhase (int _startphase, unsigned int _timeout=120) |
| int | waitClusterNoStart (unsigned int _timeout=120) |
| int | waitNodesStarted (const int *_nodes, int _num_nodes, unsigned int _timeout=120) |
| int | waitNodesStartPhase (const int *_nodes, int _num_nodes, int _startphase, unsigned int _timeout=120) |
| int | waitNodesNoStart (const int *_nodes, int _num_nodes, unsigned int _timeout=120) |
| int | checkClusterAlive (const int *deadnodes, int num_nodes) |
| int | getNumDbNodes () |
| int | insertErrorInNode (int _nodeId, int error) |
| int | insertErrorInAllNodes (int error) |
| int | enterSingleUserMode (int _nodeId) |
| int | exitSingleUserMode () |
| int | dumpStateOneNode (int _nodeId, const int *_args, int _num_args) |
| int | dumpStateAllNodes (const int *_args, int _num_args) |
| int | getMasterNodeId () |
| int | getNextMasterNodeId (int nodeId) |
| int | getNodeGroup (int nodeId) |
| int | getRandomNodeSameNodeGroup (int nodeId, int randomNumber) |
| int | getRandomNodeOtherNodeGroup (int nodeId, int randomNumber) |
| int | getRandomNotMasterNodeId (int randomNumber) |
| int | getMasterNodeVersion (int &version) |
| int | getNodeTypeVersionRange (ndb_mgm_node_type type, int &minVer, int &maxVer) |
| int | getNodeStatus (int nodeId) |
| int | getNode (NodeSelector) |
| void | setReconnect (bool) |
| int | rollingRestart (Uint32 flags=0) |
Additional Inherited Members | |
Public Attributes inherited from NdbRestarter | |
| NdbMgmHandle | handle |
| Vector< ndb_mgm_node_state > | ndbNodes |
Protected Member Functions inherited from NdbRestarter | |
| int | waitClusterState (ndb_mgm_node_status _status, unsigned int _timeout, int _startphase=-1) |
| int | waitNodesState (const int *_nodes, int _num_nodes, ndb_mgm_node_status _status, unsigned int _timeout, int _startphase=-1) |
| bool | isConnected () |
| int | connect () |
| void | disconnect () |
| int | getStatus () |
| ndb_mgm_configuration * | getConfig () |
Protected Attributes inherited from NdbRestarter | |
| Vector< ndb_mgm_node_state > | mgmNodes |
| Vector< ndb_mgm_node_state > | apiNodes |
| bool | connected |
| BaseString | addr |
| ndb_mgm_configuration * | m_config |
| bool | m_reconnect |
Definition at line 33 of file NdbMixRestarter.hpp.