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

Method Slave

src/slave/slave.cpp:196–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194
195
196Slave::Slave(const string& id,
197 const slave::Flags& _flags,
198 MasterDetector* _detector,
199 Containerizer* _containerizer,
200 Files* _files,
201 GarbageCollector* _gc,
202 TaskStatusUpdateManager* _taskStatusUpdateManager,
203 ResourceEstimator* _resourceEstimator,
204 QoSController* _qosController,
205 SecretGenerator* _secretGenerator,
206 VolumeGidManager* _volumeGidManager,
207 PendingFutureTracker* _futureTracker,
208 Owned<CSIServer>&& _csiServer,
209#ifndef __WINDOWS__
210 const Option<process::network::unix::Socket>& _executorSocket,
211#endif // __WINDOWS__
212 const Option<Authorizer*>& _authorizer)
213 : ProcessBase(id),
214 state(RECOVERING),
215 flags(_flags),
216 http(this),
217 capabilities(
218 _flags.agent_features.isNone()
219 ? protobuf::slave::Capabilities(AGENT_CAPABILITIES())
220 : protobuf::slave::Capabilities(
221 _flags.agent_features->capabilities())),
222 completedFrameworks(MAX_COMPLETED_FRAMEWORKS),
223 detector(_detector),
224 containerizer(_containerizer),
225 files(_files),
226 metrics(*this),
227 gc(_gc),
228 taskStatusUpdateManager(_taskStatusUpdateManager),
229 masterPingTimeout(DEFAULT_MASTER_PING_TIMEOUT()),
230 metaDir(paths::getMetaRootDir(flags.work_dir)),
231 recoveryErrors(0),
232 credential(None()),
233 authenticatee(nullptr),
234 authenticating(None()),
235 authenticated(false),
236 reauthenticate(false),
237 executorDirectoryMaxAllowedAge(age(0)),
238 resourceEstimator(_resourceEstimator),
239 qosController(_qosController),
240 secretGenerator(_secretGenerator),
241 volumeGidManager(_volumeGidManager),
242 futureTracker(_futureTracker),
243 csiServer(std::move(_csiServer)),
244#ifndef __WINDOWS__
245 executorSocket(_executorSocket),
246#endif // __WINDOWS__
247 authorizer(_authorizer),
248 resourceVersion(protobuf::createUUID()) {}
249
250
251Slave::~Slave()

Callers

nothing calls this directly

Calls 7

AGENT_CAPABILITIESFunction · 0.85
getMetaRootDirFunction · 0.85
NoneClass · 0.85
createUUIDFunction · 0.85
CapabilitiesClass · 0.50
isNoneMethod · 0.45

Tested by

no test coverage detected