@ManagedResource public class DirectChannelMetrics extends 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,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected Object |
doInvoke(org.aopalliance.intercept.MethodInvocation invocation,
String method,
MessageChannel channel) |
Statistics |
getErrorRate() |
double |
getMaxSendDuration() |
double |
getMeanErrorRate() |
double |
getMeanErrorRatio() |
double |
getMeanSendDuration() |
double |
getMeanSendRate() |
MessageChannel |
getMessageChannel() |
double |
getMinSendDuration() |
String |
getName() |
int |
getSendCount() |
Statistics |
getSendDuration() |
int |
getSendErrorCount() |
Statistics |
getSendRate() |
double |
getStandardDeviationSendDuration() |
double |
getTimeSinceLastSend() |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
reset() |
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, String name)
public void destroy()
public MessageChannel getMessageChannel()
public String getName()
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
Throwable
protected Object doInvoke(org.aopalliance.intercept.MethodInvocation invocation, String method, MessageChannel channel) throws Throwable
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