Class OperationInvocationRecord

All Implemented Interfaces:

@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:
  • Method Details

    • create

      public static OperationInvocationRecord create(org.aopalliance.intercept.MethodInvocation invocation)
    • create

      public static OperationInvocationRecord create(String operationName, Object[] arguments, boolean measureCpuTime)
    • swapSubsystemMark

      public static String swapSubsystemMark(String subsystemName)
    • formatExecutionTime

      public static void formatExecutionTime(StringBuilder sb, long elapsed)
    • processReturnValue

      public Object processReturnValue(Object returnValue)
    • 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()