MGM_C_API

Classes

Functions: Listening to log events

Functions: Error Handling

Functions: Create/Destroy Management Server Handles

Functions: Connect/Disconnect Management Server

Functions: Cluster status

Functions: Start/stop nodes

Functions: Controlling Clusterlog output

Functions: Backup

Functions: Single User Mode

Typedefs

Enumerations

Variables


Typedef Documentation

typedef struct ndb_logevent_handle* NdbLogEventHandle

The NdbLogEventHandle

typedef struct ndb_mgm_handle* NdbMgmHandle

The NdbMgmHandle.


Enumeration Type Documentation

enum Ndb_logevent_type

Available log events grouped by ndb_mgm_event_category

Enumerator:
NDB_LE_Connected  NDB_MGM_EVENT_CATEGORY_CONNECTION
NDB_LE_Disconnected  NDB_MGM_EVENT_CATEGORY_CONNECTION
NDB_LE_CommunicationClosed  NDB_MGM_EVENT_CATEGORY_CONNECTION
NDB_LE_CommunicationOpened  NDB_MGM_EVENT_CATEGORY_CONNECTION
NDB_LE_ConnectedApiVersion  NDB_MGM_EVENT_CATEGORY_CONNECTION
NDB_LE_GlobalCheckpointStarted  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_GlobalCheckpointCompleted  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_LocalCheckpointStarted  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_LocalCheckpointCompleted  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_LCPStoppedInCalcKeepGci  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_LCPFragmentCompleted  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_NDBStartStarted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NDBStartCompleted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_STTORRYRecieved  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_StartPhaseCompleted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_CM_REGCONF  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_CM_REGREF  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_FIND_NEIGHBOURS  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NDBStopStarted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NDBStopCompleted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NDBStopForced  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NDBStopAborted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_StartREDOLog  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_StartLog  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_UNDORecordsExecuted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NR_CopyDict  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NR_CopyDistr  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NR_CopyFragsStarted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NR_CopyFragDone  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NR_CopyFragsCompleted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NodeFailCompleted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NODE_FAILREP  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_ArbitState  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_ArbitResult  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_GCP_TakeoverStarted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_GCP_TakeoverCompleted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_LCP_TakeoverStarted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_LCP_TakeoverCompleted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_TransReportCounters  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_OperationReportCounters  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_TableCreated  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_UndoLogBlocked  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_JobStatistic  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_SendBytesStatistic  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_ReceiveBytesStatistic  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_MemoryUsage  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_TransporterError  NDB_MGM_EVENT_CATEGORY_ERROR
NDB_LE_TransporterWarning  NDB_MGM_EVENT_CATEGORY_ERROR
NDB_LE_MissedHeartbeat  NDB_MGM_EVENT_CATEGORY_ERROR
NDB_LE_DeadDueToHeartbeat  NDB_MGM_EVENT_CATEGORY_ERROR
NDB_LE_WarningEvent  NDB_MGM_EVENT_CATEGORY_ERROR
NDB_LE_SentHeartbeat  NDB_MGM_EVENT_CATEGORY_INFO
NDB_LE_CreateLogBytes  NDB_MGM_EVENT_CATEGORY_INFO
NDB_LE_InfoEvent  NDB_MGM_EVENT_CATEGORY_INFO
NDB_LE_BackupStarted  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_BackupFailedToStart  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_BackupCompleted  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_BackupAborted  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_StartReport  NDB_MGM_EVENT_CATEGORY_STARTUP

enum ndb_mgm_error

Error codes

