Class MessageLevelMetricsCollectorImpl
- java.lang.Object
-
- org.apache.axis2.transport.testkit.axis2.util.MessageLevelMetricsCollectorImpl
-
- All Implemented Interfaces:
MessageLevelMetricsCollector
public class MessageLevelMetricsCollectorImpl extends Object implements MessageLevelMetricsCollector
Message level metrics collector implementation used during the tests to check that message level metrics collection is implemented.On any update, all threads waiting for an instance of this class are notified.
-
-
Constructor Summary
Constructors Constructor Description MessageLevelMetricsCollectorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
incrementBytesReceived
public void incrementBytesReceived(long size)
- Specified by:
incrementBytesReceived
in interfaceMessageLevelMetricsCollector
-
incrementBytesSent
public void incrementBytesSent(long size)
- Specified by:
incrementBytesSent
in interfaceMessageLevelMetricsCollector
-
incrementFaultsReceiving
public void incrementFaultsReceiving(int errorCode)
- Specified by:
incrementFaultsReceiving
in interfaceMessageLevelMetricsCollector
-
incrementFaultsSending
public void incrementFaultsSending(int errorCode)
- Specified by:
incrementFaultsSending
in interfaceMessageLevelMetricsCollector
-
incrementMessagesReceived
public void incrementMessagesReceived()
- Specified by:
incrementMessagesReceived
in interfaceMessageLevelMetricsCollector
-
incrementMessagesSent
public void incrementMessagesSent()
- Specified by:
incrementMessagesSent
in interfaceMessageLevelMetricsCollector
-
incrementTimeoutsReceiving
public void incrementTimeoutsReceiving()
- Specified by:
incrementTimeoutsReceiving
in interfaceMessageLevelMetricsCollector
-
incrementTimeoutsSending
public void incrementTimeoutsSending()
- Specified by:
incrementTimeoutsSending
in interfaceMessageLevelMetricsCollector
-
notifyReceivedMessageSize
public void notifyReceivedMessageSize(long size)
- Specified by:
notifyReceivedMessageSize
in interfaceMessageLevelMetricsCollector
-
notifySentMessageSize
public void notifySentMessageSize(long size)
- Specified by:
notifySentMessageSize
in interfaceMessageLevelMetricsCollector
-
reportReceivingFault
public void reportReceivingFault(int errorCode)
- Specified by:
reportReceivingFault
in interfaceMessageLevelMetricsCollector
-
reportResponseCode
public void reportResponseCode(int respCode)
- Specified by:
reportResponseCode
in interfaceMessageLevelMetricsCollector
-
reportSendingFault
public void reportSendingFault(int errorCode)
- Specified by:
reportSendingFault
in interfaceMessageLevelMetricsCollector
-
getMessagesSent
public long getMessagesSent()
-
getBytesSent
public long getBytesSent()
-
-