23 #ifndef CATALOG_NODE_METADATA_H_
24 #define CATALOG_NODE_METADATA_H_
51 : nodeId(nodeIdValue),
53 nodePort(nodePortValue),
54 nodeName(nodeNameValue),
55 nodeType(nodeTypeValue),
56 nodeStatus(nodeStatusValue) {
57 nodeAddress = std::string(nodeIP) + std::string(
":") + std::to_string(nodePort);
62 nodeId = pdbNodeToCopy.
nodeId;
63 nodeIP = pdbNodeToCopy.
nodeIP;
68 nodeAddress = std::string(nodeIP) + std::string(
":") + std::to_string(nodePort);
73 nodeId = pdbNodeToCopy->getItemId();
74 nodeIP = pdbNodeToCopy->getNodeIP();
75 nodePort = pdbNodeToCopy->getNodePort();
76 nodeName = pdbNodeToCopy->getItemName();
77 nodeType = pdbNodeToCopy->getNodeType();
78 nodeStatus = pdbNodeToCopy->getNodeStatus();
79 nodeAddress = std::string(nodeIP) + std::string(
":") + std::to_string(nodePort);
89 int nodeStatusValue) {
92 nodePort = nodePortValue;
93 nodeName = nodeNameValue;
94 nodeType = nodeTypeValue;
95 nodeStatus = nodeStatusValue;
96 nodeAddress = std::string(nodeIP) + std::string(
":") + std::to_string(nodePort);
128 nodeAddress = itemKeyIn;
141 nodeName = itemNameIn;
150 output =
" Node address: ";
151 output.append(getItemKey().c_str())
153 .append(getItemName().c_str())
155 .append(getNodeType().c_str());
161 out <<
"\nCluster Node Metadata" << endl;
162 out <<
"-------------------" << endl;
165 out <<
" Node Port: " << node.
getNodePort() << endl;
168 out <<
"-------------------\n" << endl;