agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/JobRequestQueueProcessor.java
/**
	 * Finds queue on the {@link #getExecutionSystem()} that supports the number of {@code nodes}, {@code processors},
	 * {@code memory}, and {@code requestedTime}.
	 *
	 * @param nodes a positive integer value or -1 for no limit
	 * @param processors positive integer value or -1 for no limit
	 * @param memory memory in GB or -1 for no limit
	 * @param requestedTime time in hh:mm:ss format
	 * @return a BatchQueue matching the given parameters or null if no match can be found
	 */
Finds queue on the  #getExecutionSystem() that supports the number of  nodes,  processors,
memory, and  requestedTime.


Finds queue on the #getExecutionSystem () that supports the number of nodes processors memory and requestedTime .
private BatchQueue selectQueue(Long nodes, Double memory, Long processors, String requestedTime) throws NoMatchingBatchQueueException
	{
		if (validateBatchSubmitParameters(getExecutionSystem().getDefaultQueue(), nodes, processors, memory, requestedTime))
		{
			return getExecutionSystem().getDefaultQueue();
		}
		else
		{
			BatchQueue[] queues = getExecutionSystem().getBatchQueues().toArray(new BatchQueue[]{});
			Arrays.sort(queues);
			for (BatchQueue queue: queues)
			{
				if (queue.isSystemDefault())
					continue;
				else if (validateBatchSubmitParameters(queue, nodes, processors, memory, requestedTime))
					return queue;
			}
		}
		throw new NoMatchingBatchQueueException(String.format("No queue found on execution system %s to support jobs " +
				"requiring %d nodes with %f memmory and %d processors per node, and a max run time of %s.",
			getExecutionSystem().getSystemId(), nodes, memory, processors, requestedTime));
	}
private BatchQueue selectQueue ( Long nodes , Double memory , Long processors , String requestedTime ) throws NoMatchingBatchQueueException { if ( validateBatchSubmitParameters ( getExecutionSystem ( ) . getDefaultQueue ( ) , nodes , processors , memory , requestedTime ) ) { return getExecutionSystem ( ) . getDefaultQueue ( ) ; } else { BatchQueue [ ] queues = getExecutionSystem ( ) . getBatchQueues ( ) . toArray ( new BatchQueue [ ] { } ) ; Arrays . sort ( queues ) ; for ( BatchQueue queue : queues ) { if ( queue . isSystemDefault ( ) ) continue ; else if ( validateBatchSubmitParameters ( queue , nodes , processors , memory , requestedTime ) ) return queue ; } } throw new NoMatchingBatchQueueException ( String . format ( "No queue found on execution system %s to support jobs " + "requiring %d nodes with %f memmory and %d processors per node, and a max run time of %s." , getExecutionSystem ( ) . getSystemId ( ) , nodes , memory , processors , requestedTime ) ) ; }
Finds queue on the {@link #getExecutionSystem()} that supports the number of {@code nodes}, {@code processors},
 {@code memory}, and {@code requestedTime}.
Finds queue on the { @link #getExecutionSystem () } that supports the number of { @code nodes } { @code processors } { @code memory } and { @code requestedTime } .