@ManagedResource public class DirectChannelMetrics extends java.lang.Object implements org.aopalliance.intercept.MethodInterceptor, MessageChannelMetrics
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MOVING_AVERAGE_WINDOW |
protected org.apache.commons.logging.Log |
logger |
static long |
ONE_MINUTE_SECONDS |
static long |
ONE_SECOND_SECONDS |
Constructor and Description |
---|
DirectChannelMetrics(MessageChannel messageChannel,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected java.lang.Object |
doInvoke(org.aopalliance.intercept.MethodInvocation invocation,
java.lang.String method,
MessageChannel channel) |
Statistics |
getErrorRate() |
double |
getMaxSendDuration() |
double |
getMeanErrorRate() |
double |
getMeanErrorRatio() |
double |
getMeanSendDuration() |
double |
getMeanSendRate() |
MessageChannel |
getMessageChannel() |
double |
getMinSendDuration() |
java.lang.String |
getName() |
int |
getSendCount() |
Statistics |
getSendDuration() |
int |
getSendErrorCount() |
Statistics |
getSendRate() |
double |
getStandardDeviationSendDuration() |
double |
getTimeSinceLastSend() |
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
reset() |
java.lang.String |
toString() |
protected final org.apache.commons.logging.Log logger
public static final long ONE_SECOND_SECONDS
public static final long ONE_MINUTE_SECONDS
public static final int DEFAULT_MOVING_AVERAGE_WINDOW
public DirectChannelMetrics(MessageChannel messageChannel, java.lang.String name)
public void destroy()
public MessageChannel getMessageChannel()
public java.lang.String getName()
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws java.lang.Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
java.lang.Throwable
protected java.lang.Object doInvoke(org.aopalliance.intercept.MethodInvocation invocation, java.lang.String method, MessageChannel channel) throws java.lang.Throwable
java.lang.Throwable
public void reset()
reset
in interface MessageChannelMetrics
public int getSendCount()
getSendCount
in interface MessageChannelMetrics
public int getSendErrorCount()
getSendErrorCount
in interface MessageChannelMetrics
public double getTimeSinceLastSend()
getTimeSinceLastSend
in interface MessageChannelMetrics
public double getMeanSendRate()
getMeanSendRate
in interface MessageChannelMetrics
public double getMeanErrorRate()
getMeanErrorRate
in interface MessageChannelMetrics
public double getMeanErrorRatio()
getMeanErrorRatio
in interface MessageChannelMetrics
public double getMeanSendDuration()
getMeanSendDuration
in interface MessageChannelMetrics
public double getMinSendDuration()
getMinSendDuration
in interface MessageChannelMetrics
public double getMaxSendDuration()
getMaxSendDuration
in interface MessageChannelMetrics
public double getStandardDeviationSendDuration()
getStandardDeviationSendDuration
in interface MessageChannelMetrics
public Statistics getSendDuration()
getSendDuration
in interface MessageChannelMetrics
public Statistics getSendRate()
getSendRate
in interface MessageChannelMetrics
public Statistics getErrorRate()
getErrorRate
in interface MessageChannelMetrics
public java.lang.String toString()
toString
in class java.lang.Object