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

Function state

src/linux/cgroups.cpp:1259–1268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1257namespace freezer {
1258
1259Try<string> state(const string& hierarchy, const string& cgroup)
1260{
1261 Try<string> state = cgroups::read(hierarchy, cgroup, "freezer.state");
1262
1263 if (state.isError()) {
1264 return Error("Failed to read freezer state: " + state.error());
1265 }
1266
1267 return strings::trim(state.get());
1268}
1269
1270
1271Try<Nothing> state(

Callers 2

freezeMethod · 0.85
thawMethod · 0.85

Calls 8

trimFunction · 0.85
NothingClass · 0.85
readFunction · 0.70
writeFunction · 0.70
errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected