@ManagedResource(objectName="Taverna:group=Server-3.1.0,name=PerformanceMonitor", description="The performance monitor for Taverna Server 3.1.0. Writes to application log using the category \'Taverna.Server.Performance\'.") public class CallTimeLogger extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
CallTimeLogger.PerfLogged
Mark methods that should be counted by the invocation counter.
|
Constructor and Description |
---|
CallTimeLogger() |
Modifier and Type | Method and Description |
---|---|
long |
getThreshold() |
void |
setThreshold(long threshold) |
Object |
time(org.aspectj.lang.ProceedingJoinPoint call)
The timer for this aspect.
|
@ManagedAttribute(description="Threshold beneath which monitored call times are not logged. In nanoseconds.") public long getThreshold()
@ManagedAttribute(description="Threshold beneath which monitored call times are not logged. In nanoseconds.") public void setThreshold(long threshold)
public Object time(org.aspectj.lang.ProceedingJoinPoint call) throws Throwable
call
- The call being wrapped.Throwable
- If anything goes wrong with the wrapped call.System.nanoTime()
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.