Search in sources :

Example 1 with MessageLevelMetricsCollectorImpl

use of org.apache.axis2.transport.testkit.axis2.util.MessageLevelMetricsCollectorImpl in project wso2-axis2-transports by wso2.

the class AxisTestClient method beforeSend.

public void beforeSend() throws Exception {
    if (sender instanceof ManagementSupport) {
        ManagementSupport sender = (ManagementSupport) this.sender;
        messagesSent = sender.getMessagesSent();
        bytesSent = sender.getBytesSent();
        metrics = new MessageLevelMetricsCollectorImpl();
    } else {
        metrics = null;
    }
}
Also used : MessageLevelMetricsCollectorImpl(org.apache.axis2.transport.testkit.axis2.util.MessageLevelMetricsCollectorImpl) ManagementSupport(org.apache.axis2.transport.base.ManagementSupport)

Aggregations

ManagementSupport (org.apache.axis2.transport.base.ManagementSupport)1 MessageLevelMetricsCollectorImpl (org.apache.axis2.transport.testkit.axis2.util.MessageLevelMetricsCollectorImpl)1