Spring Integration

org.springframework.integration.monitor
Class PollableChannelMonitor

java.lang.Object
  extended by org.springframework.integration.monitor.SimpleMessageChannelMonitor
      extended by org.springframework.integration.monitor.PollableChannelMonitor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, MessageChannelMonitor
Direct Known Subclasses:
QueueChannelMonitor

public class PollableChannelMonitor
extends SimpleMessageChannelMonitor

Since:
2.0
Author:
Dave Syer

Field Summary
 
Fields inherited from class org.springframework.integration.monitor.SimpleMessageChannelMonitor
DEFAULT_MOVING_AVERAGE_WINDOW, logger, ONE_MINUTE_SECONDS, ONE_SECOND_SECONDS
 
Constructor Summary
PollableChannelMonitor(String name)
           
 
Method Summary
protected  Object doInvoke(org.aopalliance.intercept.MethodInvocation invocation, String method, MessageChannel channel)
           
 long getReceiveCount()
           
 long getReceiveErrorCount()
           
 String toString()
           
 
Methods inherited from class org.springframework.integration.monitor.SimpleMessageChannelMonitor
destroy, getErrorRate, getErrorRatio, getMaxSendDuration, getMeanSendDuration, getMinSendDuration, getName, getSendCount, getSendErrorCount, getSendRate, getStandardDeviationSendDuration, getTimeSinceLastSend, invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PollableChannelMonitor

public PollableChannelMonitor(String name)
Parameters:
name -
Method Detail

doInvoke

protected Object doInvoke(org.aopalliance.intercept.MethodInvocation invocation,
                          String method,
                          MessageChannel channel)
                   throws Throwable
Overrides:
doInvoke in class SimpleMessageChannelMonitor
Throws:
Throwable

getReceiveCount

@ManagedMetric(metricType=COUNTER,
               displayName="MessageChannel Receives")
public long getReceiveCount()

getReceiveErrorCount

@ManagedMetric(metricType=COUNTER,
               displayName="MessageChannel Receive Errors")
public long getReceiveErrorCount()

toString

public String toString()
Overrides:
toString in class SimpleMessageChannelMonitor

Spring Integration

Copyright © 2010. All Rights Reserved.