private int getAvailableSlots ( TaskTrackerStatus tts , TaskType type ) { return getMaxSlots ( tts , type ) - occupiedSlotsAfterHeartbeat ( tts , type ) ; }
Obtain the how many more slots can be scheduled on this tasktracker