protected PagedResources<? extends MetricResource> list(Pageable pageable,
			PagedResourcesAssembler<M> pagedAssembler,
			ResourceAssembler<M, ? extends MetricResource> resourceAssembler) {
		/* Page */Iterable<M> metrics = repository.findAll(/* pageable */);

		// Ok for now until we use PagingAndSortingRepo as we know we have lists
		Page<M> page = new PageImpl<M>((List<M>) metrics);
		return pagedAssembler.toResource(page,
				resourceAssembler == null ? this.shallowResourceAssembler : resourceAssembler);
	}
Lists metric resources.

@param pageable the Pageable
@param pagedAssembler the PagedResourcesAssembler
@param resourceAssembler the ResourceAssembler
@return the resources
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/metrics/AbstractMetricsController.java