public StatisticManager(Whiteboard whiteboard, ScheduledExecutorService executor) {
queryStat.setEnabled(true);
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"));
}