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 void
afterCall()
void
afterCall(org.aopalliance.intercept.MethodInvocation invocation)
static OperationInvocationRecord
create(String operationName, Object[] arguments, boolean measureCpuTime)
static OperationInvocationRecord
create(org.aopalliance.intercept.MethodInvocation invocation)
static void
formatExecutionTime(StringBuilder sb, long elapsed)
Long
getCpuTimeMicros()
long
getElapsedTimeMicros()
String
getFullClassName()
long
getInvocationId()
String
getMethodName()
<T extends Throwable>
TprocessException(T e)
Object
processReturnValue(Object returnValue)
void
processReturnValue(Map<String,Collection<String>> returns, Throwable cause)
static String
swapSubsystemMark(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()
-
-