org.springframework.integration.monitor
Class SimpleMessageHandlerMetrics
java.lang.Object
   org.springframework.integration.monitor.SimpleMessageHandlerMetrics
org.springframework.integration.monitor.SimpleMessageHandlerMetrics
- All Implemented Interfaces: 
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, MessageHandlerMetrics
- @ManagedResource
public class SimpleMessageHandlerMetrics 
- extends java.lang.Object- implements org.aopalliance.intercept.MethodInterceptor, MessageHandlerMetrics
- Since:
- 2.0
- Author:
- Dave Syer
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
SimpleMessageHandlerMetrics
public SimpleMessageHandlerMetrics(MessageHandler handler)
setName
public void setName(java.lang.String name)
- 
 
- 
 
getName
public java.lang.String getName()
- 
- Specified by:
- getNamein interface- MessageHandlerMetrics
 
- 
 
setSource
public void setSource(java.lang.String source)
- 
 
- 
 
getSource
public java.lang.String getSource()
- 
- Specified by:
- getSourcein interface- MessageHandlerMetrics
 
- 
 
getMessageHandler
public MessageHandler getMessageHandler()
- 
 
- 
 
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                        throws java.lang.Throwable
- 
- Specified by:
- invokein interface- org.aopalliance.intercept.MethodInterceptor
 
- 
- Throws:
- java.lang.Throwable
 
reset
public void reset()
- 
- Specified by:
- resetin interface- MessageHandlerMetrics
 
- 
 
getHandleCount
public int getHandleCount()
- 
- Specified by:
- getHandleCountin interface- MessageHandlerMetrics
 
- 
- Returns:
- the number of successful handler calls
 
getErrorCount
public int getErrorCount()
- 
- Specified by:
- getErrorCountin interface- MessageHandlerMetrics
 
- 
- Returns:
- the number of failed handler calls
 
getMeanDuration
public double getMeanDuration()
- 
- Specified by:
- getMeanDurationin interface- MessageHandlerMetrics
 
- 
- Returns:
- the mean handler duration (milliseconds)
 
getMinDuration
public double getMinDuration()
- 
- Specified by:
- getMinDurationin interface- MessageHandlerMetrics
 
- 
- Returns:
- the minimum handler duration (milliseconds)
 
getMaxDuration
public double getMaxDuration()
- 
- Specified by:
- getMaxDurationin interface- MessageHandlerMetrics
 
- 
- Returns:
- the maximum handler duration (milliseconds)
 
getStandardDeviationDuration
public double getStandardDeviationDuration()
- 
- Specified by:
- getStandardDeviationDurationin interface- MessageHandlerMetrics
 
- 
- Returns:
- the standard deviation handler duration (milliseconds)
 
getActiveCount
public int getActiveCount()
- 
- Specified by:
- getActiveCountin interface- MessageHandlerMetrics
 
- 
 
getDuration
public Statistics getDuration()
- 
- Specified by:
- getDurationin interface- MessageHandlerMetrics
 
- 
- Returns:
- summary statistics about the handler duration (milliseconds)
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Object
 
-