Enumerator:
NDB_MGM_NO_ERROR  Not an error
NDB_MGM_ILLEGAL_CONNECT_STRING  Supplied connectstring is illegal
NDB_MGM_ILLEGAL_SERVER_HANDLE  Supplied NdbMgmHandle is illegal
NDB_MGM_ILLEGAL_SERVER_REPLY  Illegal reply from server
NDB_MGM_ILLEGAL_NUMBER_OF_NODES  Illegal number of nodes
NDB_MGM_ILLEGAL_NODE_STATUS  Illegal node status
NDB_MGM_OUT_OF_MEMORY  Memory allocation error
NDB_MGM_SERVER_NOT_CONNECTED  Management server not connected
NDB_MGM_COULD_NOT_CONNECT_TO_SOCKET  Could not connect to socker
NDB_MGM_BIND_ADDRESS  Could not bind local address
NDB_MGM_ALLOCID_ERROR  Generic error, retry may succeed
NDB_MGM_ALLOCID_CONFIG_MISMATCH  Non retriable error
NDB_MGM_START_FAILED  Start failed
NDB_MGM_STOP_FAILED  Stop failed
NDB_MGM_RESTART_FAILED  Restart failed
NDB_MGM_COULD_NOT_START_BACKUP  Unable to start backup
NDB_MGM_COULD_NOT_ABORT_BACKUP  Unable to abort backup
NDB_MGM_COULD_NOT_ENTER_SINGLE_USER_MODE  Unable to enter single user mode
NDB_MGM_COULD_NOT_EXIT_SINGLE_USER_MODE  Unable to exit single user mode
NDB_MGM_USAGE_ERROR  Usage error

enum ndb_mgm_event_category

Log event categories, used to set filter level on the log events using ndb_mgm_set_clusterlog_loglevel() and ndb_mgm_listen_event()

Enumerator:
NDB_MGM_ILLEGAL_EVENT_CATEGORY  Invalid log event category
NDB_MGM_EVENT_CATEGORY_STARTUP  Log events during all kinds of startups
NDB_MGM_EVENT_CATEGORY_SHUTDOWN  Log events during shutdown
NDB_MGM_EVENT_CATEGORY_STATISTIC  Statistics log events
NDB_MGM_EVENT_CATEGORY_CHECKPOINT  Log events related to checkpoints
NDB_MGM_EVENT_CATEGORY_NODE_RESTART  Log events during node restart
NDB_MGM_EVENT_CATEGORY_CONNECTION  Log events related to connections between cluster nodes
NDB_MGM_EVENT_CATEGORY_BACKUP  Backup related log events
NDB_MGM_EVENT_CATEGORY_CONGESTION  Congestion related log events
NDB_MGM_EVENT_CATEGORY_INFO  Uncategorized log events (severity info)
NDB_MGM_EVENT_CATEGORY_ERROR  Uncategorized log events (severity warning or higher)

enum ndb_mgm_event_severity

Log event severities (used to filter the cluster log, ndb_mgm_set_clusterlog_severity_filter(), and filter listening to events ndb_mgm_listen_event())

Enumerator:
NDB_MGM_EVENT_SEVERITY_ON  Cluster log on
NDB_MGM_EVENT_SEVERITY_DEBUG  Used in NDB Cluster developement
NDB_MGM_EVENT_SEVERITY_INFO  Informational messages
NDB_MGM_EVENT_SEVERITY_WARNING  Conditions that are not error condition, but might require handling.
NDB_MGM_EVENT_SEVERITY_ERROR  Conditions that, while not fatal, should be corrected.
NDB_MGM_EVENT_SEVERITY_CRITICAL  Critical conditions, like device errors or out of resources
NDB_MGM_EVENT_SEVERITY_ALERT  A condition that should be corrected immediately, such as a corrupted system
NDB_MGM_EVENT_SEVERITY_ALL  All severities

enum ndb_mgm_node_status

Database node status

Enumerator:
NDB_MGM_NODE_STATUS_UNKNOWN  Node status not known
NDB_MGM_NODE_STATUS_NO_CONTACT  No contact with node
NDB_MGM_NODE_STATUS_NOT_STARTED  Has not run starting protocol
NDB_MGM_NODE_STATUS_STARTING  Is running starting protocol
NDB_MGM_NODE_STATUS_STARTED  Running
NDB_MGM_NODE_STATUS_SHUTTING_DOWN  Is shutting down
NDB_MGM_NODE_STATUS_RESTARTING  Is restarting
NDB_MGM_NODE_STATUS_SINGLEUSER  Maintenance mode
NDB_MGM_NODE_STATUS_RESUME  Resume mode

enum ndb_mgm_node_type

NDB Cluster node types

Enumerator:
NDB_MGM_NODE_TYPE_API  An application (NdbApi) node
NDB_MGM_NODE_TYPE_NDB  A database node
NDB_MGM_NODE_TYPE_MGM  A management server node


Function Documentation

int ndb_logevent_get_fd ( const   NdbLogEventHandle  ) 

Retrieve filedescriptor from NdbLogEventHandle. May be used in e.g. an application select() statement.

