src/slave/slave.cpp
// TODO(benh): Consider sending a boolean that specifies if the
// shut down should be graceful or immediate. Likewise, consider
// sending back a shut down acknowledgement, because otherwise you
// couuld get into a state where a shut down was sent, dropped, and
// therefore never processed.
Consider sending a boolean that specifies if the
shut down should be graceful or immediate. Likewise, consider
sending back a shut down acknowledgement, because otherwise you
couuld get into a state where a shut down was sent, dropped, and
therefore never processed.
Consider sending a boolean that specifies if the shut down should be graceful or immediate . Likewise consider sending back a shut down acknowledgement because otherwise you couuld get into a state where a shut down was sent dropped and therefore never processed .
void Slave::shutdownFramework(const FrameworkID& frameworkId)
{
  LOG(INFO) << "Asked to shut down framework " << frameworkId;
  Framework* framework = getFramework(frameworkId);
  if (framework != NULL) {
    LOG(INFO) << "Shutting down framework " << framework->id;
    foreachvalue (Executor* executor, framework->executors) {
      shutdownExecutor(framework, executor);
    }
  }
}
void Slave :: shutdownFramework ( const FrameworkID & frameworkId ) { LOG ( INFO ) << " " << frameworkId ; Framework * framework = getFramework ( frameworkId ) ; if ( framework != NULL ) { LOG ( INFO ) << " " << framework -> id ; foreachvalue ( Executor * executor , framework -> executors ) { shutdownExecutor ( framework , executor ) ; } } }
TODO(benh): Consider sending a boolean that specifies if the
shut down should be graceful or immediate.
TODO ( benh ) : Consider sending a boolean that specifies if the shut down should be graceful or immediate .
// Shut down all executors of this framework.