From: jon Date: June 28 2006 1:20am Subject: svn commit - mysqldoc@docsrva: r2532 - trunk/ndbapi List-Archive: http://lists.mysql.com/commits/8365 Message-Id: <200606280120.k5S1KVub014452@docsrva.mysql.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Author: jstephens Date: 2006-06-28 03:20:30 +0200 (Wed, 28 Jun 2006) New Revision: 2532 Log: MGM API eventlog functions. Modified: trunk/ndbapi/mgm-api.xml Modified: trunk/ndbapi/mgm-api.xml =================================================================== --- trunk/ndbapi/mgm-api.xml 2006-06-27 17:11:37 UTC (rev 2531) +++ trunk/ndbapi/mgm-api.xml 2006-06-28 01:20:30 UTC (rev 2532) @@ -1206,9 +1206,9 @@ -
+
- <literal>()</literal> + <literal>ndb_mgm_set_name()</literal> @@ -3064,19 +3064,304 @@
- Functions for Controlling the Cluster Log + Controlling Cluster Log Output - + - + + This section covers the functions available in the MGM API for + controlling the output of the cluster log. + - + +
+ + <literal>ndb_mgm_get_clusterlog_severity_filter()</literal> + + + + Description + + + This function is used to retrieve the cluster log severity + filter currently in force. + + + + + + + Signature + + + +const unsigned int* ndb_mgm_get_clusterlog_severity_filter + ( + NdbMgmHandle handle + ) + + + + + + + + Parameters + + + An NdbMgmHandle. + + + + + + + Return Value + + + A severity filter, which is a vector + containing 7 elements. Each element equals + 1 if the corresponding severity indicator + is enabled, and 0 if it is not. A + severity level is stored at position + ndb_mgm_clusterlog_level — + for example, the error level is stored at + position NDB_MGM_EVENT_SEVERITY_ERROR. + The first element in the vector + (NDB_MGM_EVENT_SEVERITY_ON) signals + whether the cluster log is enabled or disabled. + + + + + + + Example + + + +[To be supplied...] + + + + + +
+ +
+ + <literal>ndb_mgm_set_clusterlog_severity_filter()</literal> + + + + Description + + + This function is used to set a cluster log severity filter. + + + + + + + Signature + + + +int ndb_mgm_set_clusterlog_severity_filter + ( + NdbMgmHandle handle, + enum ndb_mgm_event_severity severity, + int enable, + struct ndb_mgm_reply* reply + ) + + + + + + + + Parameters + + + This function takes 4 parameters: + + + + + + A amanagement server + handle. + + + + + + A cluster log severity to + filter. + + + + + + A flag to enable or disable + the filter; 1 enables and + 0 disables the filter. + + + + + + A pointer to an ndb_mgm_reply + structure for a reply message. See + . + + + + + + + + + + + Return Value + + + The function returns -1 in the event of + failure. + + + + + + + Example + + + +[To be supplied...] + + + + + +
+ +
+ + <literal>ndb_mgm_set_clusterlog_loglevel()</literal> + + + + Description + + + This function is used to set the log category and levels for + the cluster log. + + + + + + + Signature + + + +int ndb_mgm_set_clusterlog_loglevel + ( + NdbMgmHandle handle, + int id, + enum ndb_mgm_event_category category, + int level, + struct ndb_mgm_reply* reply) + + + + + + + + Parameters + + + This function takes 5 parameters: + + + + + + An NdbMgmHandle. + + + + + + The id of the node + affected. + + + + + + An event category — + this is one of the values listed in + . + + + + + + A logging level. + + + + + + A pointer to an ndb_mgm_reply + structure for the reply + message. (See .) + + + + + + + + + + + Return Value + + + In the event of an error, this function returns + -1. + + + + + + + Example + + + +[To be supplied...] + + + + + +
+
- Backup-Control Functions + COntrolling Backups