agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/JobRequestQueueProcessor.java
/**
	 * Validates that the queue supports the number of nodes, processors per node, memory and
	 * requestedTime provided. If any of these values are null or the given values exceed the queue
	 * limits, it returns false.
	 *
	 * @param queue the BatchQueue to check against
	 * @param resourceRequest a positive integer value or -1 for no limit
	  */
Validates that the queue supports the number of nodes, processors per node, memory and
requestedTime provided. If any of these values are null or the given values exceed the queue
limits, it returns false.

@param queue the BatchQueue to check against
@param resourceRequest a positive integer value or -1 for no limit
Validates that the queue supports the number of nodes processors per node memory and requestedTime provided . If any of these values are null or the given values exceed the queue limits it returns false . @param queue the BatchQueue to check against @param resourceRequest a positive integer value or - 1 for no limit
protected boolean validateBatchSubmitParameters(BatchQueue queue, ResourceRequest resourceRequest)
	{
		return resourceRequest.compareTo(queue) <= 0;
		if (queue.getMaxProcessorsPerNode() > 0 && queue.getMaxProcessorsPerNode() < processors) {
		if (queue.getMaxMemoryPerNode() > 0 && queue.getMaxMemoryPerNode() < memory) {
		if (queue.getMaxRequestedTime() != null && TimeUtils.compareRequestedJobTimes(queue.getMaxRequestedTime(), requestedTime) == -1) {
		return true;
	}
protected boolean validateBatchSubmitParameters ( BatchQueue queue , ResourceRequest resourceRequest ) { return resourceRequest . compareTo ( queue ) <= 0 ; }
Validates that the queue supports the number of nodes, processors per node, memory and
 requestedTime provided.
Validates that the queue supports the number of nodes processors per node memory and requestedTime provided .
//Long nodes, Long processors, Double memory, String requestedTime) //		if (queue == null || //				resourceRequest.getMaxNodes() <= 0 || //				resourceRequest.getMaxProcessorsPerNode() <= 0 || //				resourceRequest.getMaxMemoryPerNode() <= 0 || //				StringUtils.isEmpty(resourceRequest.getMaxRequestedTime()) || //				StringUtils.equals("00:00:00", resourceRequest.getMaxRequestedTime())) //		{ //			return false; //		} //		if (queue.getMaxNodes() > 0 && queue.getMaxNodes() < nodes) { //			return false; //		} // //		if (queue.getMaxProcessorsPerNode() > 0 && queue.getMaxProcessorsPerNode() < processors) { //			return false; //		} // //		if (queue.getMaxMemoryPerNode() > 0 && queue.getMaxMemoryPerNode() < memory) { //			return false; //		} // //		if (queue.getMaxRequestedTime() != null && TimeUtils.compareRequestedJobTimes(queue.getMaxRequestedTime(), requestedTime) == -1) { //			return false; //		} // //		return true;