@Override
	public Iterable<JobDefinition> findAllInRange(String from, boolean fromInclusive, String to, boolean toInclusive) {
		List<JobDefinition> all = findAll();
		if (CollectionUtils.isEmpty(all)) {
			return Collections.emptyList();
		}
		Collections.sort(all);

		List<JobDefinition> results = new ArrayList<JobDefinition>();
		for (JobDefinition definition : all) {
			if (definition.getName().compareTo(to) > 1) {
				break;
			}
			if (definition.getName().compareTo(from) < 0) {
				continue;
			}
			results.add(definition);
		}
		return results;
	}
A Zookeeper backed repository for persisting {@link JobDefinition}s.

@author Mark Fisher
@author David Turanski
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/zookeeper/ZooKeeperJobDefinitionRepository.java