Class MessageLevelMetricsCollectorImpl
- java.lang.Object
-
- org.apache.axis2.transport.testkit.axis2.util.MessageLevelMetricsCollectorImpl
-
- All Implemented Interfaces:
org.apache.axis2.transport.base.MessageLevelMetricsCollector
public class MessageLevelMetricsCollectorImpl extends Object implements org.apache.axis2.transport.base.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 longgetBytesSent()longgetMessagesSent()voidincrementBytesReceived(long size)voidincrementBytesSent(long size)voidincrementFaultsReceiving(int errorCode)voidincrementFaultsSending(int errorCode)voidincrementMessagesReceived()voidincrementMessagesSent()voidincrementTimeoutsReceiving()voidincrementTimeoutsSending()voidnotifyReceivedMessageSize(long size)voidnotifySentMessageSize(long size)voidreportReceivingFault(int errorCode)voidreportResponseCode(int respCode)voidreportSendingFault(int errorCode)
-
-
-
Method Detail
-
incrementBytesReceived
public void incrementBytesReceived(long size)
- Specified by:
incrementBytesReceivedin interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
incrementBytesSent
public void incrementBytesSent(long size)
- Specified by:
incrementBytesSentin interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
incrementFaultsReceiving
public void incrementFaultsReceiving(int errorCode)
- Specified by:
incrementFaultsReceivingin interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
incrementFaultsSending
public void incrementFaultsSending(int errorCode)
- Specified by:
incrementFaultsSendingin interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
incrementMessagesReceived
public void incrementMessagesReceived()
- Specified by:
incrementMessagesReceivedin interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
incrementMessagesSent
public void incrementMessagesSent()
- Specified by:
incrementMessagesSentin interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
incrementTimeoutsReceiving
public void incrementTimeoutsReceiving()
- Specified by:
incrementTimeoutsReceivingin interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
incrementTimeoutsSending
public void incrementTimeoutsSending()
- Specified by:
incrementTimeoutsSendingin interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
notifyReceivedMessageSize
public void notifyReceivedMessageSize(long size)
- Specified by:
notifyReceivedMessageSizein interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
notifySentMessageSize
public void notifySentMessageSize(long size)
- Specified by:
notifySentMessageSizein interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
reportReceivingFault
public void reportReceivingFault(int errorCode)
- Specified by:
reportReceivingFaultin interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
reportResponseCode
public void reportResponseCode(int respCode)
- Specified by:
reportResponseCodein interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
reportSendingFault
public void reportSendingFault(int errorCode)
- Specified by:
reportSendingFaultin interfaceorg.apache.axis2.transport.base.MessageLevelMetricsCollector
-
getMessagesSent
public long getMessagesSent()
-
getBytesSent
public long getBytesSent()
-
-