org.springframework.integration.monitor
Class SimpleMessageSourceMetrics

java.lang.Object
  extended by org.springframework.integration.monitor.SimpleMessageSourceMetrics
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, MessageSourceMetrics

public class SimpleMessageSourceMetrics
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor, MessageSourceMetrics

Since:
2.0

Constructor Summary
SimpleMessageSourceMetrics(MessageSource<?> messageSource)
           
 
Method Summary
 int getMessageCount()
           
 MessageSource<?> getMessageSource()
           
 java.lang.String getName()
           
 java.lang.String getSource()
           
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 void reset()
           
 void setName(java.lang.String name)
           
 void setSource(java.lang.String source)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleMessageSourceMetrics

public SimpleMessageSourceMetrics(MessageSource<?> messageSource)
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()
Specified by:
getName in interface MessageSourceMetrics

setSource

public void setSource(java.lang.String source)

getSource

public java.lang.String getSource()
Specified by:
getSource in interface MessageSourceMetrics

getMessageSource

public MessageSource<?> getMessageSource()

reset

public void reset()
Specified by:
reset in interface MessageSourceMetrics

getMessageCount

public int getMessageCount()
Specified by:
getMessageCount in interface MessageSourceMetrics
Returns:
the number of successful handler calls

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object