|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.transport.base.MetricsCollector org.apache.synapse.transport.nhttp.util.NhttpMetricsCollector
public class NhttpMetricsCollector
This simple extension of the Axis2 transport MetricsCollector implementation, maintains a ConnectionsView instance, which is updated based on the events fired by the NHTTP 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.
Field Summary |
---|
Fields inherited from class org.apache.axis2.transport.base.MetricsCollector |
---|
LEVEL_FULL, LEVEL_NONE, LEVEL_TRANSPORT |
Constructor Summary | |
---|---|
NhttpMetricsCollector(boolean listener,
boolean isHttps)
|
Method Summary | |
---|---|
void |
connected()
|
void |
destroy()
|
void |
disconnected()
|
void |
notifyReceivedMessageSize(long l)
|
void |
notifySentMessageSize(long l)
|
void |
setConnectionsPerHosts(Map<String,AtomicInteger> activeConnectionsPerHost)
|
Methods inherited from class org.apache.axis2.transport.base.MetricsCollector |
---|
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, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NhttpMetricsCollector(boolean listener, boolean isHttps)
Method Detail |
---|
public void destroy()
public void connected()
public void disconnected()
public void notifyReceivedMessageSize(long l)
notifyReceivedMessageSize
in class org.apache.axis2.transport.base.MetricsCollector
public void notifySentMessageSize(long l)
notifySentMessageSize
in class org.apache.axis2.transport.base.MetricsCollector
public void setConnectionsPerHosts(Map<String,AtomicInteger> activeConnectionsPerHost)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |