public class PassThroughTransportMetricsCollector
extends org.apache.axis2.transport.base.MetricsCollector
This simple extension of the Axis2 transport MetricsCollector implementation, maintains a ConnectionsView instance, which is updated based on the events fired by the pass-through transport implementation. In addition to the usual events handled by the Axis2 MetricsCollector, this implementation handles two new events:
These new events are used to update the ConnectionsView at runtime.
| Constructor and Description |
|---|
PassThroughTransportMetricsCollector(boolean listener,
java.lang.String schemeName) |
| Modifier and Type | Method and Description |
|---|---|
void |
connected() |
void |
destroy() |
void |
disconnected() |
void |
exceptionOccured() |
int |
getActiveConnectionCount() |
int |
getUnServedRequestCount() |
void |
notifyReceivedMessageSize(long l) |
void |
notifySentMessageSize(long l) |
void |
requestReceived() |
void |
requestServed() |
void |
timeoutOccured() |
getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getFaultsReceiving, getFaultsSending, getLastResetTime, getLevel, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMinSizeReceived, getMinSizeSent, getResponseCodeTable, getTimeoutsReceiving, getTimeoutsSending, incrementBytesReceived, incrementBytesReceived, incrementBytesSent, incrementBytesSent, incrementFaultsReceiving, incrementFaultsReceiving, incrementFaultsSending, incrementFaultsSending, incrementMessagesReceived, incrementMessagesReceived, incrementMessagesSent, incrementMessagesSent, incrementTimeoutsReceiving, incrementTimeoutsReceiving, incrementTimeoutsSending, incrementTimeoutsSending, notifyReceivedMessageSize, notifySentMessageSize, reportResponseCode, reportResponseCode, reset, setLevelpublic PassThroughTransportMetricsCollector(boolean listener,
java.lang.String schemeName)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic void destroy()
public void connected()
public void disconnected()
public void requestReceived()
public void requestServed()
public void timeoutOccured()
public void exceptionOccured()
public void notifyReceivedMessageSize(long l)
notifyReceivedMessageSize in class org.apache.axis2.transport.base.MetricsCollectorpublic void notifySentMessageSize(long l)
notifySentMessageSize in class org.apache.axis2.transport.base.MetricsCollectorpublic int getActiveConnectionCount()
public int getUnServedRequestCount()
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.