MCPcopy Create free account
hub / github.com/apache/incubator-pegasus / exec

Method exec

src/runtime/tool_api.cpp:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 void exec()
70 {
71 auto &sp = _node->spec();
72
73 if (_start) {
74 error_code err;
75 err = _node->start_app();
76 CHECK_EQ_MSG(err, ERR_OK, "start app failed");
77 } else {
78 LOG_INFO("stop app result({})", _node->stop_app(_cleanup));
79 }
80 }
81
82private:
83 service_node *_node;

Callers

nothing calls this directly

Calls 2

start_appMethod · 0.80
stop_appMethod · 0.80

Tested by

no test coverage detected