Package org.apache.wicket.jmx
Interface RequestLoggerMBean
-
- All Known Implementing Classes:
RequestLogger
public interface RequestLoggerMBean
Interface for exposing the request logger.- Author:
- eelcohillenius
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Integer
getNumberOfCreatedSessions()
Total number of sessions ever created since the application was started.Integer
getNumberOfCurrentActiveRequests()
Gets the current active requests numberInteger
getNumberOfLiveSessions()
Gets the (recorded) number of currently live sessions.Integer
getPeakNumberOfActiveRequests()
The high water mark for the number of requests being processed concurrentlyInteger
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
Integer getNumberOfCreatedSessions() throws 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:
IOException
-
getNumberOfLiveSessions
Integer getNumberOfLiveSessions() throws IOException
Gets the (recorded) number of currently live sessions.Only available for
web applications
.- Returns:
- current (recorded) number of live sessions
- Throws:
IOException
-
getPeakNumberOfSessions
Integer getPeakNumberOfSessions() throws 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:
IOException
-
getNumberOfCurrentActiveRequests
Integer getNumberOfCurrentActiveRequests() throws IOException
Gets the current active requests number- Returns:
- current (at the time of method invocation) number of concurrent request being processed
- Throws:
IOException
-
getPeakNumberOfActiveRequests
Integer getPeakNumberOfActiveRequests() throws IOException
The high water mark for the number of requests being processed concurrently- Returns:
- the largest number of the concurrent requests being processed
- Throws:
IOException
-
restart
void restart() throws 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:
IOException
-
stop
void stop() throws 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:
IOException
-
-