21 #include <ndb_global.h>
22 #include <kernel/NodeInfo.hpp>
23 #include <kernel/NodeState.hpp>
26 NdbOut& operator<<(NdbOut&,
const struct trp_node&);
46 void set_connected(
bool connected) {
48 m_connected = connected;
50 bool is_connected(
void)
const {
51 const bool connected = m_connected;
54 (connected && defined));
58 void set_confirmed(
bool confirmed) {
60 assert(is_connected());
61 m_api_reg_conf = confirmed;
64 bool is_confirmed(
void)
const {
65 const bool confirmed = m_api_reg_conf;
67 (confirmed && is_connected()));
71 bool operator==(
const trp_node& other)
const;
75 friend NdbOut& operator<<(NdbOut&,
const trp_node&);