| 3834 | |
| 3835 | |
| 3836 | bool Master::isLaunchExecutor( |
| 3837 | const ExecutorID& executorId, |
| 3838 | Framework* framework, |
| 3839 | Slave* slave) const |
| 3840 | { |
| 3841 | CHECK_NOTNULL(framework); |
| 3842 | CHECK_NOTNULL(slave); |
| 3843 | |
| 3844 | if (!slave->hasExecutor(framework->id(), executorId)) { |
| 3845 | CHECK(!framework->hasExecutor(slave->id, executorId)) |
| 3846 | << "Executor '" << executorId |
| 3847 | << "' known to the framework " << *framework |
| 3848 | << " but unknown to the agent " << *slave; |
| 3849 | |
| 3850 | return true; |
| 3851 | } |
| 3852 | |
| 3853 | return false; |
| 3854 | } |
| 3855 | |
| 3856 | |
| 3857 | void Master::addExecutor( |
nothing calls this directly
no test coverage detected