org.apache.wicket.jmx
Interface RequestLoggerMBean

All Known Implementing Classes:
RequestLogger

public interface RequestLoggerMBean

Interface for exposing the request logger.

Author:
eelcohillenius

Method Summary
 java.lang.Integer getNumberOfCreatedSessions()
          Total number of sessions ever created since the application was started.
 java.lang.Integer getNumberOfCurrentActiveRequests()
          Gets the current active requests number
 java.lang.Integer getNumberOfLiveSessions()
          Gets the (recorded) number of currently live sessions.
 java.lang.Integer getPeakNumberOfActiveRequests()
          The high water mark for the number of requests being processed concurrently
 java.lang.Integer getPeakNumberOfSessions()
          The largest number of concurrent sessions since the application was started.
 void restart()
          Registers a new request logger at the application.
 void stop()
          Removes any set request logger from the application.
 

Method Detail

getNumberOfCreatedSessions

java.lang.Integer getNumberOfCreatedSessions()
                                             throws java.io.IOException
Total number of sessions ever created since the application was started.

Only available for web applications.

Returns:
the total number of sessions ever created since the application was started
Throws:
java.io.IOException

getNumberOfLiveSessions

java.lang.Integer getNumberOfLiveSessions()
                                          throws java.io.IOException
Gets the (recorded) number of currently live sessions.

Only available for web applications.

Returns:
current (recorded) number of live sessions
Throws:
java.io.IOException

getPeakNumberOfSessions

java.lang.Integer getPeakNumberOfSessions()
                                          throws java.io.IOException
The largest number of concurrent sessions since the application was started.

Only available for web applications.

Returns:
the largest number of concurrent sessions since the application was started
Throws:
java.io.IOException

getNumberOfCurrentActiveRequests

java.lang.Integer getNumberOfCurrentActiveRequests()
                                                   throws java.io.IOException
Gets the current active requests number

Returns:
current (at the time of method invocation) number of concurrent request being processed
Throws:
java.io.IOException

getPeakNumberOfActiveRequests

java.lang.Integer getPeakNumberOfActiveRequests()
                                                throws java.io.IOException
The high water mark for the number of requests being processed concurrently

Returns:
the largest number of the concurrent requests being processed
Throws:
java.io.IOException

restart

void restart()
             throws java.io.IOException
Registers a new request logger at the application. You need a request logger for some functions of the session bean. Be aware that sessions will be logged from this time on, so they may not reflect the actual number of sessions. Also, if one was registered, it will be replaced by a new one, which then starts over counting, disregarding the current ones.

Only available for web applications.

Throws:
java.io.IOException

stop

void stop()
          throws java.io.IOException
Removes any set request logger from the application. You need a request logger for some functions of the session bean.

Only available for web applications.

Throws:
java.io.IOException


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.