Class OperationInvocationRecord
- java.lang.Object
-
- com.evolveum.midpoint.util.statistics.OperationInvocationRecord
-
- All Implemented Interfaces:
Serializable
@Experimental public final class OperationInvocationRecord extends Object implements 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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCall()voidafterCall(org.aopalliance.intercept.MethodInvocation invocation)static OperationInvocationRecordcreate(String operationName, Object[] arguments, boolean measureCpuTime)static OperationInvocationRecordcreate(org.aopalliance.intercept.MethodInvocation invocation)static voidformatExecutionTime(StringBuilder sb, long elapsed)LonggetCpuTimeMicros()longgetElapsedTimeMicros()StringgetFullClassName()longgetInvocationId()StringgetMethodName()<T extends Throwable>
TprocessException(T e)ObjectprocessReturnValue(Object returnValue)voidprocessReturnValue(Map<String,Collection<String>> returns, Throwable cause)static StringswapSubsystemMark(String subsystemName)
-
-
-
Method Detail
-
create
public static OperationInvocationRecord create(org.aopalliance.intercept.MethodInvocation invocation)
-
create
public static OperationInvocationRecord create(String operationName, Object[] arguments, boolean measureCpuTime)
-
formatExecutionTime
public static void formatExecutionTime(StringBuilder sb, long elapsed)
-
processReturnValue
public void processReturnValue(Map<String,Collection<String>> returns, Throwable cause)
-
processException
public <T extends Throwable> T processException(T e)
-
afterCall
public void afterCall()
-
afterCall
public void afterCall(org.aopalliance.intercept.MethodInvocation invocation)
-
getFullClassName
public String getFullClassName()
-
getMethodName
public String getMethodName()
-
getElapsedTimeMicros
public long getElapsedTimeMicros()
-
getCpuTimeMicros
public Long getCpuTimeMicros()
-
getInvocationId
public long getInvocationId()
-
-