org.opencredo.esper.integration.throughput
Class EsperChannelThroughputMonitor
java.lang.Object
org.opencredo.esper.integration.throughput.EsperChannelThroughputMonitor
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class EsperChannelThroughputMonitor
- extends java.lang.Object
- implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Provides a spring integration ChannelInterceptor default
implementation of a channel throughput monitor.
- Author:
- Russ Miles (russ.miles@opencredo.com), Jonas Partner (jonas.partner@opencredo.com)
|
Constructor Summary |
EsperChannelThroughputMonitor(org.springframework.integration.channel.AbstractMessageChannel channel,
java.lang.String sourceId)
|
|
Method Summary |
void |
afterPropertiesSet()
|
void |
destroy()
|
long |
getThroughput()
|
void |
setTimeSample(java.lang.String timeSample)
|
void |
update(long throughput)
Method used by the Esper subscriber contract where the payload of the
event is passed to the subscriber. |
void |
update(java.lang.Long ps_count,
java.lang.Long pr_count,
java.lang.Double pr_avg)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EsperChannelThroughputMonitor
public EsperChannelThroughputMonitor(org.springframework.integration.channel.AbstractMessageChannel channel,
java.lang.String sourceId)
setTimeSample
public void setTimeSample(java.lang.String timeSample)
getThroughput
public long getThroughput()
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
update
public void update(long throughput)
- Method used by the Esper subscriber contract where the payload of the
event is passed to the subscriber. In this case the payload is a
calculated throughput.
- Parameters:
throughput - the calculated throughput for the channel
update
public void update(java.lang.Long ps_count,
java.lang.Long pr_count,
java.lang.Double pr_avg)
- Parameters:
ps_count - pr_count - pr_avg -
destroy
public void destroy()
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Copyright © 2011. All Rights Reserved.