Package com.elasticinbox.lmtp.utils

Examples of com.elasticinbox.lmtp.utils.LoggingPeriodicalLog


    plugin = this;
    bundleContext = context;

    // Setup performance logger for LMTP
    if(Configurator.isPerformanceCountersEnabled()) {
      LoggingPeriodicalLog pLog = new LoggingPeriodicalLog();
      pLog.setName(SPEED4J_LOG_NAME);
      pLog.setMode(PeriodicalLog.Mode.JMX_ONLY);
      pLog.setMaxQueueSize(250000);
      pLog.setPeriod(Configurator.getPerformanceCountersInterval());
      pLog.setJmx("DELIVERY.success,DELIVERY.discard,DELIVERY.defer,DELIVERY.defer_failure,DELIVERY.reject_overQuota,DELIVERY.reject_nonExistent");
      pLog.setSlf4jLogname("com.elasticinbox.speed4j.lmtp.PeriodicalLogger");
      stopWatchFactory = StopWatchFactory.getInstance(pLog);
    } else {
      Slf4jLog pLog = new Slf4jLog();
      pLog.setName(SPEED4J_LOG_NAME);
      pLog.setSlf4jLogname("com.elasticinbox.speed4j.lmtp.PeriodicalLogger");
      stopWatchFactory = StopWatchFactory.getInstance(pLog);
    }

    DeliveryAgentFactory mdf = new DeliveryAgentFactory();
View Full Code Here

TOP

Related Classes of com.elasticinbox.lmtp.utils.LoggingPeriodicalLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.