public class ServletStats extends RequestOrientedStats
MB| Constructor and Description |
|---|
ServletStats() |
ServletStats(java.lang.String aMethodName)
Creates a new MethodStats object with the given method name.
|
ServletStats(java.lang.String aMethodName,
Interval[] intervals) |
| Modifier and Type | Method and Description |
|---|---|
long |
getIoExceptions()
Returns the number of io exceptions since start.
|
long |
getIoExceptions(java.lang.String interval)
Returns the number of io exceptions for given interval.
|
long |
getRuntimeExceptions()
Returns the number of runtime exceptions since start.
|
long |
getRuntimeExceptions(java.lang.String interval)
Returns the number of runtime exceptions for given interval.
|
long |
getServletExceptions()
Returns the number of servlet exceptions since start.
|
long |
getServletExceptions(java.lang.String interval)
Returns the number of servlet exceptions for given interval.
|
java.lang.String |
getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit) |
void |
notifyIOException(java.lang.Throwable t)
Called if an io exception has been caught.
|
void |
notifyRuntimeException(java.lang.Throwable t)
Called if a runtime exception has been caught.
|
void |
notifyServletException(java.lang.Throwable t)
Called if a servlet exception has been caught.
|
java.lang.String |
toStatsString(java.lang.String intervalName,
TimeUnit timeUnit)
This method creates a human-readable textual representation of all statistical
values in the given interval.
|
addExecutionTime, addRequest, createCallExecution, getAvailableValueNames, getAverageRequestDuration, getAverageRequestDuration, getAverageRequestDuration, getCurrentRequests, getCurrentRequests, getErrorRate, getErrors, getErrors, getLastRequest, getLastRequest, getMaxCurrentRequests, getMaxCurrentRequests, getMaxTime, getMaxTime, getMethodName, getMinTime, getMinTime, getName, getSelectedIntervals, getTotalRequests, getTotalRequests, getTotalTime, getTotalTime, isEmpty, notifyError, notifyError, notifyRequestFinished, setMethodName, setSelectedIntervals, toString, toStringaddStatValues, destroy, toStatsString, toStatsString, toStatsStringpublic ServletStats(java.lang.String aMethodName)
aMethodName - public ServletStats()
public ServletStats(java.lang.String aMethodName,
Interval[] intervals)
public java.lang.String toStatsString(java.lang.String intervalName,
TimeUnit timeUnit)
IStatstoStatsString in interface IStatstoStatsString in class RequestOrientedStatsintervalName - the name of the interval or null for all intervalspublic void notifyServletException(java.lang.Throwable t)
public void notifyIOException(java.lang.Throwable t)
public void notifyRuntimeException(java.lang.Throwable t)
public long getIoExceptions()
public long getRuntimeExceptions()
public long getServletExceptions()
public long getIoExceptions(java.lang.String interval)
interval - public long getRuntimeExceptions(java.lang.String interval)
interval - public long getServletExceptions(java.lang.String interval)
interval - public java.lang.String getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit)
getValueByNameAsString in interface IStatsgetValueByNameAsString in class RequestOrientedStatsCopyright © 2010-2020 anotheria.net. All Rights Reserved.