|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.infrared.agent.util.MultipleEntryGaurd
This class is used to detect/prevent calls to InfraRED while we are in the processs of executing InfraRED code, this can happen if one of the libraries that InfraRED depends (e.g. Log4J) on is instrumented
| Constructor Summary | |
MultipleEntryGaurd(MonitorFacade delegate)
|
|
| Method Summary | |
void |
endRequest()
This method is called by the monitoring filter to indicate that the processing of a request has ended. |
MonitorConfig |
getConfiguration()
Get the configuration object associated with this monitoring kit |
long |
getNumberOfCalls()
|
long |
getOverhead()
|
long |
getPruneBelowTime()
|
boolean |
isCallTracingEnabled()
|
boolean |
isCollectFetchDataEnabled()
|
boolean |
isJDBCMonitoringEnabled()
|
boolean |
isMonitoringEnabled()
|
void |
recordExecuteError(String sql,
long time,
boolean prepared)
Record a failed execute |
void |
recordExecuteSql(String sql,
long time,
boolean prepared)
Record a call to execute a statement |
void |
recordFetchComplete(String query,
long noOfRowsFetched,
long timeTakenForFetch)
This method is called to indicate a completion of a fetch. |
void |
recordHTTPRequest(String request,
long execTime)
This method is called to record the time for a HTTP request |
void |
recordMethodBegin(Class declaringType,
String methodName,
String apiType)
Call-back method used by monitoring aspects to indicate that a method execution has started. |
void |
recordMethodBegin(Class declaringType,
String methodName,
String apiType,
String componentName,
ApiContext context)
Call-back method used by monitoring aspects to indicate that a method execution has started. |
void |
recordMethodCall(Class declaringType,
String methodName,
String apiType,
String componentName,
ApiContext context,
long time)
Record a method call timing |
void |
recordMethodEnd(Class declaringType,
String methodName,
String apiType)
Call-back method for monitoring aspects to indicate that a method execution has stopped. |
void |
recordMethodEnd(Class declaringType,
String methodName,
String apiType,
String componentName,
ApiContext context)
Call-back method for monitoring aspects to indicate that a method execution has stopped. |
void |
recordMethodTime(Class declaringType,
String methodName,
String apiType,
long time)
Record a method call timing |
void |
recordPrepareSql(String sql,
long time)
Record a call to prepare a sql statement |
void |
recordResourceLeak(String resourceName,
StackTraceElement[] acquisitionLocation)
This method is called to record a Resource leak |
void |
startRequest()
This method is called by the monitoring filter to indicate that the processing of a request has been started |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultipleEntryGaurd(MonitorFacade delegate)
| Method Detail |
public void recordMethodBegin(Class declaringType,
String methodName,
String apiType)
MonitorFacade
recordMethodBegin in interface MonitorFacadedeclaringType - methodName - apiType -
public void recordMethodBegin(Class declaringType,
String methodName,
String apiType,
String componentName,
ApiContext context)
MonitorFacade
recordMethodBegin in interface MonitorFacadedeclaringType - methodName - apiType - componentName - context -
public void recordMethodEnd(Class declaringType,
String methodName,
String apiType)
MonitorFacade
recordMethodEnd in interface MonitorFacadedeclaringType - methodName - apiType -
public void recordMethodEnd(Class declaringType,
String methodName,
String apiType,
String componentName,
ApiContext context)
MonitorFacade
recordMethodEnd in interface MonitorFacadedeclaringType - methodName - apiType - componentName - context - public boolean isMonitoringEnabled()
isMonitoringEnabled in interface MonitorFacade
public void recordMethodTime(Class declaringType,
String methodName,
String apiType,
long time)
MonitorFacade
recordMethodTime in interface MonitorFacadedeclaringType - methodName - apiType - time -
public void recordMethodCall(Class declaringType,
String methodName,
String apiType,
String componentName,
ApiContext context,
long time)
MonitorFacade
recordMethodCall in interface MonitorFacadedeclaringType - methodName - apiType - componentName - context - time -
public void recordPrepareSql(String sql,
long time)
MonitorFacade
recordPrepareSql in interface MonitorFacadesql - - sql querytime - - time spent in preparing
public void recordExecuteSql(String sql,
long time,
boolean prepared)
MonitorFacade
recordExecuteSql in interface MonitorFacadesql - - sql querytime - - time spent in executing the queryprepared - - was it a prepared statement or plain statement
public void recordExecuteError(String sql,
long time,
boolean prepared)
MonitorFacade
recordExecuteError in interface MonitorFacadesql - - sql querytime - - time spent in executing the queryprepared - - was it a prepared statement or plain statement
public void recordFetchComplete(String query,
long noOfRowsFetched,
long timeTakenForFetch)
MonitorFacade
recordFetchComplete in interface MonitorFacadequery - - sql whose results were fetchednoOfRowsFetched - - total number of rows fetchedtimeTakenForFetch - - time taken to fetch
public void recordHTTPRequest(String request,
long execTime)
MonitorFacade
recordHTTPRequest in interface MonitorFacaderequest - execTime - public void startRequest()
MonitorFacade
startRequest in interface MonitorFacadepublic void endRequest()
MonitorFacade
endRequest in interface MonitorFacade
public void recordResourceLeak(String resourceName,
StackTraceElement[] acquisitionLocation)
MonitorFacade
recordResourceLeak in interface MonitorFacaderesourceName - - identified the type of resource (Connection, Statement etc)acquisitionLocation - - The stack trace pointing to the location of aquisition.public MonitorConfig getConfiguration()
MonitorFacade
getConfiguration in interface MonitorFacadepublic boolean isJDBCMonitoringEnabled()
isJDBCMonitoringEnabled in interface MonitorFacadepublic boolean isCollectFetchDataEnabled()
isCollectFetchDataEnabled in interface MonitorFacadepublic boolean isCallTracingEnabled()
isCallTracingEnabled in interface MonitorFacadepublic long getPruneBelowTime()
getPruneBelowTime in interface MonitorFacadepublic long getOverhead()
public long getNumberOfCalls()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||