private Table displayAggrCounter(AggregateCountsResource aggResource, NumberFormat pattern) {
		final SortedMap<Date, Long> values = aggResource.getValues();
		Table t = new Table();
		t.addHeader(1, new TableHeader("AggregateCounter=" + aggResource.getName())).addHeader(2, new TableHeader(""))
				.addHeader(3, new TableHeader(""));
		t.newRow().addValue(1, "TIME").addValue(2, "-").addValue(3, "COUNT");
		for (Map.Entry<Date, Long> entry : values.entrySet()) {
			t.newRow().addValue(1, entry.getKey().toString()).addValue(2, "|")
					.addValue(3, pattern.format(entry.getValue()));
		}
		return t;
	}
Commands for interacting with aggregate counter analytics.

@author Ilayaperumal Gopinathan
spring-xd-shell/src/main/java/org/springframework/xd/shell/command/AggregateCounterCommands.java