Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a4ee32c4
Commit
a4ee32c4
authored
Dec 28, 2004
by
jon@gigan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mgmapi.h: Trying the HTML formatting commands for Doxygen again...
parent
66aef95b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
79 deletions
+79
-79
ndb/include/mgmapi/mgmapi.h
ndb/include/mgmapi/mgmapi.h
+79
-79
No files found.
ndb/include/mgmapi/mgmapi.h
View file @
a4ee32c4
...
...
@@ -20,7 +20,7 @@
/**
* @mainpage NDB Cluster Management API
*
* The NDB Cluster Management API (MGM API) is a C API
* The NDB Cluster Management API (MGM API) is a C API
* that is used to:
* - Start and stop database nodes (DB nodes)
* - Start and stop NDB Cluster backups
...
...
@@ -29,18 +29,18 @@
*
* @section General Concepts
*
* Each MGM API function needs a management server handle
* of type
Mgm_C_Api::NdbMgmHandle.
* This handle is initally created by calling the
* function
ndb_mgm_create_handle()
.
* Each MGM API function needs a management server handle
* of type
<code>Mgm_C_Api::NdbMgmHandle</code>.
* This handle is initally created by calling the
* function
<code>ndb_mgm_create_handle()</code>
.
*
* A function can return:
* -# An integer value.
* A value of
-1
indicates an error.
* -# A pointer value. A
NULL
value indicates an error;
* Otherwise, the return value must be
free()
ed by the user of the MGM API.
* -# An integer value.
* A value of
<b>-1</b>
indicates an error.
* -# A pointer value. A
<var>NULL</var>
value indicates an error;
* Otherwise, the return value must be
<code>free()</code>
ed by the user of the MGM API.
*
* Error conditions can be identified by using the appropriate
* Error conditions can be identified by using the appropriate
* error-reporting functions.
*/
...
...
@@ -130,7 +130,7 @@ extern "C" {
struct
Ndb_Mgm_Error_Msg
{
enum
ndb_mgm_error
code
;
const
char
*
msg
;
const
char
*
msg
;
};
const
struct
Ndb_Mgm_Error_Msg
ndb_mgm_error_msgs
[]
=
{
...
...
@@ -156,19 +156,19 @@ extern "C" {
/* Service errors - Backup */
{
NDB_MGM_COULD_NOT_START_BACKUP
,
"Could not start backup"
},
{
NDB_MGM_COULD_NOT_ABORT_BACKUP
,
"Could not abort backup"
},
/* Service errors - Single User Mode */
{
NDB_MGM_COULD_NOT_ENTER_SINGLE_USER_MODE
,
{
NDB_MGM_COULD_NOT_ENTER_SINGLE_USER_MODE
,
"Could not enter single user mode"
},
{
NDB_MGM_COULD_NOT_EXIT_SINGLE_USER_MODE
,
{
NDB_MGM_COULD_NOT_EXIT_SINGLE_USER_MODE
,
"Could not exit single user mode"
},
/* Usage errors */
{
NDB_MGM_USAGE_ERROR
,
"Usage error"
}
};
const
int
ndb_mgm_noOfErrorMsgs
=
const
int
ndb_mgm_noOfErrorMsgs
=
sizeof
(
ndb_mgm_error_msgs
)
/
sizeof
(
struct
Ndb_Mgm_Error_Msg
);
/**
...
...
@@ -203,7 +203,7 @@ extern "C" {
* Cluster status
*/
struct
ndb_mgm_cluster_state
{
int
no_of_nodes
;
/*< No of entries in the
int
no_of_nodes
;
/*< No of entries in the
*< node_states array
*/
struct
ndb_mgm_node_state
/*< An array with node_states*/
...
...
@@ -215,7 +215,7 @@ extern "C" {
* Default reply from the server
*/
struct
ndb_mgm_reply
{
int
return_code
;
/*< 0 if successful,
int
return_code
;
/*< 0 if successful,
*< otherwise error code.
*/
char
message
[
256
];
/*< Error or reply message.*/
...
...
@@ -250,14 +250,14 @@ extern "C" {
*/
NDB_MGM_CLUSTERLOG_INFO
=
2
,
/*< Informational messages*/
NDB_MGM_CLUSTERLOG_WARNING
=
3
,
/*< Conditions that are not
*< error condition, but
*< error condition, but
*< might require handling
*/
NDB_MGM_CLUSTERLOG_ERROR
=
4
,
/*< Conditions that should be
*< corrected
*/
NDB_MGM_CLUSTERLOG_CRITICAL
=
5
,
/*< Critical conditions, like
*< device errors or out of
*< device errors or out of
*< resources
*/
NDB_MGM_CLUSTERLOG_ALERT
=
6
,
/*< A condition that should be
...
...
@@ -279,7 +279,7 @@ extern "C" {
* Events during all kinds of startups
*/
NDB_MGM_EVENT_CATEGORY_STARTUP
=
CFG_LOGLEVEL_STARTUP
,
/**
* Events during shutdown
*/
...
...
@@ -298,13 +298,13 @@ extern "C" {
NDB_MGM_EVENT_CATEGORY_ERROR
=
CFG_LOGLEVEL_ERROR
,
NDB_MGM_EVENT_CATEGORY_GREP
=
CFG_LOGLEVEL_GREP
,
NDB_MGM_EVENT_CATEGORY_BACKUP
=
CFG_LOGLEVEL_BACKUP
,
NDB_MGM_MIN_EVENT_CATEGORY
=
CFG_MIN_LOGLEVEL
,
NDB_MGM_MAX_EVENT_CATEGORY
=
CFG_MAX_LOGLEVEL
};
/***************************************************************************/
/**
/**
* @name Functions: Error Handling
* @{
*/
...
...
@@ -328,7 +328,7 @@ extern "C" {
/**
* Get latest error description associated with a handle
*
* The error description gives some additional information to
* The error description gives some additional information to
* the error message.
*
* @param handle Management handle.
...
...
@@ -342,50 +342,50 @@ extern "C" {
*
* @param handle Management handle.
* @return Latest internal source code line of latest error
* @deprecated
* @deprecated
*/
int
ndb_mgm_get_latest_error_line
(
const
NdbMgmHandle
handle
);
#endif
/** @} *********************************************************************/
/**
/**
* @name Functions: Create/Destroy Management Server Handles
* @{
*/
/**
/**
* Create a handle to a management server
*
* @return A management handle<br>
* or NULL if no management handle could be created.
* or NULL if no management handle could be created.
*/
NdbMgmHandle
ndb_mgm_create_handle
();
/**
* Destroy a management server handle
*
* @param handle Management handle
*/
void
ndb_mgm_destroy_handle
(
NdbMgmHandle
*
handle
);
/** @} *********************************************************************/
/**
/**
* @name Functions: Connect/Disconnect Management Server
* @{
*/
/**
/**
* Set connect string to management server
*
* @param handle Management handle
* @param connect_string Connect string to the management server,
* @param connect_string Connect string to the management server,
*
* @return -1 on error.
*/
int
ndb_mgm_set_connectstring
(
NdbMgmHandle
handle
,
const
char
*
connect_string
);
/**
/**
* Get connectstring used for connection
*
* @note returns what the connectstring defaults to if the above call has
...
...
@@ -405,7 +405,7 @@ extern "C" {
*/
int
ndb_mgm_connect
(
NdbMgmHandle
handle
,
int
no_retries
,
int
retry_delay_in_seconds
,
int
verbose
);
/**
* Disconnect from a management server
*
...
...
@@ -413,8 +413,8 @@ extern "C" {
* @return -1 on error.
*/
int
ndb_mgm_disconnect
(
NdbMgmHandle
handle
);
/**
/**
* Get nodeid used in the connection
*
* @param handle Management handle
...
...
@@ -423,7 +423,7 @@ extern "C" {
*/
int
ndb_mgm_get_configuration_nodeid
(
NdbMgmHandle
handle
);
/**
/**
* Get port used in the connection
*
* @param handle Management handle
...
...
@@ -432,7 +432,7 @@ extern "C" {
*/
int
ndb_mgm_get_connected_port
(
NdbMgmHandle
handle
);
/**
/**
* Get host used in the connection
*
* @param handle Management handle
...
...
@@ -442,7 +442,7 @@ extern "C" {
const
char
*
ndb_mgm_get_connected_host
(
NdbMgmHandle
handle
);
/** @} *********************************************************************/
/**
/**
* @name Functions: Convert between different data formats
* @{
*/
...
...
@@ -494,7 +494,7 @@ extern "C" {
#endif
/** @} *********************************************************************/
/**
/**
* @name Functions: State of cluster
* @{
*/
...
...
@@ -511,8 +511,8 @@ extern "C" {
struct
ndb_mgm_cluster_state
*
ndb_mgm_get_status
(
NdbMgmHandle
handle
);
/** @} *********************************************************************/
/**
* @name Functions: Start/stop nodes
/**
* @name Functions: Start/stop nodes
* @{
*/
...
...
@@ -522,16 +522,16 @@ extern "C" {
* @param handle Management handle.
* @param no_of_nodes no of database nodes<br>
* 0 - means all database nodes in cluster<br>
* n - Means stop n node(s) specified in the
* n - Means stop n node(s) specified in the
* array node_list
* @param node_list List of node ids of database nodes to be stopped
*
* @return No of nodes stopped (or -1 on error)
*
* @note The function is equivalent
* @note The function is equivalent
* to ndb_mgm_stop2(handle, no_of_nodes, node_list, 0)
*/
int
ndb_mgm_stop
(
NdbMgmHandle
handle
,
int
no_of_nodes
,
int
ndb_mgm_stop
(
NdbMgmHandle
handle
,
int
no_of_nodes
,
const
int
*
node_list
);
/**
...
...
@@ -540,10 +540,10 @@ extern "C" {
* @param handle Management handle.
* @param no_of_nodes No of database nodes<br>
* 0 - means all database nodes in cluster<br>
* n - Means stop n node(s) specified in
* n - Means stop n node(s) specified in
* the array node_list
* @param node_list List of node ids of database nodes to be stopped
* @param abort Don't perform gracefull stop,
* @param abort Don't perform gracefull stop,
* but rather stop immediatly
*
* @return No of nodes stopped (or -1 on error).
...
...
@@ -557,16 +557,16 @@ extern "C" {
* @param handle Management handle.
* @param no_of_nodes No of database nodes<br>
* 0 - means all database nodes in cluster<br>
* n - Means stop n node(s) specified in the
* n - Means stop n node(s) specified in the
* array node_list
* @param node_list List of node ids of database nodes to be stopped
*
* @return No of nodes stopped (or -1 on error).
*
* @note The function is equivalent to
* @note The function is equivalent to
* ndb_mgm_restart2(handle, no_of_nodes, node_list, 0, 0, 0);
*/
int
ndb_mgm_restart
(
NdbMgmHandle
handle
,
int
no_of_nodes
,
int
ndb_mgm_restart
(
NdbMgmHandle
handle
,
int
no_of_nodes
,
const
int
*
node_list
);
/**
...
...
@@ -575,13 +575,13 @@ extern "C" {
* @param handle Management handle.
* @param no_of_nodes No of database nodes<br>
* 0 - means all database nodes in cluster<br>
* n - Means stop n node(s) specified in the
* n - Means stop n node(s) specified in the
* array node_list
* @param node_list List of node ids of database nodes to be stopped
* @param initial Remove filesystem from node(s) restarting
* @param nostart Don't actually start node(s) but leave them
* @param nostart Don't actually start node(s) but leave them
* waiting for start command
* @param abort Don't perform gracefull restart,
* @param abort Don't perform gracefull restart,
* but rather restart immediatly
*
* @return No of nodes stopped (or -1 on error).
...
...
@@ -589,23 +589,23 @@ extern "C" {
int
ndb_mgm_restart2
(
NdbMgmHandle
handle
,
int
no_of_nodes
,
const
int
*
node_list
,
int
initial
,
int
nostart
,
int
abort
);
/**
* Start database nodes
*
* @param handle Management handle.
* @param no_of_nodes No of database nodes<br>
* 0 - means all database nodes in cluster<br>
* n - Means start n node(s) specified in
* n - Means start n node(s) specified in
* the array node_list
* @param node_list List of node ids of database nodes to be started
*
* @return No of nodes started (or -1 on error).
*
* @note The nodes to start must have been started with nostart(-n)
* @note The nodes to start 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
* This means that the database node binary is started and
* waiting for a START management command which will
* actually start the database node functionality
*/
int
ndb_mgm_start
(
NdbMgmHandle
handle
,
...
...
@@ -613,7 +613,7 @@ extern "C" {
const
int
*
node_list
);
/** @} *********************************************************************/
/**
/**
* @name Functions: Logging and Statistics
* @{
*/
...
...
@@ -633,17 +633,17 @@ extern "C" {
/**
* Get log filter
*
*
* @param handle NDB management handle
*
* @return A vector of seven elements,
* @return A vector of seven elements,
* where each element contains
* 1 if a severity is enabled and 0 if not.
* A severity is stored at position
* ndb_mgm_clusterlog_level,
* 1 if a severity is enabled and 0 if not.
* A severity is stored at position
* ndb_mgm_clusterlog_level,
* for example the "error" level is stored in position
* [NDB_MGM_CLUSTERLOG_ERROR-1].
* The first element in the vector signals
* The first element in the vector signals
* whether the clusterlog
* is disabled or enabled.
*/
...
...
@@ -693,7 +693,7 @@ extern "C" {
#endif
/** @} *********************************************************************/
/**
/**
* @name Functions: Backup
* @{
*/
...
...
@@ -722,13 +722,13 @@ extern "C" {
/** @} *********************************************************************/
/**
/**
* @name Functions: Single User Mode
* @{
*/
/**
* Enter Single user mode
* Enter Single user mode
*
* @param handle NDB management handle.
* @param nodeId Node Id of the single user node
...
...
@@ -737,9 +737,9 @@ extern "C" {
*/
int
ndb_mgm_enter_single_user
(
NdbMgmHandle
handle
,
unsigned
int
nodeId
,
struct
ndb_mgm_reply
*
reply
);
/**
* Exit Single user mode
* Exit Single user mode
*
* @param handle NDB management handle.
* @param nodeId Node Id of the single user node
...
...
@@ -747,9 +747,9 @@ extern "C" {
*
* @return -1 on error.
*/
int
ndb_mgm_exit_single_user
(
NdbMgmHandle
handle
,
int
ndb_mgm_exit_single_user
(
NdbMgmHandle
handle
,
struct
ndb_mgm_reply
*
reply
);
/**
* Listen event
*
...
...
@@ -759,7 +759,7 @@ extern "C" {
* @return fd which events will be pushed to
*/
int
ndb_mgm_listen_event
(
NdbMgmHandle
handle
,
int
filter
[]);
/**
* Get configuration
* @param handle NDB management handle.
...
...
@@ -785,14 +785,14 @@ extern "C" {
ndb_mgm_configuration_iterator
*
ndb_mgm_create_configuration_iterator
(
struct
ndb_mgm_configuration
*
,
unsigned
type_of_section
);
void
ndb_mgm_destroy_iterator
(
ndb_mgm_configuration_iterator
*
);
int
ndb_mgm_first
(
ndb_mgm_configuration_iterator
*
);
int
ndb_mgm_next
(
ndb_mgm_configuration_iterator
*
);
int
ndb_mgm_valid
(
const
ndb_mgm_configuration_iterator
*
);
int
ndb_mgm_find
(
ndb_mgm_configuration_iterator
*
,
int
ndb_mgm_find
(
ndb_mgm_configuration_iterator
*
,
int
param
,
unsigned
value
);
int
ndb_mgm_get_int_parameter
(
const
ndb_mgm_configuration_iterator
*
,
int
ndb_mgm_get_int_parameter
(
const
ndb_mgm_configuration_iterator
*
,
int
param
,
unsigned
*
value
);
int
ndb_mgm_get_int64_parameter
(
const
ndb_mgm_configuration_iterator
*
,
int
param
,
Uint64
*
value
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment