public final class StatisticsRequestListener extends Object implements javax.servlet.ServletRequestListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
StatisticsRequestListener.UnclosedListener |
| Constructor and Description |
|---|
StatisticsRequestListener() |
| Modifier and Type | Method and Description |
|---|---|
static SessionStatistics |
createSessionStats(javax.servlet.http.HttpServletRequest r)
Create a HttpSession, and add a Session Statistics block there.
|
static void |
destroySessionStats(javax.servlet.http.HttpServletRequest r)
Destroy any known session stats structure.
|
static GlobalPerformanceStore |
getGlobalStore()
Returns the current global performance store maintained by this listener.
|
static String |
getRequestID()
Return the unique ID for this request/response cycle which can be used to identify the metrics for
this request after it finished.
|
static SessionStatistics |
getSessionStatistics(javax.servlet.http.HttpServletRequest r) |
static StatisticsCollectorBase |
getThreadStatistics()
Get the current counts for SQL statements for the current thread, if enabled/available.
|
void |
requestDestroyed(javax.servlet.ServletRequestEvent ev)
At request finish, we collect all of the statistics we gathered and add them
to the accounting outputs (the stores).
|
void |
requestInitialized(javax.servlet.ServletRequestEvent ev) |
static void |
setForceEncoding(String forceEncoding)
Advanced horror mode: Internet Exploder, who else, does not send the charset it encoded
the parameters with in it's content type for input received.
|
static void |
setSessionStatistics(boolean on) |
static void |
setUnclosedListener(StatisticsRequestListener.UnclosedListener ucl) |
public void requestDestroyed(javax.servlet.ServletRequestEvent ev)
requestDestroyed in interface javax.servlet.ServletRequestListenerev - public void requestInitialized(javax.servlet.ServletRequestEvent ev)
requestInitialized in interface javax.servlet.ServletRequestListenerServletRequestListener.requestInitialized(javax.servlet.ServletRequestEvent)public static void setSessionStatistics(boolean on)
@Nullable public static final StatisticsCollectorBase getThreadStatistics()
@Nullable public static final String getRequestID()
public static void destroySessionStats(javax.servlet.http.HttpServletRequest r)
r - @Nonnull public static SessionStatistics createSessionStats(javax.servlet.http.HttpServletRequest r)
r - @Nullable public static SessionStatistics getSessionStatistics(javax.servlet.http.HttpServletRequest r)
public static GlobalPerformanceStore getGlobalStore()
public static void setForceEncoding(String forceEncoding)
forceEncoding - public static void setUnclosedListener(StatisticsRequestListener.UnclosedListener ucl)
Copyright © 2017 etc.to. All rights reserved.