MCPcopy Create free account
hub / github.com/apache/mesos / session

Method session

src/zookeeper/group.cpp:323–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321
322
323Future<Option<int64_t>> GroupProcess::session()
324{
325 if (error.isSome()) {
326 return Failure(error.get());
327 } else if (state == CONNECTING) {
328 return None();
329 }
330
331 return Some(zk->getSessionId());
332}
333
334
335void GroupProcess::connected(int64_t sessionId, bool reconnect)

Callers 3

TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 7

FailureClass · 0.85
NoneClass · 0.85
SomeFunction · 0.85
dispatchFunction · 0.50
isSomeMethod · 0.45
getMethod · 0.45
getSessionIdMethod · 0.45

Tested by 3

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64