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

Method SetUp

be/src/rpc/rpc-mgr-test.h:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 RpcMgr rpc_mgr_;
153
154 virtual void SetUp() {
155 FLAGS_rpc_use_unix_domain_socket = GetParam();
156 IpAddr ip;
157 ASSERT_OK(HostnameToIpAddr(FLAGS_hostname, &ip));
158 krpc_address_ = MakeNetworkAddressPB(
159 ip, FindUnusedEphemeralPort(), rpc_mgr_.GetUdsAddressUniqueId());
160 exec_env_.reset(new ExecEnv());
161 ASSERT_OK(rpc_mgr_.Init(krpc_address_));
162 }
163
164 virtual void TearDown() {
165 rpc_mgr_.Shutdown();

Callers

nothing calls this directly

Calls 5

HostnameToIpAddrFunction · 0.85
MakeNetworkAddressPBFunction · 0.85
FindUnusedEphemeralPortFunction · 0.85
resetMethod · 0.65
InitMethod · 0.45

Tested by

no test coverage detected