public class HttpMonFactory
extends java.lang.Object
Constructor and Description |
---|
HttpMonFactory(java.lang.String labelPrefix)
Create an HttpMonFactory by passing in text that occurs at the beginning of all jamon labels.
|
Modifier and Type | Method and Description |
---|---|
void |
addSummaryLabel(java.lang.String jamonSummaryLabel)
Pass a String that has an HttpServletRequest/HttpServletResponse method such as response.getStatus() and then this class
will monitor that method call.
|
static java.lang.String |
getDemoLabels() |
boolean |
getEnabled()
Determin if http monitoring is enabled
|
boolean |
getIgnoreHttpParams()
Determine if http params are ignored when creating a jamon label for request.getRequestURI(), and request.getRequestURL().
|
java.lang.String |
getLabelPrefix() |
HttpMon |
getMon(java.lang.Object request,
java.lang.Object response) |
int |
getSize()
Get the max number of possible HttpMonitors.
|
java.lang.String |
getSummaryLabels()
Get the passed in summaryLabels.
|
static void |
main(java.lang.String[] argas)
Simple test code
|
void |
setEnabled(boolean enable)
Enable/disable http monitoring
|
void |
setIgnoreHttpParams(boolean ignoreHttpParams)
Set if http params are ignored when creating a jamon label for request.getRequestURI(), and request.getRequestURL().
|
void |
setSize(int size)
Set the max number of possible HttpMonitors.
|
void |
setSummaryLabels(java.lang.String jamonSummaryLabels)
Pass a series of things (HttpServletRequest/HttpServletResponse methods) to monitor.
|
void |
setSummaryLabels(java.lang.String summaryLabel,
java.lang.String defaultString) |
HttpMon |
start(java.lang.Object request,
java.lang.Object response) |
public HttpMonFactory(java.lang.String labelPrefix)
public void setSummaryLabels(java.lang.String jamonSummaryLabels)
public static java.lang.String getDemoLabels()
public void setSummaryLabels(java.lang.String summaryLabel, java.lang.String defaultString)
public void addSummaryLabel(java.lang.String jamonSummaryLabel)
public java.lang.String getSummaryLabels()
public boolean getIgnoreHttpParams()
public void setIgnoreHttpParams(boolean ignoreHttpParams)
public void setEnabled(boolean enable)
public boolean getEnabled()
public int getSize()
public void setSize(int size)
public java.lang.String getLabelPrefix()
public HttpMon getMon(java.lang.Object request, java.lang.Object response)
public HttpMon start(java.lang.Object request, java.lang.Object response)
public static void main(java.lang.String[] argas)