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

Function parseContainerId

src/common/protobuf_utils.cpp:1071–1089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069
1070
1071ContainerID parseContainerId(const string& value)
1072{
1073 vector<string> tokens = strings::split(value, ".");
1074
1075 Option<ContainerID> result;
1076 foreach (const string& token, tokens) {
1077 ContainerID id;
1078 id.set_value(token);
1079
1080 if (result.isSome()) {
1081 id.mutable_parent()->CopyFrom(result.get());
1082 }
1083
1084 result = id;
1085 }
1086
1087 CHECK_SOME(result);
1088 return result.get();
1089}
1090
1091
1092Try<Resources> getConsumedResources(const Offer::Operation& operation)

Callers 3

TESTFunction · 0.85
foreachFunction · 0.85
foreachFunction · 0.85

Calls 2

splitFunction · 0.85
getMethod · 0.45

Tested by 1

TESTFunction · 0.68