* @param whiteboard whiteboard for registering the individual statistics with
*/
public StatisticManager(Whiteboard whiteboard, ScheduledExecutorService executor) {
repoStats = new RepositoryStatisticsImpl(executor);
maxQueueLength = new TimeSeriesMax(executor);
registration = new CompositeRegistration(
registerMBean(whiteboard, QueryStatManagerMBean.class, new QueryStatManager(queryStat),
"QueryStat", "Oak Query Statistics"),
registerMBean(whiteboard, RepositoryStatsMBean.class, new RepositoryStats(repoStats, maxQueueLength),
RepositoryStats.TYPE, "Oak Repository Statistics"));
}