org.apache.axis2.transport.testkit.axis2.util
Class MessageLevelMetricsCollectorImpl

java.lang.Object
  extended by org.apache.axis2.transport.testkit.axis2.util.MessageLevelMetricsCollectorImpl
All Implemented Interfaces:
MessageLevelMetricsCollector

public class MessageLevelMetricsCollectorImpl
extends java.lang.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
MessageLevelMetricsCollectorImpl()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageLevelMetricsCollectorImpl

public MessageLevelMetricsCollectorImpl()
Method Detail

incrementBytesReceived

public void incrementBytesReceived(long size)
Specified by:
incrementBytesReceived in interface MessageLevelMetricsCollector

incrementBytesSent

public void incrementBytesSent(long size)
Specified by:
incrementBytesSent in interface MessageLevelMetricsCollector

incrementFaultsReceiving

public void incrementFaultsReceiving(int errorCode)
Specified by:
incrementFaultsReceiving in interface MessageLevelMetricsCollector

incrementFaultsSending

public void incrementFaultsSending(int errorCode)
Specified by:
incrementFaultsSending in interface MessageLevelMetricsCollector

incrementMessagesReceived

public void incrementMessagesReceived()
Specified by:
incrementMessagesReceived in interface MessageLevelMetricsCollector

incrementMessagesSent

public void incrementMessagesSent()
Specified by:
incrementMessagesSent in interface MessageLevelMetricsCollector

incrementTimeoutsReceiving

public void incrementTimeoutsReceiving()
Specified by:
incrementTimeoutsReceiving in interface MessageLevelMetricsCollector

incrementTimeoutsSending

public void incrementTimeoutsSending()
Specified by:
incrementTimeoutsSending in interface MessageLevelMetricsCollector

notifyReceivedMessageSize

public void notifyReceivedMessageSize(long size)
Specified by:
notifyReceivedMessageSize in interface MessageLevelMetricsCollector

notifySentMessageSize

public void notifySentMessageSize(long size)
Specified by:
notifySentMessageSize in interface MessageLevelMetricsCollector

reportReceivingFault

public void reportReceivingFault(int errorCode)
Specified by:
reportReceivingFault in interface MessageLevelMetricsCollector

reportResponseCode

public void reportResponseCode(int respCode)
Specified by:
reportResponseCode in interface MessageLevelMetricsCollector

reportSendingFault

public void reportSendingFault(int errorCode)
Specified by:
reportSendingFault in interface MessageLevelMetricsCollector

getMessagesSent

public long getMessagesSent()

getBytesSent

public long getBytesSent()


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.