public ResourceRequestInfo getPendingRequestForAny ( String host , ResourceType type ) { Context c = getContext ( type ) ; for ( ResourceRequestInfo req : c . anyHostRequests ) { Set < String > excluded = req . getExcludeHosts ( ) ; if ( ! excluded . contains ( host ) ) { return req ; } } return null ; }
Find a pending request that can run on any machine .