MCPcopy Create free account
hub / github.com/apache/impala / Init

Method Init

be/src/service/control-service.cc:87–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87Status ControlService::Init() {
88 int num_svc_threads = FLAGS_control_service_num_svc_threads > 0 ?
89 FLAGS_control_service_num_svc_threads : CpuInfo::num_cores();
90 RpcMgr* rpc_mgr = ExecEnv::GetInstance()->rpc_mgr();
91 // The maximum queue length is set to maximum 32-bit value. Its actual capacity is
92 // bound by memory consumption against 'mem_tracker_'.
93 RETURN_IF_ERROR(rpc_mgr->RegisterService(num_svc_threads,
94 std::numeric_limits<int32_t>::max(),
95 METRIC_control_service_incoming_queue_time.Instantiate(rpc_mgr->metric_entity()),
96 this, mem_tracker_.get(), ExecEnv::GetInstance()->rpc_metrics()));
97 return Status::OK();
98}
99
100Status ControlService::GetProxy(const NetworkAddressPB& address, const string& hostname,
101 unique_ptr<ControlServiceProxy>* proxy) {

Callers 8

ImpaladMainFunction · 0.45
mainFunction · 0.45
ImpalaServerMethod · 0.45
InitLineageLoggingMethod · 0.45
InitAuditEventLoggingMethod · 0.45
InitProfileLoggingMethod · 0.45
StartMethod · 0.45
TESTFunction · 0.45

Calls 8

maxFunction · 0.85
OKFunction · 0.85
getMethod · 0.65
rpc_mgrMethod · 0.45
RegisterServiceMethod · 0.45
InstantiateMethod · 0.45
metric_entityMethod · 0.45
rpc_metricsMethod · 0.45

Tested by 2

mainFunction · 0.36
TESTFunction · 0.36