org.springframework.samples.petclinic.aspects
Class CallMonitoringAspect
java.lang.Object
org.springframework.samples.petclinic.aspects.CallMonitoringAspect
@ManagedResource(value="petclinic:type=CallMonitor")
public class CallMonitoringAspect
- extends java.lang.Object
Simple AspectJ aspect that monitors call count and call invocation time.
Implements the CallMonitor management interface.
- Since:
- 2.5
- Author:
- Rob Harrop, Juergen Hoeller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CallMonitoringAspect
public CallMonitoringAspect()
setEnabled
@ManagedAttribute
public void setEnabled(boolean enabled)
isEnabled
@ManagedAttribute
public boolean isEnabled()
reset
@ManagedOperation
public void reset()
getCallCount
@ManagedAttribute
public int getCallCount()
getCallTime
@ManagedAttribute
public long getCallTime()
invoke
public java.lang.Object invoke(org.aspectj.lang.ProceedingJoinPoint joinPoint)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
Copyright © 2010. All Rights Reserved.