|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Facade interface that implements methods to interact with the InfraRED
engine. The interface defines methods that can be used to indicate start/end
of a method execution and also execution of sql queries etc. Typically these
calls are made from code woven into the application code by the aspects. They
can also be invoked directly from with the application code, but is not recommended.
MonitorFactory.
| 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 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 |
| Method Detail |
public void recordMethodBegin(Class declaringType,
String methodName,
String apiType)
declaringType - methodName - apiType -
public void recordMethodBegin(Class declaringType,
String methodName,
String apiType,
String componentName,
ApiContext context)
declaringType - methodName - apiType - componentName - context -
public void recordMethodEnd(Class declaringType,
String methodName,
String apiType)
declaringType - methodName - apiType -
public void recordMethodEnd(Class declaringType,
String methodName,
String apiType,
String componentName,
ApiContext context)
declaringType - methodName - apiType - componentName - context - public boolean isMonitoringEnabled()
public void recordMethodTime(Class declaringType,
String methodName,
String apiType,
long time)
declaringType - methodName - apiType - time -
public void recordMethodCall(Class declaringType,
String methodName,
String apiType,
String componentName,
ApiContext context,
long time)
declaringType - methodName - apiType - componentName - context - time -
public void recordPrepareSql(String sql,
long time)
sql - - sql querytime - - time spent in preparing
public void recordExecuteSql(String sql,
long time,
boolean prepared)
sql - - 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)
sql - - 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)
query - - sql whose results were fetchednoOfRowsFetched - - total number of rows fetchedtimeTakenForFetch - - time taken to fetch
public void recordHTTPRequest(String request,
long execTime)
request - execTime - public void startRequest()
public void endRequest()
public void recordResourceLeak(String resourceName,
StackTraceElement[] acquisitionLocation)
resourceName - - identified the type of resource (Connection, Statement etc)acquisitionLocation - - The stack trace pointing to the location of aquisition.public MonitorConfig getConfiguration()
public boolean isJDBCMonitoringEnabled()
public boolean isCollectFetchDataEnabled()
public boolean isCallTracingEnabled()
public long getPruneBelowTime()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||