net.sf.sasl.aop.monitoring.execution.time
Class ThresholdMethodExecutionTimeWarnAspect.MessageSender

java.lang.Object
  extended by net.sf.sasl.aop.monitoring.execution.time.ThresholdMethodExecutionTimeWarnAspect.MessageSender
All Implemented Interfaces:
Callable<Void>
Enclosing class:
ThresholdMethodExecutionTimeWarnAspect

protected class ThresholdMethodExecutionTimeWarnAspect.MessageSender
extends Object
implements Callable<Void>

Helper class to interpret and deliver warn and recovery messages concurrently.

Since:
0.0.1 (sasl-common-aspect-library)

Constructor Summary
ThresholdMethodExecutionTimeWarnAspect.MessageSender(Thread senderThread, PlaceholderScriptMessage message, boolean isRecoveryMessage, org.aopalliance.intercept.MethodInvocation invocation, Object returnValue, Throwable occuredException, Date startDate, Date stopDate, MethodExecutionTimeThresholdBean thresholdConfig, ThresholdMethodExecutionTimeWarnAspect.SendRecoveryMessageMarker sendRecoveryMessageMarker)
           
 
Method Summary
 Void call()
          Interprets and delivers the setted warn/recovery message if it should get delivered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdMethodExecutionTimeWarnAspect.MessageSender

public ThresholdMethodExecutionTimeWarnAspect.MessageSender(Thread senderThread,
                                                            PlaceholderScriptMessage message,
                                                            boolean isRecoveryMessage,
                                                            org.aopalliance.intercept.MethodInvocation invocation,
                                                            Object returnValue,
                                                            Throwable occuredException,
                                                            Date startDate,
                                                            Date stopDate,
                                                            MethodExecutionTimeThresholdBean thresholdConfig,
                                                            ThresholdMethodExecutionTimeWarnAspect.SendRecoveryMessageMarker sendRecoveryMessageMarker)
Parameters:
senderThread - non null
message - non null
isRecoveryMessage - non null
invocation - non null
returnValue - non null
occuredException - non null
startDate - non null
stopDate - non null
thresholdConfig - non null
sendRecoveryMessageMarker - non null
Method Detail

call

public Void call()
          throws Exception
Interprets and delivers the setted warn/recovery message if it should get delivered.

Specified by:
call in interface Callable<Void>
Throws:
Exception
Since:
0.0.1 (sasl-common-aspect-library)
See Also:
Callable.call()


Copyright © 2010. All Rights Reserved.