| java.lang.Object com.jamonapi.http.HttpMonItem
All known Subclasses: com.jamonapi.http.JettyHttpMonItem,
HttpMonItem | class HttpMonItem (Code) | | Stateless class used by HttpMonRequest to represent anything a request is monitoring.
There will be one HttpMonItem in HttpMonFactory for each thing we are monitoring. The state information
needed for monitoring a particular request is kept in HttpMonRequest. Note any of the mehtods that take
a HttpMonRequest need some form of state associated with the request. By making HttpMonRequest stateful
and HttpMonItem stateless a significant number of object creations were saved.
author: Steven Souza |
Constructor Summary | |
| HttpMonItem() | | HttpMonItem(String label, HttpMonFactory httpMonFactory) Valid constructor arguments are case insensitive, and have to start with request, response to differentiate whether to use an object
that inhertis from HttpServletRequest or HttpServletResponse respectively. |
HttpMonItem | HttpMonItem()(Code) | | |
HttpMonItem | HttpMonItem(String label, HttpMonFactory httpMonFactory)(Code) | | Valid constructor arguments are case insensitive, and have to start with request, response to differentiate whether to use an object
that inhertis from HttpServletRequest or HttpServletResponse respectively. This must be follwed by the methodname, units, an optional '.value',
and a units. The method name will be executed. Note a unit of 'ms' would cause a timed monitor to be called.
Examples: request.getRequestURI().ms, request.getRequestURI().ms.value, request.getRequestURI().myUnits
response.getBufferSize().bytes, response.getBufferSize().bytes.value
Parameters: label - |
getLabel | String getLabel(HttpMonRequest httpMonBase)(Code) | | If a value label is to be used then append it to the end of the label, else just return the label. The results will be used to create
a jamon record. Ex: request.getMethod() or request.getMethod().post
|
isResponse | boolean isResponse()(Code) | | |
isTimeMon | boolean isTimeMon()(Code) | | |
|
|