@Override
	public String toString() {
		return "pendingJobs=" + pendingJobs.size() + " runningJobs=" + runningJobs.size();
	}
Checks if there is any pending jobs.

@return true, if pending jobs exist
yarn/yarn/custom-amservice/src/main/java/org/springframework/yarn/examples/CustomAppmaster.java