|
MySQL 5.6.14 Source Code Document
|


Public Member Functions | |
| NdbConfig (int own_id, const char *addr=0) | |
| bool | getProperty (unsigned nodeid, unsigned type, unsigned key, Uint32 *val) |
| bool | getHostName (unsigned int node_id, const char **hostname) |
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) |
Public Attributes | |
| int | ownNodeId |
Public Attributes inherited from NdbRestarter | |
| NdbMgmHandle | handle |
| Vector< ndb_mgm_node_state > | ndbNodes |
Additional Inherited Members | |
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 } |
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 28 of file NdbConfig.hpp.
| bool NdbConfig::getHostName | ( | unsigned int | node_id, |
| const char ** | hostname | ||
| ) |
Setup cluster configuration data
Definition at line 31 of file NdbConfig.cpp.
| bool NdbConfig::getProperty | ( | unsigned | nodeid, |
| unsigned | type, | ||
| unsigned | key, | ||
| Uint32 * | val | ||
| ) |
Setup cluster configuration data
Definition at line 56 of file NdbConfig.cpp.