1
/* Copyright (C) 2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
19
#include <ndb_types.h>
20
#include <ndb_limits.h>
21
#include <kernel_types.h>
22
#include <Properties.hpp>
26
* @brief Config transporters in TransporterRegistry using Properties config
31
IPCConfig(Properties * props);
34
/** @return 0 for OK */
39
/** @return No of transporters configured */
40
int configureTransporters(class TransporterRegistry * theTransporterRegistry);
44
* and get next higher node id
45
* @return false if none found, true otherwise
47
* getREPHBFrequency and getNodeType uses the last Id supplied to
48
* getNextRemoteNodeId.
50
bool getNextRemoteNodeId(NodeId & nodeId) const;
51
Uint32 getREPHBFrequency(NodeId id) const;
52
const char* getNodeType(NodeId id) const;
54
NodeId getNoOfRemoteNodes() const {
55
return theNoOfRemoteNodes;
58
void print() const { props->print(); }
60
static Uint32 configureTransporters(Uint32 nodeId,
61
const struct ndb_mgm_configuration &,
62
class TransporterRegistry &);
68
bool addRemoteNodeId(NodeId nodeId);
69
NodeId theNoOfRemoteNodes;
70
NodeId theRemoteNodeIds[MAX_NODES];
75
IPCConfig::ownId() const