|
Groovy 1.7.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgroovy.lang.BenchmarkInterceptor
class BenchmarkInterceptor extends Object
Interceptor that registers the timestamp of each method call before and after invocation.
| Field Summary | |
|---|---|
protected Map |
calls
|
| Constructor Summary | |
BenchmarkInterceptor()
|
|
| Method Summary | |
|---|---|
Object
|
afterInvoke(Object object, String methodName, Object[] arguments, Object result)
|
Object
|
beforeInvoke(Object object, String methodName, Object[] arguments)
|
boolean
|
doInvoke()
|
Map
|
getCalls()
|
void
|
reset()
|
List
|
statistic()
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
| Field Detail |
|---|
protected Map calls
| Constructor Detail |
|---|
BenchmarkInterceptor()
| Method Detail |
|---|
public Object afterInvoke(Object object, String methodName, Object[] arguments, Object result)
public Object beforeInvoke(Object object, String methodName, Object[] arguments)
public boolean doInvoke()
public Map getCalls()
public void reset()
public List statistic()
Copyright © 2003-2009 The Codehaus. All rights reserved.