#include <mgmapi_configuration.hpp>
Collaboration diagram for ndb_mgm_configuration_iterator:

Public Member Functions | |
| ndb_mgm_configuration_iterator (const ndb_mgm_configuration &, unsigned type) | |
| ~ndb_mgm_configuration_iterator () | |
| int | first () |
| int | next () |
| int | valid () const |
| int | find (int param, unsigned value) |
| int | get (int param, unsigned *value) const |
| int | get (int param, Uint64 *value) const |
| int | get (int param, const char **value) const |
| void | reset () |
| int | enter () |
Public Attributes | |
| Uint32 | m_sectionNo |
| Uint32 | m_typeOfSection |
| ConfigValues::ConstIterator | m_config |
Definition at line 26 of file mgmapi_configuration.hpp.
| ndb_mgm_configuration_iterator::ndb_mgm_configuration_iterator | ( | const ndb_mgm_configuration & | , | |
| unsigned | type | |||
| ) |
Definition at line 6 of file mgmapi_configuration.cpp.
00007 : m_config(conf.m_config) 00008 { 00009 m_sectionNo = ~0; 00010 m_typeOfSection = type_of_section; 00011 first(); 00012 }
| ndb_mgm_configuration_iterator::~ndb_mgm_configuration_iterator | ( | ) |
Definition at line 14 of file mgmapi_configuration.cpp.
References reset().
Referenced by ndb_mgm_destroy_iterator().
00014 { 00015 reset(); 00016 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int ndb_mgm_configuration_iterator::enter | ( | ) |
Definition at line 27 of file mgmapi_configuration.cpp.
References m_config, m_sectionNo, m_typeOfSection, ok(), ConfigValues::ConstIterator::openSection(), and reset().
Referenced by first(), and next().
00027 { 00028 bool ok = m_config.openSection(m_typeOfSection, m_sectionNo); 00029 if(ok){ 00030 return 0; 00031 } 00032 00033 reset(); 00034 m_sectionNo = ~0; 00035 return -1; 00036 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int ndb_mgm_configuration_iterator::find | ( | int | param, | |
| unsigned | value | |||
| ) |
Definition at line 58 of file mgmapi_configuration.cpp.
Referenced by Configuration::fetch_configuration(), MgmtSrvr::getPort(), TransporterFacade::init(), ndb_mgm_find(), MgmtSrvr::sendStopMgmd(), MgmtSrvr::setDbParameter(), Configuration::setupConfiguration(), and MgmtSrvr::startEventLog().
00058 { 00059 unsigned val = search + 1; 00060 00061 while(get(param, &val) == 0 && val != search){ 00062 if(next() != 0) 00063 break; 00064 } 00065 00066 if(val == search) 00067 return 0; 00068 00069 return -1; 00070 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int ndb_mgm_configuration_iterator::first | ( | ) |
Definition at line 39 of file mgmapi_configuration.cpp.
References enter(), m_sectionNo, and reset().
Referenced by MgmtSrvr::alloc_node_id(), MgmtSrvr::getConnectionDbParameter(), TransporterFacade::init(), ClusterMgr::init(), Ndb_cluster_connection_impl::init_nodes_vector(), main(), MgmtSrvr::MgmtSrvr(), ndb_mgm_first(), MgmtSrvr::sendStopMgmd(), MgmtSrvr::setConnectionDbParameter(), MgmtSrvr::setDbParameter(), ConfigRetriever::verifyConfig(), and MgmtSrvr::versionNode().
00039 { 00040 reset(); 00041 m_sectionNo = 0; 00042 return enter(); 00043 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int ndb_mgm_configuration_iterator::get | ( | int | param, | |
| const char ** | value | |||
| ) | const |
Definition at line 85 of file mgmapi_configuration.cpp.
References ConfigValues::ConstIterator::get(), and m_config.
Here is the call graph for this function:

| int ndb_mgm_configuration_iterator::get | ( | int | param, | |
| Uint64 * | value | |||
| ) | const |
Definition at line 79 of file mgmapi_configuration.cpp.
References ConfigValues::ConstIterator::get(), and m_config.
Here is the call graph for this function:

| int ndb_mgm_configuration_iterator::get | ( | int | param, | |
| unsigned * | value | |||
| ) | const |
Definition at line 73 of file mgmapi_configuration.cpp.
References ConfigValues::ConstIterator::get(), and m_config.
Referenced by MgmtSrvr::alloc_node_id(), ConnectionTypeApply::apply(), NodeTypeApply::apply(), Apply::apply(), HostMatch::eval(), Match::eval(), Configuration::fetch_configuration(), find(), get_and_validate_path(), MgmtSrvr::getConnectionDbParameter(), MgmtSrvr::getPort(), TransporterFacade::init(), ClusterMgr::init(), Ndb_cluster_connection_impl::init_nodes_vector(), MgmtSrvr::MgmtSrvr(), ndb_mgm_get_int64_parameter(), ndb_mgm_get_int_parameter(), ndb_mgm_get_string_parameter(), MgmtSrvr::sendStopMgmd(), MgmtSrvr::setConnectionDbParameter(), MgmtSrvr::setDbParameter(), Configuration::setupConfiguration(), MgmtSrvr::startEventLog(), ConfigRetriever::verifyConfig(), and MgmtSrvr::versionNode().
Here is the call graph for this function:

Here is the caller graph for this function:

| int ndb_mgm_configuration_iterator::next | ( | ) |
Definition at line 46 of file mgmapi_configuration.cpp.
References enter(), m_sectionNo, and reset().
Referenced by MgmtSrvr::alloc_node_id(), find(), MgmtSrvr::getConnectionDbParameter(), TransporterFacade::init(), ClusterMgr::init(), Ndb_cluster_connection_impl::init_nodes_vector(), main(), MgmtSrvr::MgmtSrvr(), ndb_mgm_next(), MgmtSrvr::setConnectionDbParameter(), MgmtSrvr::setDbParameter(), ConfigRetriever::verifyConfig(), and MgmtSrvr::versionNode().
00046 { 00047 reset(); 00048 m_sectionNo++; 00049 return enter(); 00050 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void ndb_mgm_configuration_iterator::reset | ( | ) |
Definition at line 19 of file mgmapi_configuration.cpp.
References ConfigValues::ConstIterator::closeSection(), m_config, and m_sectionNo.
Referenced by enter(), first(), next(), and ~ndb_mgm_configuration_iterator().
00019 { 00020 if(m_sectionNo != (Uint32)~0){ 00021 m_config.closeSection(); 00022 } 00023 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int ndb_mgm_configuration_iterator::valid | ( | ) | const |
Definition at line 53 of file mgmapi_configuration.cpp.
References m_sectionNo.
Referenced by MgmtSrvr::alloc_node_id(), MgmtSrvr::getConnectionDbParameter(), TransporterFacade::init(), ClusterMgr::init(), Ndb_cluster_connection_impl::init_nodes_vector(), main(), MgmtSrvr::MgmtSrvr(), ndb_mgm_valid(), MgmtSrvr::setConnectionDbParameter(), ConfigRetriever::verifyConfig(), and MgmtSrvr::versionNode().
00053 { 00054 return m_sectionNo != (Uint32)~0; 00055 }
Here is the caller graph for this function:

Definition at line 29 of file mgmapi_configuration.hpp.
Referenced by enter(), get(), reset(), MgmtSrvr::setConnectionDbParameter(), MgmtSrvr::setDbParameter(), and Configuration::setupConfiguration().
1.4.7

