plugin = this;
bundleContext = context;
// Setup performance logger for POP3
if(Configurator.isPerformanceCountersEnabled()) {
PeriodicalLog pLog = new PeriodicalLog();
pLog.setName(SPEED4J_LOG_NAME);
pLog.setMode(PeriodicalLog.Mode.JMX_ONLY);
pLog.setMaxQueueSize(250000);
pLog.setPeriod(Configurator.getPerformanceCountersInterval());
pLog.setJmx("AUTH.success,AUTH.fail");
pLog.setSlf4jLogname("com.elasticinbox.speed4j.pop3.PeriodicalLogger");
stopWatchFactory = StopWatchFactory.getInstance(pLog);
} else {
Slf4jLog pLog = new Slf4jLog();
pLog.setName(SPEED4J_LOG_NAME);
pLog.setSlf4jLogname("com.elasticinbox.speed4j.pop3.PeriodicalLogger");
stopWatchFactory = StopWatchFactory.getInstance(pLog);
}
backend = new MailboxHandlerFactory();