THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
public interface BlockedTaskManagerChecker {
/**
* Returns whether the given task manager is blocked.
*/
boolean isBlockedTaskManager(ResourceID resourceID);
}
public interface SlotPoolService {
/** Start the encapsulated slot pool implementation. */
void start(
JobMasterId jobMasterId,
String address,
ComponentMainThreadExecutor mainThreadExecutor,
BlockedTaskManagerChecker blockedTaskManagerChecker)
throws Exception;
/**
* Releases all slots belonging to the owning TaskExecutor if it has been registered.
*
* @param taskManagerId identifying the TaskExecutor
* @param cause cause for failing the slots
*/
void releaseSlotsOnTaskManager(ResourceID taskManagerId, Exception cause);
/**
* Releases all free slots belonging to the owning TaskExecutor if it has been registered.
*
* @param taskManagerId identifying the TaskExecutor
* @param cause cause for failing the slots
*/
void releaseFreeSlotsOnTaskManager(ResourceID taskManagerId, Exception cause);
//...
} |
...