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

Method start_app

src/runtime/service_engine.cpp:77–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77dsn::error_code service_node::start_app()
78{
79 CHECK(_entity, "entity hasn't initialized");
80 _entity->set_address(rpc()->primary_address());
81
82 std::vector<std::string> args;
83 utils::split_args(spec().arguments.c_str(), args);
84 args.insert(args.begin(), spec().full_name);
85 dsn::error_code res = _entity->start(args);
86 if (res == dsn::ERR_OK) {
87 _entity->set_started(true);
88 }
89 return res;
90}
91
92dsn::error_code service_node::stop_app(bool cleanup)
93{

Callers 1

execMethod · 0.80

Calls 6

split_argsFunction · 0.85
set_addressMethod · 0.80
set_startedMethod · 0.80
primary_addressMethod · 0.45
beginMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected