@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() |
long |
getSendCountLong() |
Statistics |
getSendDuration() |
int |
getSendErrorCount() |
long |
getSendErrorCountLong() |
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.MethodInterceptorjava.lang.Throwableprotected java.lang.Object doInvoke(org.aopalliance.intercept.MethodInvocation invocation,
java.lang.String method,
MessageChannel channel)
throws java.lang.Throwable
java.lang.Throwablepublic void reset()
reset in interface MessageChannelMetricspublic int getSendCount()
getSendCount in interface MessageChannelMetricspublic long getSendCountLong()
getSendCountLong in interface MessageChannelMetricspublic int getSendErrorCount()
getSendErrorCount in interface MessageChannelMetricspublic long getSendErrorCountLong()
getSendErrorCountLong in interface MessageChannelMetricspublic double getTimeSinceLastSend()
getTimeSinceLastSend in interface MessageChannelMetricspublic double getMeanSendRate()
getMeanSendRate in interface MessageChannelMetricspublic double getMeanErrorRate()
getMeanErrorRate in interface MessageChannelMetricspublic double getMeanErrorRatio()
getMeanErrorRatio in interface MessageChannelMetricspublic double getMeanSendDuration()
getMeanSendDuration in interface MessageChannelMetricspublic double getMinSendDuration()
getMinSendDuration in interface MessageChannelMetricspublic double getMaxSendDuration()
getMaxSendDuration in interface MessageChannelMetricspublic double getStandardDeviationSendDuration()
getStandardDeviationSendDuration in interface MessageChannelMetricspublic Statistics getSendDuration()
getSendDuration in interface MessageChannelMetricspublic Statistics getSendRate()
getSendRate in interface MessageChannelMetricspublic Statistics getErrorRate()
getErrorRate in interface MessageChannelMetricspublic java.lang.String toString()
toString in class java.lang.Object