public class StatisticsInterceptor extends Interceptor
Manageable.State| Modifier and Type | Field and Description |
|---|---|
protected long |
_lastStatisticsReset
Last time the statistics were reset.
|
protected Map<String,org.xins.server.FunctionStatistics> |
statistics |
BOOTSTRAPPED, BOOTSTRAPPING, DEINITIALIZING, INITIALIZING, UNUSABLE, USABLE| Constructor and Description |
|---|
StatisticsInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
FunctionResult |
afterFunctionCall(FunctionRequest functionRequest,
FunctionResult xinsResult,
HttpServletResponse httpResponse) |
protected void |
bootstrapImpl(Map<String,String> properties)
Performs the bootstrap procedure (actual implementation).
|
Map<String,org.xins.server.FunctionStatistics> |
getStatistics() |
protected FunctionResult |
getStatistics(boolean detailed,
String functionName)
Returns the call statistics for all functions in this API.
|
protected FunctionResult |
resetStatistics()
Resets the statistics.
|
afterCallingConvention, beforeCallingConvention, beforeFunctionCall, beginRequest, endRequest, getApiassertUsable, bootstrap, deinit, deinitImpl, getState, init, initImpl, isBootstrapped, isUsableprotected long _lastStatisticsReset
protected void bootstrapImpl(Map<String,String> properties) throws MissingRequiredPropertyException, InvalidPropertyValueException, BootstrapException
ManageableManageable.bootstrap(Map), the state and
the argument will have been checked and the state will have been set to
Manageable.BOOTSTRAPPING.
The implementation of this method in class Manageable is
empty.
bootstrapImpl in class Manageableproperties - the bootstrap properties, not null.MissingRequiredPropertyException - if a required property is not given.InvalidPropertyValueException - if the value of a certain property is invalid.BootstrapException - if the bootstrapping failed for any other reason.public FunctionResult afterFunctionCall(FunctionRequest functionRequest, FunctionResult xinsResult, HttpServletResponse httpResponse)
afterFunctionCall in class Interceptorprotected FunctionResult getStatistics(boolean detailed, String functionName)
detailed - If true, the unsuccessful result will be returned sorted
per error code. Otherwise the unsuccessful result won't be displayed
by error code.functionName - the name of the specific function to return the statistics for,
if null, then the stats for all functions are returned.null.protected FunctionResult resetStatistics()
null.See http://www.xins.org/.