1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

WL1371 - Cleanup configuration handling

WL1356 - Discless db node
WL1357 - sp 1-2
This commit is contained in:
unknown
2004-05-26 10:56:32 +02:00
parent 3cfddc421d
commit 1a9eb476f1
118 changed files with 6624 additions and 6671 deletions

View File

@ -17,29 +17,22 @@
#ifndef NDBT_CONFIG_HPP
#define NDBT_CONFIG_HPP
#include <ndb_types.h>
#include <mgmapi.h>
#include <Vector.hpp>
#include <NdbRestarter.hpp>
#include <Properties.hpp>
#include <mgmapi_config_parameters.h>
class NdbConfig : public NdbRestarter{
class NdbConfig : public NdbRestarter {
public:
NdbConfig(int own_id, const char* addr = 0)
: NdbRestarter(addr),
ownNodeId(own_id) {};
bool getProperty(unsigned int node_id, const char* type,
const char * name, Uint32 * value) const;
bool getProperty(unsigned int node_id, const char* type,
const char * name, const char ** value) const;
bool getHostName(unsigned int node_id,
const char ** hostname) const;
protected:
bool getPropsForNode(unsigned int node_id,
const char* type,
const Properties ** props) const;
bool getProperty(unsigned nodeid, unsigned type, unsigned key, Uint32 * val);
bool getHostName(unsigned int node_id, const char ** hostname);
//protected:
int ownNodeId;
};