MCPcopy Create free account
hub / github.com/acl-dev/acl / create_node

Method create_node

app/redis_tools/redis_builder/redis_builder.cpp:384–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384acl::redis_node* redis_builder::create_node(acl::xml_node& node)
385{
386 const char* addr = node.attr_value("addr");
387 if (addr == NULL || *addr == 0) {
388 printf("%s: no addr in the node\r\n", __FUNCTION__);
389 return NULL;
390 }
391
392 //printf("%s: node: %s\r\n", __FUNCTION__, addr);
393 acl::redis_node* slave = new acl::redis_node;
394 slave->set_addr(addr);
395 return slave;
396}
397
398bool redis_builder::build_cluster()
399{

Callers 14

http_get_jsonFunction · 0.45
http_get_jsonFunction · 0.45
http_get_jsonFunction · 0.45
struct.gson.cppFile · 0.45
struct.gson.cppFile · 0.45
struct.gson.cppFile · 0.45
xmlToJsonMethod · 0.45
buildStatusMethod · 0.45
doJsonMethod · 0.45
struct.gson.cppFile · 0.45
http_get_jsonFunction · 0.45

Calls 2

attr_valueMethod · 0.45
set_addrMethod · 0.45

Tested by

no test coverage detected