예제 #1
0
 /** @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;
 }
예제 #2
0
 /** @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;
 }
예제 #3
0
  private void onInternalDetach() {
    if (Session.exists()) {
      Session.get().internalDetach();
    }

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