Class OperationInvocationRecord
- java.lang.Object
-
- com.evolveum.midpoint.util.statistics.OperationInvocationRecord
-
public class OperationInvocationRecord extends Object
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.
-
-
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)
static OperationInvocationRecord
create(org.aopalliance.intercept.MethodInvocation invocation)
static void
formatExecutionTime(StringBuilder sb, long elapsed)
long
getElapsedTimeMicros()
String
getFullClassName()
long
getInvocationId()
String
getMethodName()
<T extends Throwable>
TprocessException(T e)
Object
processReturnValue(Object returnValue)
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)
-
formatExecutionTime
public static void formatExecutionTime(StringBuilder sb, long elapsed)
-
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()
-
getInvocationId
public long getInvocationId()
-
-