public boolean markSlotInactive(AllocationID allocationId, Time slotTimeout) throws SlotNotFoundException {
		checkInit();

		TaskSlot taskSlot = getTaskSlot(allocationId);

		if (taskSlot != null) {
			if (taskSlot.markInactive()) {
				// register a timeout to free the slot
				timerService.registerTimeout(allocationId, slotTimeout.getSize(), slotTimeout.getUnit());

				return true;
			} else {
				return false;
			}
		} else {
			throw new SlotNotFoundException(allocationId);
		}
	}
public boolean markSlotInactive ( AllocationID allocationId , Time slotTimeout ) throws SlotNotFoundException { checkInit ( ) ; TaskSlot taskSlot = getTaskSlot ( allocationId ) ; if ( taskSlot != null ) { if ( taskSlot . markInactive ( ) ) { timerService . registerTimeout ( allocationId , slotTimeout . getSize ( ) , slotTimeout . getUnit ( ) ) ; return true ; } else { return false ; } } else { throw new SlotNotFoundException ( allocationId ) ; } }
Marks the slot under the given allocation id as inactive. If the slot could not be found,
then a {@link SlotNotFoundException} is thrown.

@param allocationId to identify the task slot to mark as inactive
@param slotTimeout until the slot times out
@throws SlotNotFoundException if the slot could not be found for the given allocation id
@return True if the slot could be marked inactive