Class OperationInvocationRecord
java.lang.Object
com.evolveum.midpoint.util.statistics.OperationInvocationRecord
- All Implemented Interfaces:
Serializable
This class provides basically the functionality of MidpointInterceptor. However it was refactored to be callable also
outside of the context of AOP - manually by injecting appropriate code, mimicking MidpointInterceptor.invoke method.
EXPERIMENTAL.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
afterCall
(org.aopalliance.intercept.MethodInvocation invocation) static OperationInvocationRecord
static OperationInvocationRecord
create
(org.aopalliance.intercept.MethodInvocation invocation) static void
formatExecutionTime
(StringBuilder sb, long elapsed) long
long
<T extends Throwable>
TprocessException
(T e) processReturnValue
(Object returnValue) void
processReturnValue
(Map<String, Collection<String>> returns, Throwable cause) static String
swapSubsystemMark
(String subsystemName)
-
Method Details
-
create
public static OperationInvocationRecord create(org.aopalliance.intercept.MethodInvocation invocation) -
create
public static OperationInvocationRecord create(String operationName, Object[] arguments, boolean measureCpuTime) -
swapSubsystemMark
-
formatExecutionTime
-
processReturnValue
-
processReturnValue
-
processException
-
afterCall
public void afterCall() -
afterCall
public void afterCall(org.aopalliance.intercept.MethodInvocation invocation) -
getFullClassName
-
getMethodName
-
getElapsedTimeMicros
public long getElapsedTimeMicros() -
getCpuTimeMicros
-
getInvocationId
public long getInvocationId()
-