Package sk.iway.iwcm.system.monitoring
Class ExecutionTimeMonitor
java.lang.Object
sk.iway.iwcm.system.monitoring.ExecutionTimeMonitor
ExecutionTimeMonitor.java
Serves as a facade and as a superclass for monitoring issues
For the big picture: @see ComponentExecutionTimeMonitor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExecutionRecord
(String name, long timeTaken, long memoryDifference) protected abstract String
generateEntryKeyFrom
(String name) protected ExecutionEntry
static void
recordComponentExecution
(String component, long timeTaken, long memoryDifference) static void
recordComponentExecutionFromCache
(String component, long timeTaken) static void
recordDocumentExecution
(String uri, long timeTaken, long memoryDifference) static void
recordSqlExecution
(String sql, long timeTaken) void
reset()
static void
static void
static void
static List<ExecutionEntry>
static List<ExecutionEntry>
static List<ExecutionEntry>
-
Field Details
-
executionDurations
-
-
Constructor Details
-
ExecutionTimeMonitor
public ExecutionTimeMonitor()
-
-
Method Details
-
recordSqlExecution
-
recordDocumentExecution
-
recordComponentExecution
public static void recordComponentExecution(String component, long timeTaken, long memoryDifference) -
recordComponentExecutionFromCache
-
resetDocumentMeasurements
public static void resetDocumentMeasurements() -
resetComponentMeasurements
public static void resetComponentMeasurements() -
resetSqlMeasurements
public static void resetSqlMeasurements() -
statsForComponents
-
statsForDocuments
-
statsForSqls
-
reset
public void reset() -
addExecutionRecord
-
getRecord
-
generateEntryKeyFrom
-
generateStats
-