return all the available slots on this supervisor . concode_field_sep Map<String,SchedulerAssignmentImpl> assignments concode_elem_sep Set<String> blackListedHosts concode_elem_sep INimbus inimbus concode_elem_sep Map<String,List<String>> hostToId concode_elem_sep Map<String,SupervisorDetails> supervisors concode_elem_sep Map<String,String> status concode_field_sep void freeSlot concode_elem_sep void setBlacklistedHosts concode_elem_sep Map<String,SchedulerAssignment> getAssignments concode_elem_sep SchedulerAssignment getAssignmentById concode_elem_sep void freeSlots concode_elem_sep void blacklistHost concode_elem_sep List<TopologyDetails> needsSchedulingTopologies concode_elem_sep boolean isSlotOccupied concode_elem_sep Collection<WorkerSlot> getUsedSlots concode_elem_sep Map<String,String> getStatusMap concode_elem_sep Set<String> getBlacklistedHosts concode_elem_sep String getHost concode_elem_sep Map<String,SupervisorDetails> getSupervisors concode_elem_sep List<WorkerSlot> getAssignableSlots concode_elem_sep List<WorkerSlot> getAssignableSlots concode_elem_sep int getAssignedNumWorkers concode_elem_sep boolean needsScheduling concode_elem_sep Set<Integer> getAvailablePorts concode_elem_sep List<SupervisorDetails> getSupervisorsByHost concode_elem_sep void setStatus concode_elem_sep Set<Integer> getUsedPorts concode_elem_sep Collection<ExecutorDetails> getUnassignedExecutors concode_elem_sep boolean isBlacklistedHost concode_elem_sep boolean isBlackListed concode_elem_sep SupervisorDetails getSupervisorById concode_elem_sep Set<Integer> getAssignablePorts concode_elem_sep Map<ExecutorDetails,String> getNeedsSchedulingExecutorToComponents concode_elem_sep Map<String,List<ExecutorDetails>> getNeedsSchedulingComponentToExecutors concode_elem_sep void assign
List < WorkerSlot > function ( SupervisorDetails arg0 ) { Set < Integer > loc0 = this . getAvailablePorts ( arg0 ) ; List < WorkerSlot > loc1 = new ArrayList < WorkerSlot > ( loc0 . size ( ) ) ; for ( Integer loc2 : loc0 ) { loc1 . add ( new WorkerSlot ( arg0 . getId ( ) , loc2 ) ) ; } return loc1 ; }