|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.aspect.Cache
public class Cache
Cache aspect. Created: 25 août 06 22:42:47
| Field Summary | |
|---|---|
protected java.util.Map |
cache
|
protected long |
cacheUsed
|
protected long |
totalCall
|
| Constructor Summary | |
|---|---|
Cache()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
call(org.codehaus.aspectwerkz.joinpoint.JoinPoint jp)
|
protected java.lang.Object |
computeKey(org.codehaus.aspectwerkz.joinpoint.JoinPoint jp)
Attention pour avoir une chaine en sortie on prend la reprensentation toString des arguments. |
static long |
getCacheUsed()
|
static long |
getTotalCall()
|
protected Trace |
getTrace()
Return trace object from context. |
static java.lang.String |
printStatistiqueAndClear()
Affiche les statistiques |
protected java.lang.Object |
realCall(org.codehaus.aspectwerkz.joinpoint.JoinPoint jp)
On fait l'appel reel dans une autre methode pour pouvoir le savoir dans les traces |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long totalCall
protected long cacheUsed
protected java.util.Map cache
| Constructor Detail |
|---|
public Cache()
| Method Detail |
|---|
protected Trace getTrace()
public java.lang.Object call(org.codehaus.aspectwerkz.joinpoint.JoinPoint jp)
throws java.lang.Throwable
java.lang.Throwable
protected java.lang.Object realCall(org.codehaus.aspectwerkz.joinpoint.JoinPoint jp)
throws java.lang.Throwable
jp -
java.lang.Throwableprotected java.lang.Object computeKey(org.codehaus.aspectwerkz.joinpoint.JoinPoint jp)
Pour les objets de style Number ou String, il faut prendre le vrai toString, pour que 2 soit bien egal a 2.
jp -
public static long getCacheUsed()
public static long getTotalCall()
public static java.lang.String printStatistiqueAndClear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||