java.lang.Object
org.apache.wicket.jmx.wrapper.RequestLogger
- All Implemented Interfaces:
RequestLoggerMBean
Exposes
RequestLogger
for JMX.- Author:
- eelcohillenius
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTotal number of sessions ever created since the application was started.Gets the current active requests numberGets the (recorded) number of currently live sessions.The high water mark for the number of requests being processed concurrentlyThe largest number of concurrent sessions since the application was started.protected IRequestLogger
Gets the request logger for this application.void
restart()
Registers a new request logger at the application.void
stop()
Removes any set request logger from the application.
-
Constructor Details
-
RequestLogger
Construct.- Parameters:
application
- The application
-
-
Method Details
-
getNumberOfCreatedSessions
Description copied from interface:RequestLoggerMBean
Total number of sessions ever created since the application was started.Only available for
web applications
.- Specified by:
getNumberOfCreatedSessions
in interfaceRequestLoggerMBean
- Returns:
- the total number of sessions ever created since the application was started
- Throws:
IOException
- See Also:
-
getNumberOfLiveSessions
Description copied from interface:RequestLoggerMBean
Gets the (recorded) number of currently live sessions.Only available for
web applications
.- Specified by:
getNumberOfLiveSessions
in interfaceRequestLoggerMBean
- Returns:
- current (recorded) number of live sessions
- Throws:
IOException
- See Also:
-
getPeakNumberOfSessions
Description copied from interface:RequestLoggerMBean
The largest number of concurrent sessions since the application was started.Only available for
web applications
.- Specified by:
getPeakNumberOfSessions
in interfaceRequestLoggerMBean
- Returns:
- the largest number of concurrent sessions since the application was started
- Throws:
IOException
- See Also:
-
getNumberOfCurrentActiveRequests
Description copied from interface:RequestLoggerMBean
Gets the current active requests number- Specified by:
getNumberOfCurrentActiveRequests
in interfaceRequestLoggerMBean
- Returns:
- current (at the time of method invocation) number of concurrent request being processed
- Throws:
IOException
- See Also:
-
getPeakNumberOfActiveRequests
Description copied from interface:RequestLoggerMBean
The high water mark for the number of requests being processed concurrently- Specified by:
getPeakNumberOfActiveRequests
in interfaceRequestLoggerMBean
- Returns:
- the largest number of the concurrent requests being processed
- Throws:
IOException
- See Also:
-
restart
Description copied from interface:RequestLoggerMBean
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
.- Specified by:
restart
in interfaceRequestLoggerMBean
- Throws:
IOException
- See Also:
-
stop
Description copied from interface:RequestLoggerMBean
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
.- Specified by:
stop
in interfaceRequestLoggerMBean
- Throws:
IOException
- See Also:
-
getRequestLogger
Gets the request logger for this application.- Returns:
- The request logger or null if no request is active, or if this is not a web application
-