Class ConnectionsView
java.lang.Object
org.apache.synapse.transport.nhttp.util.ConnectionsView
- All Implemented Interfaces:
ConnectionsViewMBean
ConnectionsView MBean can be used to collect and monitor statistics on HTTP connections
created by the NHTTP transport. Connection statistics can be divided into two categories,
namely short term data and long term data. Short term data is related to the last 15
minutes of execution and they are updated every minute. Long term data is related to
the last 24 hours of execution and they get updated every 5 minutes. In addition to the
connection statistics this MBean also provides information on the request and response
sizes received over the HTTP connections. All messages are divided into six categories
based on their sizes and the resulting counts are made available as a table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddestroy()protected voidintintintintintintintprotected voidnotifyMessageSize(long size, boolean isRequest) voidreset()voidsetActiveConnectionPerHostEntry(Map<String, AtomicInteger> activeConnectionsPerHost) Setter method for activeConnectionsPerHost, this will get called during connection creation and Connection shutdown operations
-
Constructor Details
-
ConnectionsView
-
-
Method Details
-
destroy
public void destroy() -
connected
protected void connected() -
disconnected
protected void disconnected() -
notifyMessageSize
protected void notifyMessageSize(long size, boolean isRequest) -
getActiveConnections
public int getActiveConnections()- Specified by:
getActiveConnectionsin interfaceConnectionsViewMBean
-
getLastMinuteConnections
public int getLastMinuteConnections()- Specified by:
getLastMinuteConnectionsin interfaceConnectionsViewMBean
-
getLast5MinuteConnections
public int getLast5MinuteConnections()- Specified by:
getLast5MinuteConnectionsin interfaceConnectionsViewMBean
-
getLast15MinuteConnections
public int getLast15MinuteConnections()- Specified by:
getLast15MinuteConnectionsin interfaceConnectionsViewMBean
-
getLastHourConnections
public int getLastHourConnections()- Specified by:
getLastHourConnectionsin interfaceConnectionsViewMBean
-
getLast8HourConnections
public int getLast8HourConnections()- Specified by:
getLast8HourConnectionsin interfaceConnectionsViewMBean
-
getLast24HourConnections
public int getLast24HourConnections()- Specified by:
getLast24HourConnectionsin interfaceConnectionsViewMBean
-
getRequestSizesMap
- Specified by:
getRequestSizesMapin interfaceConnectionsViewMBean
-
getResponseSizesMap
- Specified by:
getResponseSizesMapin interfaceConnectionsViewMBean
-
getLastResetTime
- Specified by:
getLastResetTimein interfaceConnectionsViewMBean
-
reset
public void reset()- Specified by:
resetin interfaceConnectionsViewMBean
-
setActiveConnectionPerHostEntry
Setter method for activeConnectionsPerHost, this will get called during connection creation and Connection shutdown operations- Parameters:
activeConnectionsPerHost-
-
getActiveConnectionsPerHosts
- Specified by:
getActiveConnectionsPerHostsin interfaceConnectionsViewMBean
-