Class AbstractAspect
java.lang.Object
kieker.monitoring.probe.aspectj.AbstractAspectJProbe
kieker.monitoring.probe.aspectj.database.AbstractAspect
- All Implemented Interfaces:
kieker.monitoring.probe.IMonitoringProbe
- Direct Known Subclasses:
Fullinstrumentation
public abstract class AbstractAspect extends AbstractAspectJProbe
This aspect spawns before and after events by foregoing an around advice.
Instead, it uses before and after advices only so that "cflow" can be used
when specifying its pointcut.
This aspect is based on the new kieker.monitoring.probe.aspectj.beforeafter.onlycallee.AbstractAspect
- Since:
- 1.14
-
Constructor Summary
Constructors Constructor Description AbstractAspect() -
Method Summary
Modifier and Type Method Description voidafterOperation(org.aspectj.lang.JoinPoint joinPoint)voidafterReturningOperation(org.aspectj.lang.JoinPoint joinPoint, java.lang.Object returningObject)voidafterThrowing(org.aspectj.lang.JoinPoint joinPoint, java.lang.Throwable th)voidbeforeOperation(org.aspectj.lang.JoinPoint joinPoint)java.lang.StringgetJoinPointArguments(org.aspectj.lang.JoinPoint currentJoinPoint)Retrieves the passed arguments of the JoinPoint.java.lang.StringgetJoinPointClassName(org.aspectj.lang.JoinPoint currentJoinPoint)Retrieves the className of the called method.abstract voidmonitoredOperation()The pointcut for the monitored operations.Methods inherited from class kieker.monitoring.probe.aspectj.AbstractAspectJProbe
getter, noGetterAndSetter, notWithinKieker, setter, signatureToLongString
-
Constructor Details
-
AbstractAspect
public AbstractAspect()
-
-
Method Details
-
monitoredOperation
public abstract void monitoredOperation()The pointcut for the monitored operations. Inheriting classes should extend the pointcut in order to find the correct executions of the methods (e.g. all methods or only methods with specific annotations). -
beforeOperation
public void beforeOperation(org.aspectj.lang.JoinPoint joinPoint) -
afterReturningOperation
public void afterReturningOperation(org.aspectj.lang.JoinPoint joinPoint, java.lang.Object returningObject) -
afterThrowing
public void afterThrowing(org.aspectj.lang.JoinPoint joinPoint, java.lang.Throwable th) -
afterOperation
public void afterOperation(org.aspectj.lang.JoinPoint joinPoint) -
getJoinPointClassName
public java.lang.String getJoinPointClassName(org.aspectj.lang.JoinPoint currentJoinPoint)Retrieves the className of the called method.- Parameters:
currentJoinPoint- the current joint point- Returns:
- returns the class name for the given joint point
-
getJoinPointArguments
public java.lang.String getJoinPointArguments(org.aspectj.lang.JoinPoint currentJoinPoint)Retrieves the passed arguments of the JoinPoint.- Parameters:
currentJoinPoint- the current joint point- Returns:
- returns the arguments for the given joint point
-