Class ConnectionsView
- java.lang.Object
-
- org.apache.synapse.transport.passthru.jmx.ConnectionsView
-
- All Implemented Interfaces:
ConnectionsViewMBean
public class ConnectionsView extends Object implements 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 Constructor Description ConnectionsView(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconnected()voiddestroy()protected voiddisconnected()protected voidexceptionOccured()intgetActiveConnections()intgetLast15MinuteConnections()intgetLast24HourConnections()intgetLast5MinuteConnections()intgetLast8HourConnections()intgetLastHourConnections()intgetLastMinuteConnections()DategetLastResetTime()MapgetRequestSizesMap()MapgetResponseSizesMap()intgetUnServedRequests()protected voidnotifyMessageSize(long size, boolean isRequest)protected voidrequestReceived()protected voidrequestServed()voidreset()protected voidtimeoutOccured()
-
-
-
Constructor Detail
-
ConnectionsView
public ConnectionsView(String name) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
-
Method Detail
-
destroy
public void destroy()
-
connected
protected void connected()
-
disconnected
protected void disconnected()
-
requestReceived
protected void requestReceived()
-
requestServed
protected void requestServed()
-
timeoutOccured
protected void timeoutOccured()
-
exceptionOccured
protected void exceptionOccured()
-
getUnServedRequests
public int getUnServedRequests()
-
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
public Map getRequestSizesMap()
- Specified by:
getRequestSizesMapin interfaceConnectionsViewMBean
-
getResponseSizesMap
public Map getResponseSizesMap()
- Specified by:
getResponseSizesMapin interfaceConnectionsViewMBean
-
getLastResetTime
public Date getLastResetTime()
- Specified by:
getLastResetTimein interfaceConnectionsViewMBean
-
reset
public void reset()
- Specified by:
resetin interfaceConnectionsViewMBean
-
-