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

Method transitionOperationState

src/master/metrics.cpp:703–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701
702
703void Metrics::transitionOperationState(
704 Offer::Operation::Type type,
705 const OperationState& oldState,
706 const OperationState& newState)
707{
708 if (oldState == newState) {
709 return; // Nothing to do.
710 }
711
712 decrementOperationState(type, oldState);
713 incrementOperationState(type, newState);
714}
715
716
717FrameworkMetrics::FrameworkMetrics(

Callers 1

updateOperationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected