|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.infrared.agent.MonitorFacadeImpl
The MonitorFacade implementation which is used once the application is deployed.
This class creates a ThreadLocal Statistics Collector that ensures that there is one Statistics object per request
| Constructor Summary | |
MonitorFacadeImpl()
|
|
MonitorFacadeImpl(String applicationName,
String instanceId,
MonitorConfig config)
|
|
| 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 |
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 sql,
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)
Indicate that execution of a method 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 MonitorFacadeImpl()
public MonitorFacadeImpl(String applicationName,
String instanceId,
MonitorConfig config)
| Method Detail |
public void recordMethodBegin(Class declaringType,
String methodName,
String apiType)
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 boolean isCollectFetchDataEnabled()
isCollectFetchDataEnabled in interface MonitorFacadepublic boolean isCallTracingEnabled()
isCallTracingEnabled in interface MonitorFacadepublic long getPruneBelowTime()
getPruneBelowTime in interface MonitorFacade
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 sql,
long noOfRowsFetched,
long timeTakenForFetch)
MonitorFacade
recordFetchComplete in interface MonitorFacadesql - - sql whose results were fetchednoOfRowsFetched - - total number of rows fetchedtimeTakenForFetch - - time taken to fetchpublic 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 MonitorFacade
public void recordHTTPRequest(String request,
long execTime)
MonitorFacade
recordHTTPRequest in interface MonitorFacaderequest - execTime -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||