Note:
Do not attemt to read from it, it will corrupt the parsing.
Returns:
filedescriptor, -1 on failure.

int ndb_logevent_get_latest_error ( const   NdbLogEventHandle  ) 

Retrieve laterst error code

Returns:
error code

const char* ndb_logevent_get_latest_error_msg ( const   NdbLogEventHandle  ) 

Retrieve laterst error message

Returns:
error message

int ndb_logevent_get_next ( const   NdbLogEventHandle,
struct ndb_logevent dst,
unsigned  timeout_in_milliseconds 
)

Attempt to retrieve next log event and will fill in the supplied struct dst

Parameters:
dst Pointer to struct to fill in event information
timeout_in_milliseconds Timeout for waiting for event
Returns:
>0 if event exists, 0 no event (timed out), or -1 on error.
Note:
Return value <=0 will leave dst untouched

int ndb_mgm_abort_backup ( NdbMgmHandle  handle,
unsigned int  backup_id,
struct ndb_mgm_reply reply 
)

Abort backup

Parameters:
handle NDB management handle.
backup_id Backup ID.
reply Reply message.
Returns:
-1 on error.

int ndb_mgm_connect ( NdbMgmHandle  handle,
int  no_retries,
int  retry_delay_in_seconds,
int  verbose 
)

Connects to a management server. Connectstring is set by ndb_mgm_set_connectstring().

Parameters:
handle Management handle.
no_retries Number of retries to connect (0 means connect once).
retry_delay_in_seconds How long to wait until retry is performed.
verbose Make printout regarding connect retries.
Returns:
-1 on error.

NdbMgmHandle ndb_mgm_create_handle (  ) 

Create a handle to a management server.

Returns:
A management handle
or NULL if no management handle could be created.

NdbLogEventHandle ndb_mgm_create_logevent_handle ( NdbMgmHandle  ,
const int  filter[] 
)

Listen to log events.

Parameters:
handle NDB management handle.
filter pairs of { level, ndb_mgm_event_category } that will be pushed to fd, level=0 ends list.
Returns:
NdbLogEventHandle

void ndb_mgm_destroy_handle ( NdbMgmHandle handle  ) 

Destroy a management server handle.

Parameters:
handle Management handle

int ndb_mgm_disconnect ( NdbMgmHandle  handle  ) 

Disconnects from a management server

Parameters:
handle Management handle.
Returns:
-1 on error.

int ndb_mgm_enter_single_user ( NdbMgmHandle  handle,
unsigned int  nodeId,
struct ndb_mgm_reply reply 
)

Enter Single user mode

Parameters:
handle NDB management handle.
nodeId Node ID of the single user node
reply Reply message.
Returns:
-1 on error.

int ndb_mgm_exit_single_user ( NdbMgmHandle  handle,
struct ndb_mgm_reply reply 
)

Exit Single user mode

Parameters:
handle NDB management handle.
reply Reply message.
Returns:
-1 on error.

const unsigned int* ndb_mgm_get_clusterlog_loglevel ( NdbMgmHandle  handle  ) 

get log category and levels

Parameters:
handle NDB management handle.
Returns:
A vector of twelve elements, where each element contains loglevel of corresponding category

const unsigned int* ndb_mgm_get_clusterlog_severity_filter ( NdbMgmHandle  handle  ) 

Get clusterlog severity filter

Parameters:
handle NDB management handle
Returns:
A vector of seven elements, where each element contains 1 if a severity indicator is enabled and 0 if not. A severity level is stored at position ndb_mgm_clusterlog_level; for example the "error" level is stored in position [NDB_MGM_EVENT_SEVERITY_ERROR]. The first element [NDB_MGM_EVENT_SEVERITY_ON] in the vector signals whether the cluster log is disabled or enabled.

int ndb_mgm_get_configuration_nodeid ( NdbMgmHandle  handle  ) 

Gets connection node ID

Parameters:
handle Management handle
Returns:
Node ID; 0 indicates that no node ID has been specified

const char * ndb_mgm_get_connected_host ( NdbMgmHandle  handle  ) 

Gets connection host

Parameters:
handle Management handle
Returns:
hostname

int ndb_mgm_get_connected_port ( NdbMgmHandle  handle  ) 

Gets connection port

Parameters:
handle Management handle
Returns:
port

