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

Method reset

src/slave/gc.cpp:168–178  ·  view source on GitHub ↗

Fires a message to self for the next event. This also cancels any existing timer.

Source from the content-addressed store, hash-verified

166// Fires a message to self for the next event. This also cancels any
167// existing timer.
168void GarbageCollectorProcess::reset()
169{
170 Clock::cancel(timer); // Cancel the existing timer, if any.
171 if (!paths.empty()) {
172 Timeout removalTime = (*paths.begin()).first; // Get the first entry.
173
174 timer = delay(removalTime.remaining(), self(), &Self::remove, removalTime);
175 } else {
176 timer = Timer(); // Reset the timer.
177 }
178}
179
180
181void GarbageCollectorProcess::remove(const Timeout& removalTime)

Callers 15

MesosProcessMethod · 0.45
~MesosSchedulerDriverMethod · 0.45
removeMethod · 0.45
launchMethod · 0.45
fatalMethod · 0.45
recoverMethod · 0.45
CheckerMethod · 0.45
HealthCheckerMethod · 0.45
initializeMethod · 0.45
recoverMethod · 0.45
initializeMethod · 0.45
mainFunction · 0.45

Calls 5

delayFunction · 0.50
TimerClass · 0.50
emptyMethod · 0.45
beginMethod · 0.45
remainingMethod · 0.45

Tested by 15

startMethod · 0.36
createMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_PFunction · 0.36
SetUpMethod · 0.36
TearDownMethod · 0.36
startSlaveMethod · 0.36