- All Known Implementing Classes:
RequestLogger
public interface RequestLoggerMBean
Interface for exposing the request logger.
- Author:
- eelcohillenius
-
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.void
restart()
Registers a new request logger at the application.void
stop()
Removes any set request logger from the application.
-
Method Details
-
getNumberOfCreatedSessions
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
Gets the (recorded) number of currently live sessions.Only available for
web applications
.- Returns:
- current (recorded) number of live sessions
- Throws:
IOException
-
getPeakNumberOfSessions
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
Gets the current active requests number- Returns:
- current (at the time of method invocation) number of concurrent request being processed
- Throws:
IOException
-
getPeakNumberOfActiveRequests
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
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
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
-