},2000,2000);
}
if (Boolean.getBoolean("STATS"))
{
StatisticsExtension ext = new StatisticsExtension();
ext.setStatsRequestKeys(new String[]{"chat"});
ext.setStatsRequestSentinel("//stats");
ext.setStatsRequestChannel("/chat/demo");
ext.setStatsResultSentinel("//stats-results");
ext.setStatsConfirmSentinel("//stats-confirm");
ext.setProbeChannel("/chat/demo");
ext.setProbeSentinel("//stats-probe");
ext.setProbeReplySentinel("//stats-reply");
ext.setProbeReplyChannel("/chat/demo");
ext.setProbeReplyKeys(new String[]{"chat"});
bayeux.addExtension(ext);
}
}