net.sf.sasl.aop.logging
Class RuntimeBenchIEnvOfferer
java.lang.Object
net.sf.sasl.aop.logging.RuntimeBenchIEnvOfferer
- All Implemented Interfaces:
- ILogSessionIEnvOfferer
public class RuntimeBenchIEnvOfferer
- extends Object
- implements ILogSessionIEnvOfferer
- Since:
- 0.0.2 (sasl-common-aspect-library)
- Author:
- Philipp Förmer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeBenchIEnvOfferer
public RuntimeBenchIEnvOfferer()
endLogSession
public void endLogSession(long sessionId)
- Description copied from interface:
ILogSessionIEnvOfferer
- Ends the log session for the given session id that was before started via
ILogSessionIEnvOfferer.startLogSession(long)
. Could be used to clean up resources
allocated for the log session. The method is called after a
(targetObject, targetMethod, targetArguments) execution triple finished
its execution (successful or with a failure).
- Specified by:
endLogSession
in interface ILogSessionIEnvOfferer
- Parameters:
sessionId
- any unique long value.- Since:
- 0.0.2 (sasl-common-aspect-library)
- See Also:
ILogSessionIEnvOfferer.endLogSession(long)
getIEnvMap
public Map<String,Object> getIEnvMap(long sessionId,
TargetMethodExecutionPhase executionPhase,
org.aopalliance.intercept.MethodInvocation invocation,
Object returnValue,
Throwable occuredException)
- Description copied from interface:
ILogSessionIEnvOfferer
- Returns a map of variables that should be passed as interpreter
environment variables for the current target method execution phase. Such
variables could for example hold benchmark results.
- Specified by:
getIEnvMap
in interface ILogSessionIEnvOfferer
- Parameters:
sessionId
- any unique long value.executionPhase
- non null.invocation
- non null.returnValue
- null or non null, depending of the target method execution
phase.occuredException
- null or non null, depending of the target method execution
phase.
- Returns:
- null or non null map.
- Since:
- 0.0.2 (sasl-common-aspect-library)
- See Also:
net.sf.sasl.aop.logging.ILogSessionIEnvOfferer#getIEnvMap(long,
net.sf.sasl.aop.common.grammar.placeholder.interpreter.TargetMethodExecutionPhase,
org.aopalliance.intercept.MethodInvocation, java.lang.Object,
java.lang.Throwable)
startLogSession
public void startLogSession(long sessionId)
- Description copied from interface:
ILogSessionIEnvOfferer
- Starts a new log session for a (targetObject, targetMethod,
targetArguments) execution triple. The method is called just before the
call to the execution triple will be proceeded.
Note that there could be more than one log session started for the same
thread.
- Specified by:
startLogSession
in interface ILogSessionIEnvOfferer
- Parameters:
sessionId
- any unique long value.- Since:
- 0.0.2 (sasl-common-aspect-library)
- See Also:
ILogSessionIEnvOfferer.startLogSession(long)
Copyright © 2010. All Rights Reserved.