const char * ndb_mgm_get_connectstring ( NdbMgmHandle  handle,
char *  buf,
int  buf_sz 
)

Gets the connectstring used for a connection

Note:
This function returns the default connectstring if no call to ndb_mgm_set_connectstring() has been performed. Also, the returned connectstring may be formatted differently.
Parameters:
handle Management handle
buf Buffer to hold result
buf_sz Size of buffer.
Returns:
connectstring (same as buf)

int ndb_mgm_get_latest_error ( const NdbMgmHandle  handle  ) 

Get the most recent error associated with the management server whose handle is used as the value of handle.

Parameters:
handle Management handle
Returns:
Latest error code

const char* ndb_mgm_get_latest_error_desc ( const NdbMgmHandle  handle  ) 

Get the most recent error description associated with a handle

The error description gives some additional information regarding the error message.

Parameters:
handle Management handle.
Returns:
Latest error description

const char* ndb_mgm_get_latest_error_msg ( const NdbMgmHandle  handle  ) 

Get the most recent general error message associated with a handle

Parameters:
handle Management handle.
Returns:
Latest error message

struct ndb_mgm_cluster_state* ndb_mgm_get_status ( NdbMgmHandle  handle  )  [read]

Gets status of the nodes in an NDB Cluster

Note:
The caller must free the pointer returned by this function.
Parameters:
handle Management handle.
Returns:
Cluster state (or NULL on error).

int ndb_mgm_is_connected ( NdbMgmHandle  handle  ) 

Return true if connected.

Parameters:
handle Management handle
Returns:
0 if not connected, non-zero if connected.

int ndb_mgm_listen_event ( NdbMgmHandle  handle,
const int  filter[] 
)

Listen to log events. They are read from the return file descriptor and the format is textual, and the same as in the cluster log.

Parameters:
handle NDB management handle.
filter pairs of { level, ndb_mgm_event_category } that will be pushed to fd, level=0 ends list.
Returns:
fd filedescriptor to read events from

int ndb_mgm_restart ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list 
)

Restart database nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to restart
0: All database nodes in cluster
n: Restart the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be restarted
Returns:
Number of nodes restarted (-1 on error).
Note:
This function is equivalent to calling ndb_mgm_restart2(handle, no_of_nodes, node_list, 0, 0, 0);

int ndb_mgm_restart2 ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list,
int  initial,
int  nostart,
int  abort 
)

Restart database nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to be restarted:
0: Restart all database nodes in the cluster
n: Restart the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be restarted
initial Remove filesystem from restarting node(s)
nostart Don't actually start node(s) but leave them waiting for start command
abort Don't perform graceful restart, but rather restart immediately
Returns:
Number of nodes stopped (-1 on error).

int ndb_mgm_restart3 ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list,
int  initial,
int  nostart,
int  abort,
int *  disconnect 
)

Restart nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to be restarted:
0: Restart all database nodes in the cluster
n: Restart the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be restarted
initial Remove filesystem from restarting node(s)
nostart Don't actually start node(s) but leave them waiting for start command
abort Don't perform graceful restart, but rather restart immediately
disconnect Returns true if mgmapi client must disconnect from server to apply the requested operation. (e.g. restart the management server)
Returns:
Number of nodes stopped (-1 on error).

int ndb_mgm_set_bindaddress ( NdbMgmHandle  ,
const char *  arg 
)

Set local bindaddress

Parameters:
arg - Srting of form "host[:port]"
Note:
must be called before connect

Error on binding local address will not be reported until connect

Returns:
0 on success

int ndb_mgm_set_clusterlog_loglevel ( NdbMgmHandle  handle,
int  nodeId,
enum ndb_mgm_event_category  category,
int  level,
struct ndb_mgm_reply reply 
)

Set log category and levels for the cluster log

Parameters:
handle NDB management handle.
nodeId Node ID.
category Event category.
level Log level (0-15).
reply Reply message.
Returns:
-1 on error.

int ndb_mgm_set_clusterlog_severity_filter ( NdbMgmHandle  handle,
enum ndb_mgm_event_severity  severity,
int  enable,
struct ndb_mgm_reply reply 
)

Filter cluster log severities

Parameters:
handle NDB management handle.
severity A cluster log severity to filter.
enable set 1=enable o 0=disable
reply Reply message.
Returns:
-1 on error.

int ndb_mgm_set_connect_timeout ( NdbMgmHandle  handle,
unsigned int  seconds 
)

