Class OperationInvocationRecord
java.lang.Object
com.evolveum.midpoint.util.statistics.OperationInvocationRecord
- All Implemented Interfaces:
- Serializable
Represents an invocation of a single *operation* in the system. (Operation is typically implemented by a method or a set
 of methods. But it may not be necessarily aligned to method's boundary.)
 NOTE: History: This class provides basically the functionality of 
MidpointInterceptor. However, it was later
 refactored to be callable also outside of the context of AOP - manually by injecting appropriate code, mimicking
 MidpointInterceptor.invoke(MethodInvocation) method. Currently, its main use is to manage the performance
 data of the operations executed in the system in cooperation with the `OperationResult` class.
 "Operation" may represent "operation invocation" in short (where no confusion is possible).- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidafterCall(long notOwnTimeMicros) voidstatic OperationInvocationRecordstatic OperationInvocationRecordcreate(org.aopalliance.intercept.MethodInvocation invocation) static voidformatExecutionTime(StringBuilder sb, long elapsed) longlong<T extends Throwable>
 TprocessException(T e) processReturnValue(Object returnValue) voidprocessReturnValue(Map<String, Collection<String>> returns, Throwable cause) static StringswapSubsystemMark(String subsystemName) 
- 
Method Details- 
createpublic static OperationInvocationRecord create(org.aopalliance.intercept.MethodInvocation invocation) 
- 
createpublic static OperationInvocationRecord create(String operationName, Object[] arguments, boolean measureCpuTime) 
- 
swapSubsystemMark
- 
formatExecutionTime
- 
processReturnValue
- 
processReturnValue
- 
processException
- 
afterCallpublic void afterCall(long notOwnTimeMicros) 
- 
afterCall
- 
getMethodName
- 
getElapsedTimeMicrospublic long getElapsedTimeMicros()
- 
getOwnTimeMicros
- 
getCpuTimeMicros
- 
getInvocationIdpublic long getInvocationId()
 
-