Anyframe Core

anyframe.common.aop.aspects
Class AbstractAspects

java.lang.Object
  extended by anyframe.common.aop.aspects.AbstractAspects
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
Direct Known Subclasses:
ApiAspect, JdbcAspect

public abstract class AbstractAspects
extends Object
implements org.aopalliance.intercept.MethodInterceptor

Abstract aspect class that supports for collecting performance information and sending these information to agent server which is provided by infrared solutions This aspect is to modify Infrared's AbstractAspects for applying Spring AOP

Author:
binil.thomas, prashant.nair, modified by SoYon Lim

Constructor Summary
AbstractAspects()
           
 
Method Summary
 boolean isMonitoringEnabled()
          Check whether current configuration support performance monitoring or not
 boolean isMonitoringEnabled(net.sf.infrared.agent.MonitorFacade facade)
          Check whether current configuration support performance monitoring or not with given monitor facade
 Object recordExecution(net.sf.infrared.base.model.ExecutionContext ctx, org.aopalliance.intercept.MethodInvocation sjp)
          Helper method for logging execution information
 Object recordExecution(net.sf.infrared.base.model.ExecutionContext ctx, org.aopalliance.intercept.MethodInvocation sjp, net.sf.infrared.agent.MonitorFacade facade)
          Helper method for logging execution information with given monitor facade
 void setMonitorFacade(net.sf.infrared.agent.MonitorFacade monitorFacade)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.aopalliance.intercept.MethodInterceptor
invoke
 

Constructor Detail

AbstractAspects

public AbstractAspects()
Method Detail

recordExecution

public Object recordExecution(net.sf.infrared.base.model.ExecutionContext ctx,
                              org.aopalliance.intercept.MethodInvocation sjp)
                       throws Throwable
Helper method for logging execution information

Parameters:
executionContext -
methodInvocation -
Returns:
Throws:
Throwable

recordExecution

public Object recordExecution(net.sf.infrared.base.model.ExecutionContext ctx,
                              org.aopalliance.intercept.MethodInvocation sjp,
                              net.sf.infrared.agent.MonitorFacade facade)
                       throws Throwable
Helper method for logging execution information with given monitor facade

Parameters:
executionContext -
methodInvocation -
monitorFacade -
Returns:
Throws:
Throwable

isMonitoringEnabled

public boolean isMonitoringEnabled()
Check whether current configuration support performance monitoring or not

Returns:

isMonitoringEnabled

public boolean isMonitoringEnabled(net.sf.infrared.agent.MonitorFacade facade)
Check whether current configuration support performance monitoring or not with given monitor facade

Parameters:
monitorFacade -
Returns:

setMonitorFacade

public void setMonitorFacade(net.sf.infrared.agent.MonitorFacade monitorFacade)

Anyframe Core

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.