Sets the number of seconds to wait for connect(2) during ndb_mgm_connect Default is no timeout

Parameters:
handle NdbMgmHandle
seconds number of seconds
Returns:
non-zero on success

int ndb_mgm_set_connectstring ( NdbMgmHandle  handle,
const char *  connect_string 
)

Sets the connectstring for a management server

Parameters:
handle Management handle
connect_string Connect string to the management server,
Returns:
-1 on error.
 <connectstring> := [<nodeid-specification>,]<host-specification>[,<host-specification>]
 <nodeid-specification> := nodeid=<id>
 <host-specification> := <host>[:<port>]
 <id> is an integer greater than 0 identifying a node in config.ini
 <port> is an integer referring to a regular unix port
 <host> is a string containing a valid network host address

void ndb_mgm_set_error_stream ( NdbMgmHandle  ,
FILE *   
)

Set error stream

void ndb_mgm_set_name ( NdbMgmHandle  handle,
const char *  name 
)

Set a name of the handle. Name is reported in cluster log.

Parameters:
handle Management handle
name Name

int ndb_mgm_start ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list 
)

Start database nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to be started
0: Start all database nodes in the cluster
n: Start the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be started
Returns:
Number of nodes actually started (-1 on error).
Note:
The nodes to be started must have been started with nostart(-n) argument. This means that the database node binary is started and waiting for a START management command which will actually enable the database node

int ndb_mgm_start_backup ( NdbMgmHandle  handle,
int  wait_completed,
unsigned int *  backup_id,
struct ndb_mgm_reply reply 
)

Start backup

Parameters:
handle NDB management handle.
wait_completed 0: Don't wait for confirmation
1: Wait for backup to be started
2: Wait for backup to be completed
backup_id Backup ID is returned from function.
reply Reply message.
Returns:
-1 on error.
Note:
backup_id will not be returned if wait_completed == 0

int ndb_mgm_stop ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list 
)

Stops database nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to be stopped
0: All database nodes in cluster
n: Stop the n node(s) specified in the array node_list
node_list List of node IDs for database nodes to be stopped
Returns:
Number of nodes stopped (-1 on error)
Note:
This function is equivalent to calling ndb_mgm_stop2(handle, no_of_nodes, node_list, 0)

int ndb_mgm_stop2 ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list,
int  abort 
)

Stops database nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to stop
0: All database nodes in cluster
n: Stop the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be stopped
abort Don't perform graceful stop, but rather stop immediately
Returns:
Number of nodes stopped (-1 on error).

int ndb_mgm_stop3 ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list,
int  abort,
int *  disconnect 
)

Stops cluster nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to stop
-1: All database and management nodes
0: All database nodes in cluster
n: Stop the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be stopped
abort Don't perform graceful stop, but rather stop immediately
disconnect Returns true if you need to disconnect to apply the stop command (e.g. stopping the mgm server that handle is connected to)
Returns:
Number of nodes stopped (-1 on error).


Variable Documentation

char ndb_mgm_node_state::connect_address[] [inherited]

IP address of node when it connected to the management server.

Note:
This value will be empty if the management server has restarted since the node last connected.

int ndb_mgm_node_state::connect_count [inherited]

Number of times node has connected or disconnected to the management server

int ndb_mgm_node_state::dynamic_id [inherited]

ID for heartbeats and master take-over (only valid for DB nodes)

char ndb_mgm_reply::message[256] [inherited]

Error or reply message.

int ndb_mgm_node_state::node_group [inherited]

Node group of node (only valid for DB nodes)

struct ndb_mgm_node_state ndb_mgm_cluster_state::node_states[] [read, inherited]

An array with node_states

enum ndb_mgm_node_status ndb_mgm_node_state::node_status [inherited]

State of node

enum ndb_mgm_node_type ndb_mgm_node_state::node_type [inherited]

Type of NDB Cluster node

int ndb_mgm_node_state::start_phase [inherited]

Start phase.

Note:
Start phase is only valid if the node_type is NDB_MGM_NODE_TYPE_NDB and the node_status is NDB_MGM_NODE_STATUS_STARTING

int ndb_mgm_node_state::version [inherited]

Internal version number


Documentation generated Fri Sep 28 07:32:34 2007 from mysql source files.
© 2003-2004 MySQL AB