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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3fbb1dd5
Commit
3fbb1dd5
authored
Jan 09, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated some mgmapi docs
parent
39aa7b10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
ndb/include/mgmapi/mgmapi.h
ndb/include/mgmapi/mgmapi.h
+20
-9
ndb/src/mgmapi/mgmapi.cpp
ndb/src/mgmapi/mgmapi.cpp
+1
-0
No files found.
ndb/include/mgmapi/mgmapi.h
View file @
3fbb1dd5
...
@@ -464,6 +464,15 @@ extern "C" {
...
@@ -464,6 +464,15 @@ extern "C" {
* @param connect_string Connect string to the management server,
* @param connect_string Connect string to the management server,
*
*
* @return -1 on error.
* @return -1 on error.
*
* @code
* <connectstring> := [<nodeid-specification>,]<host-specification>[,<host-specification>]
* <nodeid-specification> := nodeid=<id>
* <host-specification> := <host>[:<port>]
* <id> is an integer larger than 1 identifying a node in config.ini
* <port> is an integer referring to a regular unix port
* <host> is a string which is a valid Internet host address
* @endcode
*/
*/
int
ndb_mgm_set_connectstring
(
NdbMgmHandle
handle
,
int
ndb_mgm_set_connectstring
(
NdbMgmHandle
handle
,
const
char
*
connect_string
);
const
char
*
connect_string
);
...
@@ -471,8 +480,8 @@ extern "C" {
...
@@ -471,8 +480,8 @@ extern "C" {
/**
/**
* Get connectstring used for connection
* Get connectstring used for connection
*
*
* @note returns what the connectstring defaults to if the
above call has
* @note returns what the connectstring defaults to if the
* not been performed
* n
db_mgm_set_connectstring() call has n
ot been performed
*
*
* @param handle Management handle
* @param handle Management handle
*
*
...
@@ -481,7 +490,8 @@ extern "C" {
...
@@ -481,7 +490,8 @@ extern "C" {
const
char
*
ndb_mgm_get_connectstring
(
NdbMgmHandle
handle
,
char
*
buf
,
int
buf_sz
);
const
char
*
ndb_mgm_get_connectstring
(
NdbMgmHandle
handle
,
char
*
buf
,
int
buf_sz
);
/**
/**
* Connect to a management server
* Connect to a management server. Coonect string is set by
* ndb_mgm_set_connectstring().
*
*
* @param handle Management handle.
* @param handle Management handle.
* @return -1 on error.
* @return -1 on error.
...
@@ -502,7 +512,8 @@ extern "C" {
...
@@ -502,7 +512,8 @@ extern "C" {
*
*
* @param handle Management handle
* @param handle Management handle
*
*
* @return node id
* @return node id, 0 indicated that no nodeid has been
* specified
*/
*/
int
ndb_mgm_get_configuration_nodeid
(
NdbMgmHandle
handle
);
int
ndb_mgm_get_configuration_nodeid
(
NdbMgmHandle
handle
);
...
@@ -524,6 +535,7 @@ extern "C" {
...
@@ -524,6 +535,7 @@ extern "C" {
*/
*/
const
char
*
ndb_mgm_get_connected_host
(
NdbMgmHandle
handle
);
const
char
*
ndb_mgm_get_connected_host
(
NdbMgmHandle
handle
);
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
/** @} *********************************************************************/
/** @} *********************************************************************/
/**
/**
* @name Functions: Convert between different data formats
* @name Functions: Convert between different data formats
...
@@ -572,7 +584,6 @@ extern "C" {
...
@@ -572,7 +584,6 @@ extern "C" {
const
char
*
ndb_mgm_get_node_status_string
(
enum
ndb_mgm_node_status
status
);
const
char
*
ndb_mgm_get_node_status_string
(
enum
ndb_mgm_node_status
status
);
const
char
*
ndb_mgm_get_clusterlog_level_string
(
enum
ndb_mgm_clusterlog_level
);
const
char
*
ndb_mgm_get_clusterlog_level_string
(
enum
ndb_mgm_clusterlog_level
);
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
ndb_mgm_event_category
ndb_mgm_match_event_category
(
const
char
*
);
ndb_mgm_event_category
ndb_mgm_match_event_category
(
const
char
*
);
const
char
*
ndb_mgm_get_event_category_string
(
enum
ndb_mgm_event_category
);
const
char
*
ndb_mgm_get_event_category_string
(
enum
ndb_mgm_event_category
);
#endif
#endif
...
@@ -799,9 +810,9 @@ extern "C" {
...
@@ -799,9 +810,9 @@ extern "C" {
* Start backup
* Start backup
*
*
* @param handle NDB management handle.
* @param handle NDB management handle.
* @param wait_completed 0=don't wait for confirmation
* @param wait_completed 0=don't wait for confirmation
,
1=wait for backup started
* 1=wait for backup started,
2=wait for backup completed
*
2=wait for backup completed
* @param backup_id Backup id is returned from function.
* @param backup_id Backup id is returned from function.
* @param reply Reply message.
* @param reply Reply message.
* @return -1 on error.
* @return -1 on error.
...
@@ -861,7 +872,7 @@ extern "C" {
...
@@ -861,7 +872,7 @@ extern "C" {
* Get configuration
* Get configuration
* @param handle NDB management handle.
* @param handle NDB management handle.
* @param version Version of configuration, 0 means latest
* @param version Version of configuration, 0 means latest
*
@see MAKE_VERSION
*
(which is the only supported input at this point)
*
*
* @return configuration
* @return configuration
*
*
...
...
ndb/src/mgmapi/mgmapi.cpp
View file @
3fbb1dd5
...
@@ -1045,6 +1045,7 @@ struct ndb_mgm_event_categories
...
@@ -1045,6 +1045,7 @@ struct ndb_mgm_event_categories
{
"CHECKPOINT"
,
NDB_MGM_EVENT_CATEGORY_CHECKPOINT
},
{
"CHECKPOINT"
,
NDB_MGM_EVENT_CATEGORY_CHECKPOINT
},
{
"DEBUG"
,
NDB_MGM_EVENT_CATEGORY_DEBUG
},
{
"DEBUG"
,
NDB_MGM_EVENT_CATEGORY_DEBUG
},
{
"INFO"
,
NDB_MGM_EVENT_CATEGORY_INFO
},
{
"INFO"
,
NDB_MGM_EVENT_CATEGORY_INFO
},
{
"WARNING"
,
NDB_MGM_EVENT_CATEGORY_WARNING
},
{
"ERROR"
,
NDB_MGM_EVENT_CATEGORY_ERROR
},
{
"ERROR"
,
NDB_MGM_EVENT_CATEGORY_ERROR
},
{
"GREP"
,
NDB_MGM_EVENT_CATEGORY_GREP
},
{
"GREP"
,
NDB_MGM_EVENT_CATEGORY_GREP
},
{
"BACKUP"
,
NDB_MGM_EVENT_CATEGORY_BACKUP
},
{
"BACKUP"
,
NDB_MGM_EVENT_CATEGORY_BACKUP
},
...
...
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