public class MessageLevelMetricsCollectorImpl extends Object implements MessageLevelMetricsCollector
On any update, all threads waiting for an instance of this class are notified.
Constructor and Description |
---|
MessageLevelMetricsCollectorImpl() |
Modifier and Type | Method and Description |
---|---|
long |
getBytesSent() |
long |
getMessagesSent() |
void |
incrementBytesReceived(long size) |
void |
incrementBytesSent(long size) |
void |
incrementFaultsReceiving(int errorCode) |
void |
incrementFaultsSending(int errorCode) |
void |
incrementMessagesReceived() |
void |
incrementMessagesSent() |
void |
incrementTimeoutsReceiving() |
void |
incrementTimeoutsSending() |
void |
notifyReceivedMessageSize(long size) |
void |
notifySentMessageSize(long size) |
void |
reportReceivingFault(int errorCode) |
void |
reportResponseCode(int respCode) |
void |
reportSendingFault(int errorCode) |
public void incrementBytesReceived(long size)
incrementBytesReceived
in interface MessageLevelMetricsCollector
public void incrementBytesSent(long size)
incrementBytesSent
in interface MessageLevelMetricsCollector
public void incrementFaultsReceiving(int errorCode)
incrementFaultsReceiving
in interface MessageLevelMetricsCollector
public void incrementFaultsSending(int errorCode)
incrementFaultsSending
in interface MessageLevelMetricsCollector
public void incrementMessagesReceived()
incrementMessagesReceived
in interface MessageLevelMetricsCollector
public void incrementMessagesSent()
incrementMessagesSent
in interface MessageLevelMetricsCollector
public void incrementTimeoutsReceiving()
incrementTimeoutsReceiving
in interface MessageLevelMetricsCollector
public void incrementTimeoutsSending()
incrementTimeoutsSending
in interface MessageLevelMetricsCollector
public void notifyReceivedMessageSize(long size)
notifyReceivedMessageSize
in interface MessageLevelMetricsCollector
public void notifySentMessageSize(long size)
notifySentMessageSize
in interface MessageLevelMetricsCollector
public void reportReceivingFault(int errorCode)
reportReceivingFault
in interface MessageLevelMetricsCollector
public void reportResponseCode(int respCode)
reportResponseCode
in interface MessageLevelMetricsCollector
public void reportSendingFault(int errorCode)
reportSendingFault
in interface MessageLevelMetricsCollector
public long getMessagesSent()
public long getBytesSent()
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.