int function ( TopologyDetails arg0 ) { SchedulerAssignment loc0 = this . getAssignmentById ( arg0 . getId ( ) ) ; if ( arg0 == null || loc0 == null ) { return 0 ; } Set < WorkerSlot > loc1 = new HashSet < WorkerSlot > ( ) ; loc1 . addAll ( loc0 . getExecutorToSlot ( ) . values ( ) ) ; return loc1 . size ( ) ; }
gets the number of workers assigned to this topology . 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 List<WorkerSlot> getAvailableSlots concode_elem_sep List<WorkerSlot> getAvailableSlots 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 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