/** @see org.apache.wicket.jmx.RequestLoggerMBean#getPeakNumberOfActiveRequests() */
 @Override
 public Integer getPeakNumberOfActiveRequests() throws IOException {
   org.apache.wicket.protocol.http.IRequestLogger logger = getRequestLogger();
   if (logger != null) {
     return Integer.valueOf(logger.getPeakActiveRequestCount());
   }
   return null;
 }
 /** @see org.apache.wicket.jmx.RequestLoggerMBean#getPeakNumberOfSessions() */
 @Override
 public Integer getPeakNumberOfSessions() throws IOException {
   org.apache.wicket.protocol.http.IRequestLogger logger = getRequestLogger();
   if (logger != null) {
     return logger.getPeakSessions();
   }
   return null;
 }
Exemple #3
0
  private void onInternalDetach() {
    if (Session.exists()) {
      Session.get().internalDetach();
    }

    if (Application.exists()) {
      IRequestLogger requestLogger = Application.get().getRequestLogger();
      if (requestLogger != null) requestLogger.performLogging();
    }
  }