public class RequestLogger extends Object implements RequestLoggerMBean
RequestLogger
for JMX.Constructor and Description |
---|
RequestLogger(Application application)
Construct.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getNumberOfCreatedSessions()
Total number of sessions ever created since the application was started.
|
Integer |
getNumberOfCurrentActiveRequests()
Gets the current active requests number
|
Integer |
getNumberOfLiveSessions()
Gets the (recorded) number of currently live sessions.
|
Integer |
getPeakNumberOfActiveRequests()
The high water mark for the number of requests being processed concurrently
|
Integer |
getPeakNumberOfSessions()
The largest number of concurrent sessions since the application was started.
|
protected IRequestLogger |
getRequestLogger()
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.
|
public RequestLogger(Application application)
application
- The applicationpublic Integer getNumberOfCreatedSessions() throws IOException
RequestLoggerMBean
Only available for web applications
.
getNumberOfCreatedSessions
in interface RequestLoggerMBean
IOException
RequestLoggerMBean.getNumberOfCreatedSessions()
public Integer getNumberOfLiveSessions() throws IOException
RequestLoggerMBean
Only available for web applications
.
getNumberOfLiveSessions
in interface RequestLoggerMBean
IOException
RequestLoggerMBean.getNumberOfLiveSessions()
public Integer getPeakNumberOfSessions() throws IOException
RequestLoggerMBean
Only available for web applications
.
getPeakNumberOfSessions
in interface RequestLoggerMBean
IOException
RequestLoggerMBean.getPeakNumberOfSessions()
public Integer getNumberOfCurrentActiveRequests() throws IOException
RequestLoggerMBean
getNumberOfCurrentActiveRequests
in interface RequestLoggerMBean
IOException
RequestLoggerMBean.getNumberOfCurrentActiveRequests()
public Integer getPeakNumberOfActiveRequests() throws IOException
RequestLoggerMBean
getPeakNumberOfActiveRequests
in interface RequestLoggerMBean
IOException
RequestLoggerMBean.getPeakNumberOfActiveRequests()
public void restart() throws IOException
RequestLoggerMBean
Only available for web applications
.
restart
in interface RequestLoggerMBean
IOException
RequestLoggerMBean.restart()
public void stop() throws IOException
RequestLoggerMBean
Only available for web applications
.
stop
in interface RequestLoggerMBean
IOException
RequestLoggerMBean.stop()
protected IRequestLogger getRequestLogger()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.